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
This class represents a feasible breaking point
with extra information about footnotes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Index of the last inserted element of the last inserted footnote.int
Index of the last inserted footnote.int
Additional length due to already inserted footnotes.private final List
<WhitespaceManagementPenalty.Variant> Pending variants of dynamic contents that were evaluated WRT this node.int
Total length of the footnotes.private int
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
ConstructorsConstructorDescriptionKnuthPageNode
(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
Methods inherited from class org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode
toString
-
Field Details
-
insertedFootnotes
public int insertedFootnotesAdditional length due to already inserted footnotes. -
totalFootnotes
public int totalFootnotesTotal length of the footnotes. -
footnoteListIndex
public int footnoteListIndexIndex of the last inserted footnote. -
footnoteElementIndex
public int footnoteElementIndexIndex of the last inserted element of the last inserted footnote. -
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 Details
-
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 Details
-
addVariant
-