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
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 Summary
Fields Modifier and Type Field Description private int[]bestFootnoteElementIndexprivate int[]bestFootnoteListIndexprivate int[]bestInsertedFootnotesLengthprivate int[]bestTotalFootnotesLength
-
Constructor Summary
Constructors Modifier Constructor Description protectedBestPageRecords()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRecord(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 org.apache.fop.layoutmgr.BreakingAlgorithm.BestRecords
getAdjust, getAvailableShrink, getAvailableStretch, getDemerits, getDifference, getMinDemerits, getNode, hasRecords, notInfiniteDemerits, reset
-
-
-
-
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.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)
-
-