Class FootnoteLayoutManager

All Implemented Interfaces:
PercentBaseContext, Constants, BreakOpportunity, InlineLevelLayoutManager, LayoutManager

public class FootnoteLayoutManager extends InlineStackingLayoutManager
Layout manager for fo:footnote.
  • Constructor Details

    • FootnoteLayoutManager

      public FootnoteLayoutManager(Footnote node)
      Create a new footnote layout manager.
      Parameters:
      node - footnote to create the layout manager for
  • Method Details

    • initialize

      public void initialize()
      initialize the layout manager. Allows each layout manager to calculate often used values.
      Specified by:
      initialize in interface LayoutManager
      Overrides:
      initialize in class AbstractLayoutManager
    • getNextKnuthElements

      public List getNextKnuthElements(LayoutContext context, int alignment)
      Get a sequence of KnuthElements representing the content of the node assigned to the LM.
      Specified by:
      getNextKnuthElements in interface LayoutManager
      Overrides:
      getNextKnuthElements in class AbstractLayoutManager
      Parameters:
      context - the LayoutContext used to store layout information
      alignment - the desired text alignment
      Returns:
      the list of KnuthElements
    • getChangedKnuthElements

      public List getChangedKnuthElements(List oldList, int alignment, int depth)
      Get a sequence of KnuthElements representing the content of the node assigned to the LM, after changes have been applied
      Specified by:
      getChangedKnuthElements in interface InlineLevelLayoutManager
      Overrides:
      getChangedKnuthElements in class InlineStackingLayoutManager
      Parameters:
      oldList - the elements to replace
      alignment - the desired text alignment
      depth - the depth at which the Positions for this LM in oldList are found
      Returns:
      the updated list of KnuthElements
    • addAreas

      public void addAreas(PositionIterator posIter, LayoutContext context)
      Tell the layout manager to add all the child areas implied by Position objects which will be returned by the Iterator.
      Specified by:
      addAreas in interface LayoutManager
      Overrides:
      addAreas in class AbstractLayoutManager
      Parameters:
      posIter - the position iterator
      context - the context