Class PageNumberLayoutManager

    • Constructor Detail

      • 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 Detail

      • 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()