Class PageNumberLayoutManager

All Implemented Interfaces:
PercentBaseContext, Constants, InlineLevelLayoutManager, LayoutManager

public class PageNumberLayoutManager extends LeafNodeLayoutManager
LayoutManager for the fo:page-number formatting object
  • Constructor Details

    • PageNumberLayoutManager

      public PageNumberLayoutManager(PageNumber node)
      Constructor
      Parameters:
      node - the fo:page-number formatting object that creates the area TODO better null checking of node, font
  • 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
    • makeAlignmentContext

      protected AlignmentContext makeAlignmentContext(LayoutContext context)
      Creates a new alignment context or returns the current alignment context. This is used for vertical alignment. Subclasses should override this if necessary.
      Overrides:
      makeAlignmentContext in class LeafNodeLayoutManager
      Parameters:
      context - the layout context used
      Returns:
      the appropriate alignment context
    • get

      public InlineArea get(LayoutContext context)
      get the inline area.
      Overrides:
      get in class LeafNodeLayoutManager
      Parameters:
      context - the context used to create the area
      Returns:
      the current inline area for this layout manager
    • getEffectiveArea

      protected InlineArea getEffectiveArea(LayoutContext layoutContext)
      Overrides:
      getEffectiveArea in class LeafNodeLayoutManager
      Returns:
      the effective area to be added to the area tree. Normally, this is simply "curArea" but in the case of page-number(-citation) curArea is cloned, updated and returned.
    • getBidiLevel

      protected int getBidiLevel()