Class PageBreakingAlgorithm.BestPageRecords

java.lang.Object
org.apache.fop.layoutmgr.BreakingAlgorithm.BestRecords
org.apache.fop.layoutmgr.PageBreakingAlgorithm.BestPageRecords
Enclosing class:
PageBreakingAlgorithm

protected class PageBreakingAlgorithm.BestPageRecords extends BreakingAlgorithm.BestRecords
this class stores information about how the nodes which could start a line ending at the current element
  • Field Details

    • bestInsertedFootnotesLength

      private final int[] bestInsertedFootnotesLength
    • bestTotalFootnotesLength

      private final int[] bestTotalFootnotesLength
    • bestFootnoteListIndex

      private final int[] bestFootnoteListIndex
    • bestFootnoteElementIndex

      private final int[] bestFootnoteElementIndex
  • Constructor Details

    • BestPageRecords

      protected BestPageRecords()
  • Method Details

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