Class FootnoteManager

    • Constructor Detail

      • FootnoteManager

        public FootnoteManager()
    • Method Detail

      • addFootnoteBody

        public void addFootnoteBody​(LayoutContext c,
                                    BlockBox footnoteBody,
                                    LineBox line)
        Adds a footnote body to the line box page, creating the footnote area as required.

        Important: This changes the page break point by expanding the footnote area. It also reserves subsequent pages if required for the footnote area.

        If the line box is moved to a different page, one must call removeFootnoteBodies(LayoutContext, List, LineBox) before the page change and this method again after.
      • removeFootnoteBodies

        public void removeFootnoteBodies​(LayoutContext c,
                                         List<BlockBox> footnoteBodies,
                                         LineBox line)
        Removes footnotes. This is used when a line is moved to a new page. We remove from first page and add to the next.