Package org.apache.fop.layout

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,
                allocationRectangleWidth, extent);
        area.setBackground(bProps);
        return area;
    }
View Full Code Here


            startY -= beforeExtent;
            startH -= beforeExtent;
        }
        if (afterPrecedence)
            startH -= afterExtent;
        RegionArea area = new RegionArea(allocationRectangleXPosition
                + allocationRectangleWidth - extent,
                startY, extent, startH);
        area.setBackground(propMgr.getBackgroundProps());
        return area;

    }
View Full Code Here

  else {
      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

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

          int allocationRectangleYPosition,
          int allocationRectangleWidth,
          int allocationRectangleHeight) {
  int extent = this.properties.get("extent").getLength().mvalue();
   
  return new RegionArea(allocationRectangleXPosition,
        allocationRectangleYPosition,
        allocationRectangleWidth, extent);
    }
View Full Code Here

          int allocationRectangleYPosition,
          int allocationRectangleWidth,
          int allocationRectangleHeight) {
  int extent = this.properties.get("extent").getLength().mvalue();

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

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

  int marginTop = this.properties.get("margin-top").getLength().mvalue();
  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();

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

TOP

Related Classes of org.apache.fop.layout.RegionArea

Copyright © 2018 www.massapicom. 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.