Examples of AreaContainer


Examples of org.apache.fop.layout.AreaContainer

  SimplePageMaster simpleMaster = getCurrentSimplePageMaster();

  if (simpleMaster.getRegion(RegionBefore.REGION_CLASS) != null && (currentPage.getBefore() != null)) {
      Flow staticFlow = (Flow)_flowMap.get(simpleMaster.getRegion(RegionBefore.REGION_CLASS).getRegionName());
      if (staticFlow != null) {
    AreaContainer beforeArea = currentPage.getBefore();
    beforeArea.setIDReferences(areaTree.getIDReferences());
    layoutStaticContent(staticFlow, simpleMaster.getRegion(RegionBefore.REGION_CLASS),
            beforeArea);
      }
  }

  if (simpleMaster.getRegion(RegionAfter.REGION_CLASS) != null && (currentPage.getAfter() != null)) {
      Flow staticFlow = (Flow)_flowMap.get(simpleMaster.getRegion(RegionAfter.REGION_CLASS).getRegionName());
      if (staticFlow != null) {
    AreaContainer afterArea = currentPage.getAfter();
    afterArea.setIDReferences(areaTree.getIDReferences());
    layoutStaticContent(staticFlow, simpleMaster.getRegion(RegionAfter.REGION_CLASS),
            afterArea);
      }

  }
View Full Code Here

Examples of org.apache.fop.layout.AreaContainer

    private void layoutStaticContent(Flow flow, Region region,
             AreaContainer area)
  throws FOPException
    {
  if (flow instanceof StaticContent) {
      AreaContainer beforeArea = currentPage.getBefore();
      ((StaticContent)flow).layout(area, region);
  }
  else {
      MessageHandler.errorln("WARNING: "+region.getName()+" only supports static-content flows currently. Cannot use flow named '"+flow.getFlowName()+"'");
  }
View Full Code Here

Examples of org.apache.fop.layout.AreaContainer

      currentPage = makePage(areaTree);
      currentPage.setNumber(++this.currentPageNumber);
      System.err.print(" [" + currentPageNumber);
      if ((this.staticBefore != null) &&
    (currentPage.getBefore() != null)) {
    AreaContainer beforeArea = currentPage.getBefore();
    this.staticBefore.layout(beforeArea);
      }
      if ((this.staticAfter != null) &&
    (currentPage.getAfter() != null)) {
    AreaContainer afterArea = currentPage.getAfter();
    this.staticAfter.layout(afterArea);
      }
      if ((status.getCode() == Status.FORCE_PAGE_BREAK_EVEN) &&
    ((currentPageNumber % 2) == 1)) {
      } else if ((status.getCode() == Status.FORCE_PAGE_BREAK_ODD) &&
           ((currentPageNumber % 2) == 0)) {
      } else {
    AreaContainer bodyArea = currentPage.getBody();
    status = this.flow.layout(bodyArea);
      }
      System.err.print("]");
      areaTree.addPage(currentPage);
  } while (status.isIncomplete());
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.