Uses of Class
org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode
Packages that use BreakingAlgorithm.KnuthNode
Package
Description
FOP's layout engine.
Layout managers for inline formatting objects and line building.
-
Uses of BreakingAlgorithm.KnuthNode in org.apache.fop.layoutmgr
Subclasses of BreakingAlgorithm.KnuthNode in org.apache.fop.layoutmgrModifier and TypeClassDescriptionprotected classThis class represents a feasible breaking point with extra information about footnotes.Fields in org.apache.fop.layoutmgr declared as BreakingAlgorithm.KnuthNodeModifier and TypeFieldDescriptionprotected BreakingAlgorithm.KnuthNode[]BreakingAlgorithm.activeLinesThe set of active nodes in ascending line order.private BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.bestFloatEdgeNodeprivate final BreakingAlgorithm.KnuthNode[]BreakingAlgorithm.BestRecords.bestNodeprivate BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.bestNodeForIPDChangePageBreakingAlgorithm.bestNodeForLastPageprivate BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.lastBeforeKeepContextSwitchprivate BreakingAlgorithm.KnuthNodeBreakingAlgorithm.lastDeactivatedThe node to be reactivated if no set of feasible breakpoints can be found for this paragraph.private BreakingAlgorithm.KnuthNodeBreakingAlgorithm.lastRecoveredprivate BreakingAlgorithm.KnuthNodeBreakingAlgorithm.lastTooLongWhen in forced mode, the best node leading to a too long line.private BreakingAlgorithm.KnuthNodeBreakingAlgorithm.lastTooShortWhen in forced mode, the best node leading to a too short line.BreakingAlgorithm.KnuthNode.nextnext possible node in the same lineBreakingAlgorithm.KnuthNode.previousbest node for the preceding breakpointMethods in org.apache.fop.layoutmgr that return BreakingAlgorithm.KnuthNodeModifier and TypeMethodDescriptionprotected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.compareNodes(BreakingAlgorithm.KnuthNode node1, BreakingAlgorithm.KnuthNode node2) Compare two KnuthNodes and return the node with the least demerit.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.compareNodes(BreakingAlgorithm.KnuthNode node1, BreakingAlgorithm.KnuthNode node2) Compare two KnuthNodes and return the node with the least demerit.protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.createNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink) Creates a new active node for a break from the best active node of the given fitness class to the element at the given position.protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.createNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink, double adjustRatio, int availableShrink, int availableStretch, int difference, double totalDemerits, BreakingAlgorithm.KnuthNode previous) Creates a new active node for a feasible breakpoint at the given position.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.createNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink) Creates a new active node for a break from the best active node of the given fitness class to the element at the given position.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.createNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink, double adjustRatio, int availableShrink, int availableStretch, int difference, double totalDemerits, BreakingAlgorithm.KnuthNode previous) Creates a new active node for a feasible breakpoint at the given position.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.getBestFloatEdgeNode()(package private) BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.getBestNodeBeforeIPDChange()(package private) BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.getBestNodeForLastPage()protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.getLastTooLong()protected final BreakingAlgorithm.KnuthNodeBreakingAlgorithm.getLastTooShort()Return the last node that yielded a too short line.BreakingAlgorithm.BestRecords.getNode(int fitness) protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.getNode(int line) Returns the first active node for the given line.protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.recoverFromOverflow()Recover from an overflow condition.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.recoverFromOverflow()protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.recoverFromTooLong(BreakingAlgorithm.KnuthNode lastTooLong) Recover from aBreakingAlgorithm.KnuthNodeleading to a line that is too long.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.recoverFromTooLong(BreakingAlgorithm.KnuthNode lastTooLong) Overridden to defer a part to the next page, if it must be kept within one page, but is too large to fit in the last column.Methods in org.apache.fop.layoutmgr with parameters of type BreakingAlgorithm.KnuthNodeModifier and TypeMethodDescriptionprotected voidBreakingAlgorithm.activateNode(BreakingAlgorithm.KnuthNode node, int difference, double r, double demerits, int fitnessClass, int availableShrink, int availableStretch) Activate the given node.protected voidBreakingAlgorithm.addNode(int line, BreakingAlgorithm.KnuthNode node) Add a node at the end of the given line's existing active nodes.protected voidPageBreakingAlgorithm.addNode(int line, BreakingAlgorithm.KnuthNode node) Add a node at the end of the given line's existing active nodes.voidBreakingAlgorithm.BestRecords.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.voidPageBreakingAlgorithm.BestPageRecords.addRecord(double demerits, BreakingAlgorithm.KnuthNode node, double adjust, int availableShrink, int availableStretch, int difference, int fitness) protected voidBreakingAlgorithm.calculateBreakPoints(BreakingAlgorithm.KnuthNode node, KnuthSequence par, int total) Determines the set of optimal breakpoints corresponding to the given active node.protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.compareNodes(BreakingAlgorithm.KnuthNode node1, BreakingAlgorithm.KnuthNode node2) Compare two KnuthNodes and return the node with the least demerit.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.compareNodes(BreakingAlgorithm.KnuthNode node1, BreakingAlgorithm.KnuthNode node2) Compare two KnuthNodes and return the node with the least demerit.protected doubleBreakingAlgorithm.computeAdjustmentRatio(BreakingAlgorithm.KnuthNode activeNode, int difference) Return the adjustment ratio needed to make up for the difference.protected doublePageBreakingAlgorithm.computeAdjustmentRatio(BreakingAlgorithm.KnuthNode activeNode, int difference) Return the adjustment ratio needed to make up for the difference.protected doubleBalancingColumnBreakingAlgorithm.computeDemerits(BreakingAlgorithm.KnuthNode activeNode, KnuthElement element, int fitnessClass, double r) Computes the demerits of the current breaking (that is, up to the given element), if the next-to-last chosen breakpoint is the given active node.protected doubleBreakingAlgorithm.computeDemerits(BreakingAlgorithm.KnuthNode activeNode, KnuthElement element, int fitnessClass, double r) Computes the demerits of the current breaking (that is, up to the given element), if the next-to-last chosen breakpoint is the given active node.protected doublePageBreakingAlgorithm.computeDemerits(BreakingAlgorithm.KnuthNode activeNode, KnuthElement element, int fitnessClass, double r) Computes the demerits of the current breaking (that is, up to the given element), if the next-to-last chosen breakpoint is the given active node.protected intBreakingAlgorithm.computeDifference(BreakingAlgorithm.KnuthNode activeNode, KnuthElement element, int elementIndex) Return the difference between the natural width of a line that would be made between the given active node and the given element, and the available width of the real line.protected intPageBreakingAlgorithm.computeDifference(BreakingAlgorithm.KnuthNode activeNode, KnuthElement element, int elementIndex) Return the difference between the natural width of a line that would be made between the given active node and the given element, and the available width of the real line.protected voidBreakingAlgorithm.createForcedNodes(BreakingAlgorithm.KnuthNode node, int line, int elementIdx, int difference, double r, double demerits, int fitnessClass, int availableShrink, int availableStretch, int newWidth, int newStretch, int newShrink) protected voidPageBreakingAlgorithm.createForcedNodes(BreakingAlgorithm.KnuthNode node, int line, int elementIdx, int difference, double r, double demerits, int fitnessClass, int availableShrink, int availableStretch, int newWidth, int newStretch, int newShrink) protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.createNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink, double adjustRatio, int availableShrink, int availableStretch, int difference, double totalDemerits, BreakingAlgorithm.KnuthNode previous) Creates a new active node for a feasible breakpoint at the given position.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.createNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink, double adjustRatio, int availableShrink, int availableStretch, int difference, double totalDemerits, BreakingAlgorithm.KnuthNode previous) Creates a new active node for a feasible breakpoint at the given position.protected voidBreakingAlgorithm.deactivateNode(BreakingAlgorithm.KnuthNode node, int line) Deactivate the given nodeprotected voidPageBreakingAlgorithm.deactivateNode(BreakingAlgorithm.KnuthNode node, int line) Deactivate the given nodeprivate intRestartAtLM.findPositionIndex(AbstractBreaker breaker, BreakingAlgorithm.KnuthNode optimalBreak, PageBreakingAlgorithm alg, int start) protected voidBreakingAlgorithm.forceNode(BreakingAlgorithm.KnuthNode node, int line, int elementIdx, int difference, double r, double demerits, int fitnessClass, int availableShrink, int availableStretch) Force the givenBreakingAlgorithm.KnuthNode, and register it.private LinkedList<Integer> BalancingColumnBreakingAlgorithm.getPossibilityTrail(BreakingAlgorithm.KnuthNode activeNode) protected BreakingAlgorithm.KnuthNodeBreakingAlgorithm.recoverFromTooLong(BreakingAlgorithm.KnuthNode lastTooLong) Recover from aBreakingAlgorithm.KnuthNodeleading to a line that is too long.protected BreakingAlgorithm.KnuthNodePageBreakingAlgorithm.recoverFromTooLong(BreakingAlgorithm.KnuthNode lastTooLong) Overridden to defer a part to the next page, if it must be kept within one page, but is too large to fit in the last column.protected voidBreakingAlgorithm.removeNode(int line, BreakingAlgorithm.KnuthNode node) Remove the given active node registered for the given line.protected intBreakingAlgorithm.restartFrom(BreakingAlgorithm.KnuthNode restartingNode, int currentIndex) Restart from the given node at the given index.protected intPageBreakingAlgorithm.restartFrom(BreakingAlgorithm.KnuthNode restartingNode, int currentIndex) Restart from the given node at the given index.abstract voidBreakingAlgorithm.updateData2(BreakingAlgorithm.KnuthNode bestActiveNode, KnuthSequence sequence, int total) Empty method, hook for subclasses.voidPageBreakingAlgorithm.updateData2(BreakingAlgorithm.KnuthNode bestActiveNode, KnuthSequence sequence, int total) Empty method, hook for subclasses.Constructors in org.apache.fop.layoutmgr with parameters of type BreakingAlgorithm.KnuthNodeModifierConstructorDescriptionKnuthNode(int position, int line, int fitness, int totalWidth, int totalStretch, int totalShrink, double adjustRatio, int availableShrink, int availableStretch, int difference, double totalDemerits, BreakingAlgorithm.KnuthNode previous) Construct node.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) -
Uses of BreakingAlgorithm.KnuthNode in org.apache.fop.layoutmgr.inline
Methods in org.apache.fop.layoutmgr.inline with parameters of type BreakingAlgorithm.KnuthNodeModifier and TypeMethodDescriptionvoidLineLayoutManager.LineBreakingAlgorithm.updateData2(BreakingAlgorithm.KnuthNode bestActiveNode, KnuthSequence par, int total)