Package org.apache.fop.layoutmgr
Class PageBreakingAlgorithm.KnuthPageNode
- java.lang.Object
-
- org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode
-
- org.apache.fop.layoutmgr.PageBreakingAlgorithm.KnuthPageNode
-
- Enclosing class:
- PageBreakingAlgorithm
protected class PageBreakingAlgorithm.KnuthPageNode extends BreakingAlgorithm.KnuthNode
This class represents a feasible breaking point with extra information about footnotes.
-
-
Field Summary
Fields Modifier and Type Field Description int
footnoteElementIndex
Index of the last inserted element of the last inserted footnote.int
footnoteListIndex
Index of the last inserted footnote.int
insertedFootnotes
Additional length due to already inserted footnotes.private java.util.List<WhitespaceManagementPenalty.Variant>
pendingVariants
Pending variants of dynamic contents that were evaluated WRT this node.int
totalFootnotes
Total length of the footnotes.private int
totalVariantsWidth
-
Fields inherited from class org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode
adjustRatio, availableShrink, availableStretch, difference, fitness, fitRecoveryCounter, line, next, position, previous, totalDemerits, totalShrink, totalStretch, totalWidth
-
-
Constructor Summary
Constructors Constructor Description KnuthPageNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink, int insertedFootnotes, int totalFootnotes, int footnoteListIndex, int footnoteElementIndex, double adjustRatio, int availableShrink, int availableStretch, int difference, double totalDemerits, BreakingAlgorithm.KnuthNode previous)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addVariant(WhitespaceManagementPenalty.Variant variant)
-
Methods inherited from class org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode
toString
-
-
-
-
Field Detail
-
insertedFootnotes
public int insertedFootnotes
Additional length due to already inserted footnotes.
-
totalFootnotes
public int totalFootnotes
Total length of the footnotes.
-
footnoteListIndex
public int footnoteListIndex
Index of the last inserted footnote.
-
footnoteElementIndex
public int footnoteElementIndex
Index of the last inserted element of the last inserted footnote.
-
pendingVariants
private final java.util.List<WhitespaceManagementPenalty.Variant> pendingVariants
Pending variants of dynamic contents that were evaluated WRT this node. When computing page difference for a break element, the total width of these variants will be added to 'actualWidth'.
-
totalVariantsWidth
private int totalVariantsWidth
-
-
Constructor Detail
-
KnuthPageNode
public KnuthPageNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink, int insertedFootnotes, int totalFootnotes, int footnoteListIndex, int footnoteElementIndex, double adjustRatio, int availableShrink, int availableStretch, int difference, double totalDemerits, BreakingAlgorithm.KnuthNode previous)
-
-
Method Detail
-
addVariant
public void addVariant(WhitespaceManagementPenalty.Variant variant)
-
-