Class FootnoteLayoutManager

    • Constructor Detail

      • FootnoteLayoutManager

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

      • getNextKnuthElements

        public java.util.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 java.util.List getChangedKnuthElements​(java.util.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
      • addAnchor

        private void addAnchor​(java.util.List citationList)
        Find the last box in the sequence, and add a reference to the FootnoteBodyLM
        Parameters:
        citationList - the list of elements representing the footnote citation