Examples of RegionArea


Examples of org.apache.fop.layout.RegionArea

  int marginBottom = this.properties.get("margin-bottom").getLength().mvalue();
  int marginLeft = this.properties.get("margin-left").getLength().mvalue();
  int marginRight = this.properties.get("margin-right").getLength().mvalue();
  int extent = this.properties.get("extent").getLength().mvalue();

  return new RegionArea(allocationRectangleXPosition + marginLeft,
        allocationRectangleYPosition -
        allocationRectangleHeight + extent,
        allocationRectangleWidth - marginLeft -
        marginRight,extent);
    }
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

  int marginBottom = this.properties.get("margin-bottom").getLength().mvalue();
  int marginLeft = this.properties.get("margin-left").getLength().mvalue();
  int marginRight = this.properties.get("margin-right").getLength().mvalue();
  int extent = this.properties.get("extent").getLength().mvalue();
   
  return new RegionArea(allocationRectangleXPosition + marginLeft,
        allocationRectangleYPosition - marginTop,
        allocationRectangleWidth - marginLeft -
        marginRight, extent);
    }
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

            startY -= beforeHeight;
            startH -= beforeHeight;
        }
        if (afterPrecedence)
            startH -= afterHeight;
        return new RegionArea(allocationRectangleXPosition
                              + allocationRectangleWidth - extent, startY,
                              extent, startH);
    }
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

        // this.properties.get("precedence");
        // this.properties.get("region-name");
        // this.properties.get("reference-orientation");
        // this.properties.get("writing-mode");

        return new RegionArea(allocationRectangleXPosition,
                              allocationRectangleYPosition,
                              allocationRectangleWidth, extent);
    }
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

        // this.properties.get("precedence");
        // this.properties.get("region-name");
        // this.properties.get("reference-orientation");
        // this.properties.get("writing-mode");

        return new RegionArea(allocationRectangleXPosition,
                              allocationRectangleYPosition
                              - allocationRectangleHeight + extent,
                              allocationRectangleWidth, extent);
    }
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

            startY -= beforeHeight;
            startH -= beforeHeight;
        }
        if (afterPrecedence)
            startH -= afterHeight;
        return new RegionArea(allocationRectangleXPosition, startY, extent,
                              startH);
    }
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

            MessageHandler.errorln("ERROR: simple-page-master must have a region of class "
                                   + RegionBody.REGION_CLASS);
        }

        if (getRegion(RegionBefore.REGION_CLASS) != null) {
            RegionArea before =
                getRegion(RegionBefore.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
                          contentRectangleYPosition, contentRectangleWidth,
                          contentRectangleHeight);
            this.pageMaster.addBefore(before);
            beforePrecedence =
                ((RegionBefore)getRegion(RegionBefore.REGION_CLASS)).getPrecedence();
            beforeHeight = before.getHeight();
        } else {
            beforePrecedence = false;
        }

        if (getRegion(RegionAfter.REGION_CLASS) != null) {
            RegionArea after =
                getRegion(RegionAfter.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
                          contentRectangleYPosition, contentRectangleWidth,
                          contentRectangleHeight);
            this.pageMaster.addAfter(after);
            afterPrecedence =
                ((RegionAfter)getRegion(RegionAfter.REGION_CLASS)).getPrecedence();
            afterHeight = after.getHeight();
        } else {
            afterPrecedence = false;
        }

        if (getRegion(RegionStart.REGION_CLASS) != null) {
            RegionArea start =
                ((RegionStart)getRegion(RegionStart.REGION_CLASS)).makeRegionArea(contentRectangleXPosition,
                    contentRectangleYPosition, contentRectangleWidth,
                    contentRectangleHeight, beforePrecedence,
                    afterPrecedence, beforeHeight, afterHeight);
            this.pageMaster.addStart(start);
        }

        if (getRegion(RegionEnd.REGION_CLASS) != null) {
            RegionArea end =
                ((RegionEnd)getRegion(RegionEnd.REGION_CLASS)).makeRegionArea(contentRectangleXPosition,
                    contentRectangleYPosition, contentRectangleWidth,
                    contentRectangleHeight, beforePrecedence,
                    afterPrecedence, beforeHeight, afterHeight);
            this.pageMaster.addEnd(end);
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

            log.error("simple-page-master must have a region of class "
                                   + RegionBody.REGION_CLASS);
        }

        if (getRegion(RegionBefore.REGION_CLASS) != null) {
            RegionArea before =
                getRegion(RegionBefore.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
                          contentRectangleYPosition, contentRectangleWidth,
                          contentRectangleHeight);
            this.pageMaster.addBefore(before);
            beforePrecedence =
                ((RegionBefore)getRegion(RegionBefore.REGION_CLASS)).getPrecedence();
            beforeHeight = before.getHeight();
        } else {
            beforePrecedence = false;
        }

        if (getRegion(RegionAfter.REGION_CLASS) != null) {
            RegionArea after =
                getRegion(RegionAfter.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
                          contentRectangleYPosition, contentRectangleWidth,
                          contentRectangleHeight);
            this.pageMaster.addAfter(after);
            afterPrecedence =
                ((RegionAfter)getRegion(RegionAfter.REGION_CLASS)).getPrecedence();
            afterHeight = after.getHeight();
        } else {
            afterPrecedence = false;
        }

        if (getRegion(RegionStart.REGION_CLASS) != null) {
            RegionArea start =
                ((RegionStart)getRegion(RegionStart.REGION_CLASS)).makeRegionArea(contentRectangleXPosition,
                    contentRectangleYPosition, contentRectangleWidth,
                    contentRectangleHeight, beforePrecedence,
                    afterPrecedence, beforeHeight, afterHeight);
            this.pageMaster.addStart(start);
        }

        if (getRegion(RegionEnd.REGION_CLASS) != null) {
            RegionArea end =
                ((RegionEnd)getRegion(RegionEnd.REGION_CLASS)).makeRegionArea(contentRectangleXPosition,
                    contentRectangleYPosition, contentRectangleWidth,
                    contentRectangleHeight, beforePrecedence,
                    afterPrecedence, beforeHeight, afterHeight);
            this.pageMaster.addEnd(end);
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

        // this.properties.get("precedence");
        // this.properties.get("region-name");
        // this.properties.get("reference-orientation");
        // this.properties.get("writing-mode");

        RegionArea area = new RegionArea(allocationRectangleXPosition,
                allocationRectangleYPosition
                    - allocationRectangleHeight + extent,
                allocationRectangleWidth, extent);
        area.setBackground(bProps);
        return area;
    }
View Full Code Here

Examples of org.apache.fop.layout.RegionArea

            startY -= beforeExtent;
            startH -= beforeExtent;
        }
        if (afterPrecedence)
            startH -= afterExtent;
        RegionArea area = new RegionArea(allocationRectangleXPosition,
                startY, extent, startH);
        area.setBackground(propMgr.getBackgroundProps());
        return area;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.