Class PageBreakingAlgorithm.BestPageRecords

    • Field Detail

      • bestInsertedFootnotesLength

        private final int[] bestInsertedFootnotesLength
      • bestTotalFootnotesLength

        private final int[] bestTotalFootnotesLength
      • bestFootnoteListIndex

        private final int[] bestFootnoteListIndex
      • bestFootnoteElementIndex

        private final int[] bestFootnoteElementIndex
    • Constructor Detail

      • BestPageRecords

        protected BestPageRecords()
    • Method Detail

      • addRecord

        public void addRecord​(double demerits,
                              BreakingAlgorithm.KnuthNode node,
                              double adjust,
                              int availableShrink,
                              int availableStretch,
                              int difference,
                              int fitness)
        Description copied from class: BreakingAlgorithm.BestRecords
        Registers the new best active node for the given fitness class.
        Overrides:
        addRecord in class BreakingAlgorithm.BestRecords
        Parameters:
        demerits - the total demerits of the new optimal set of breakpoints
        node - the node starting the line ending at the current element
        adjust - adjustment ratio of the current line
        availableShrink - how much the current line can be shrinked
        availableStretch - how much the current line can be stretched
        difference - difference between the width of the considered line and the width of the "real" line
        fitness - fitness class of the current line
      • getInsertedFootnotesLength

        public int getInsertedFootnotesLength​(int fitness)
      • getTotalFootnotesLength

        public int getTotalFootnotesLength​(int fitness)
      • getFootnoteListIndex

        public int getFootnoteListIndex​(int fitness)
      • getFootnoteElementIndex

        public int getFootnoteElementIndex​(int fitness)