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[]
bestFootnoteElementIndex
private int[]
bestFootnoteListIndex
private int[]
bestInsertedFootnotesLength
private int[]
bestTotalFootnotesLength
-
Constructor Summary
Constructors Modifier Constructor Description protected
BestPageRecords()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
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 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)
-
-