Examples of AreaContainer


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

            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

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);
      }
  }
 
  if (simpleMaster.getRegion(RegionStart.REGION_CLASS) != null && (currentPage.getStart() != null)) {
      Flow staticFlow = (Flow)_flowMap.get(simpleMaster.getRegion(RegionStart.REGION_CLASS).getRegionName());
      if (staticFlow != null) {
    AreaContainer startArea = currentPage.getStart();
    startArea.setIDReferences(areaTree.getIDReferences());
    layoutStaticContent(staticFlow, simpleMaster.getRegion(RegionStart.REGION_CLASS),
      startArea);
      }
  }
 
  if (simpleMaster.getRegion(RegionEnd.REGION_CLASS) != null && (currentPage.getEnd() != null)) {
      Flow staticFlow = (Flow)_flowMap.get(simpleMaster.getRegion(RegionEnd.REGION_CLASS).getRegionName());
      if (staticFlow != null) {
    AreaContainer endArea = currentPage.getEnd();
    endArea.setIDReferences(areaTree.getIDReferences());
    layoutStaticContent(staticFlow, simpleMaster.getRegion(RegionEnd.REGION_CLASS),
      endArea);
      }
  }
 
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

            MessageHandler.log(" [" + currentPageNumber);
            if ( (this.staticBefore != null) &&
            (currentPage.getBefore() != null) )
            {
                AreaContainer beforeArea = currentPage.getBefore();
                beforeArea.setIDReferences(areaTree.getIDReferences());
                this.staticBefore.layout(beforeArea);
            }
            if ( (this.staticAfter != null) &&
            (currentPage.getAfter() != null) )
            {
                AreaContainer afterArea = currentPage.getAfter();
                afterArea.setIDReferences(areaTree.getIDReferences());
                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();
                bodyArea.setIDReferences(areaTree.getIDReferences());
                status = this.flow.layout(bodyArea);
            }
            MessageHandler.log("]");
            areaTree.addPage(currentPage);
        } while ( status.isIncomplete() );
View Full Code Here

Examples of org.apache.fop.layout.AreaContainer

        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);
            }
        }

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

        if (simpleMaster.getRegion(RegionEnd.REGION_CLASS) != null
                && (currentPage.getEnd() != null)) {
            Flow staticFlow =
                (Flow)_flowMap.get(simpleMaster.getRegion(RegionEnd.REGION_CLASS).getRegionName());
            if (staticFlow != null) {
                AreaContainer endArea = currentPage.getEnd();
                endArea.setIDReferences(areaTree.getIDReferences());
                layoutStaticContent(staticFlow,
                                    simpleMaster.getRegion(RegionEnd.REGION_CLASS),
                                    endArea);
            }
        }
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 {
            log.error("" + 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

            ((currentPageNumber % 2) == 0) )
            {
            }
            else
            {
                AreaContainer bodyArea = currentPage.getBody();
                bodyArea.setIDReferences(areaTree.getIDReferences());
   
    Flow flow = getCurrentFlow(RegionBody.REGION_CLASS);
   
    if (null == flow) {
         MessageHandler.errorln("No flow found for region-body "
View Full Code Here

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
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.