Class PageBreakingAlgorithm.BestPageRecords
java.lang.Object
org.apache.fop.layoutmgr.BreakingAlgorithm.BestRecords
org.apache.fop.layoutmgr.PageBreakingAlgorithm.BestPageRecords
- Enclosing class:
PageBreakingAlgorithm
this class stores information about how the nodes
which could start a line ending at the current element
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]private final int[]private final int[]private final int[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecord(double demerits, BreakingAlgorithm.KnuthNode node, double adjust, int availableShrink, int availableStretch, int difference, int fitness) Registers the new best active node for the given fitness class.intgetFootnoteElementIndex(int fitness) intgetFootnoteListIndex(int fitness) intgetInsertedFootnotesLength(int fitness) intgetTotalFootnotesLength(int fitness) Methods inherited from class BreakingAlgorithm.BestRecords
getAdjust, getAvailableShrink, getAvailableStretch, getDemerits, getDifference, getMinDemerits, getNode, hasRecords, notInfiniteDemerits, reset
-
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.BestRecordsRegisters the new best active node for the given fitness class.- Overrides:
addRecordin classBreakingAlgorithm.BestRecords- Parameters:
demerits- the total demerits of the new optimal set of breakpointsnode- the node starting the line ending at the current elementadjust- adjustment ratio of the current lineavailableShrink- how much the current line can be shrinkedavailableStretch- how much the current line can be stretcheddifference- difference between the width of the considered line and the width of the "real" linefitness- 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)
-