Class ExternalDocumentLayoutManager

All Implemented Interfaces:
PercentBaseContext, Constants, LayoutManager, TopLevelLayoutManager

public class ExternalDocumentLayoutManager extends AbstractPageSequenceLayoutManager
LayoutManager for an external-document extension element. This class is instantiated by area.AreaTreeHandler for each fo:external-document found in the input document.
  • Constructor Details

    • ExternalDocumentLayoutManager

      public ExternalDocumentLayoutManager(AreaTreeHandler ath, ExternalDocument document)
      Constructor
      Parameters:
      ath - the area tree handler object
      document - fox:external-document to process
  • Method Details

    • getExternalDocument

      protected ExternalDocument getExternalDocument()
      Returns:
      the ExternalDocument being managed by this layout manager
    • getPSLM

      public PageSequenceLayoutManager getPSLM()
      Get the active PageSequenceLayoutManager instance for this layout process.
      Specified by:
      getPSLM in interface LayoutManager
      Overrides:
      getPSLM in class AbstractLayoutManager
      Returns:
      the PageSequenceLayoutManager
    • activateLayout

      public void activateLayout()
      Activate the layout of this page sequence. PageViewports corresponding to each page generated by this page sequence will be created and sent to the AreaTreeModel for rendering.
    • finishPageSequence

      public void finishPageSequence()
      Finished the page-sequence and notifies everyone about it.
    • createPage

      protected Page createPage(int pageNumber, boolean isBlank)
      Creates and returns a new page.
      Specified by:
      createPage in class AbstractPageSequenceLayoutManager
      Parameters:
      pageNumber - the page number
      isBlank - true if it's a blank page
      Returns:
      the newly created page