Examples of PageMaster


Examples of org.apache.fop.layout.PageMaster

           int currentPageNumber,
           boolean thisIsFirstPage,
           boolean isEmptyPage )
  throws FOPException
    {
  PageMaster pageMaster = null;

  // see if there is a page master sequence for this master name   
  PageSequenceMaster sequenceMaster =
      this.layoutMasterSet.getPageSequenceMaster( pageSequenceName );
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

  int contentRectangleXPosition = marginLeft;
  int contentRectangleYPosition = pageHeight - marginTop;
  int contentRectangleWidth = pageWidth - marginLeft - marginRight;
  int contentRectangleHeight = pageHeight - marginTop - marginBottom;
   
  this.pageMaster = new PageMaster(pageWidth, pageHeight);
  this.pageMaster.addBody(this.regionBody.makeRegion(contentRectangleXPosition,contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight));
   
  if (this.regionBefore != null)
      this.pageMaster.addBefore(this.regionBefore.makeRegion(contentRectangleXPosition,contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight));
  if (this.regionAfter != null)
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

  public PageMaster getNextPageMaster( String pageSequenceName,
    int currentPageNumber, boolean thisIsFirstPage )
    throws FOPException
  {
    PageMaster pm = null;
   
    PageSequenceMaster psm = getPageSequenceMaster( pageSequenceName );
    if (null != psm)
    {
      pm = psm.getNextPageMaster( currentPageNumber, thisIsFirstPage );
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

   
        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

    // page number is 0-indexed
        PageMaster pageMaster =
      this.layoutMasterSet.getNextPageMaster(
      masterName, currentPageNumber, thisIsFirstPage );

    // a legal alternative is to use the last sub-sequence
    // specification. That's not done here.
        if ( pageMaster == null )
        {
    throw new FOPException("page masters exhausted");
        }
        return pageMaster.makePage(areaTree);
    }
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

        // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName,
                                firstAvailPageNumber,
                                isFirstPage, isEmptyPage);

        // a legal alternative is to use the last sub-sequence
        // specification which should be handled in getNextSubsequence. That's not done here.
        if (pageMaster == null) {
            throw new FOPException("page masters exhausted. Cannot recover.");
        }
        Page p = pageMaster.makePage(areaTree);
        if (currentPage != null) {
            Vector foots = currentPage.getPendingFootnotes();
            p.setPendingFootnotes(foots);
        }
        return p;
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

    // refactored from LayoutMasterSet
    private PageMaster getNextPageMaster(String pageSequenceName,
                                         int currentPageNumber,
                                         boolean thisIsFirstPage,
                                         boolean isEmptyPage) throws FOPException {
        PageMaster pageMaster = null;

        // see if there is a page master sequence for this master name
        PageSequenceMaster sequenceMaster =
            this.layoutMasterSet.getPageSequenceMaster(pageSequenceName);
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

   
        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

  // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName, firstAvailPageNumber,
              isFirstPage, isEmptyPage );

    // a legal alternative is to use the last sub-sequence
    // specification which should be handled in getNextSubsequence. That's not done here.
        if ( pageMaster == null )
        {
    throw new FOPException("page masters exhausted. Cannot recover.");
        }
        return pageMaster.makePage(areaTree);
    }
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

           int currentPageNumber,
           boolean thisIsFirstPage,
           boolean isEmptyPage )
  throws FOPException
    {
  PageMaster pageMaster = null;

  // see if there is a page master sequence for this master name   
  PageSequenceMaster sequenceMaster =
      this.layoutMasterSet.getPageSequenceMaster( pageSequenceName );
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

  int contentRectangleXPosition = marginLeft;
  int contentRectangleYPosition = pageHeight - marginTop;
  int contentRectangleWidth = pageWidth - marginLeft - marginRight;
  int contentRectangleHeight = pageHeight - marginTop - marginBottom;
   
  this.pageMaster = new PageMaster(pageWidth, pageHeight);
  if (getRegion(RegionBody.REGION_CLASS) != null) {
      this.pageMaster.addBody(getRegion(RegionBody.REGION_CLASS).makeRegionArea(contentRectangleXPosition,contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight));
  }
  else {
      MessageHandler.errorln("ERROR: simple-page-master must have a region of class "+RegionBody.REGION_CLASS);
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

   
        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

  // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName, firstAvailPageNumber,
              isFirstPage, isEmptyPage );

    // a legal alternative is to use the last sub-sequence
    // specification which should be handled in getNextSubsequence. That's not done here.
        if ( pageMaster == null )
        {
    throw new FOPException("page masters exhausted. Cannot recover.");
        }
        Page p = pageMaster.makePage(areaTree);
        if(currentPage != null) {
            Vector foots = currentPage.getPendingFootnotes();
            p.setPendingFootnotes(foots);
        }
        return p;
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.