Package org.apache.fop.layoutmgr
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 TypeMethodDescriptionvoid
addRecord
(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.int
getFootnoteElementIndex
(int fitness) int
getFootnoteListIndex
(int fitness) int
getInsertedFootnotesLength
(int fitness) int
getTotalFootnotesLength
(int fitness) Methods inherited from class org.apache.fop.layoutmgr.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.BestRecords
Registers the new best active node for the given fitness class.- Overrides:
addRecord
in 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)
-