org.apache.fop.layoutmgr
Class BreakingAlgorithm.KnuthNode
java.lang.Object
org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode
- BreakingAlgorithm
public class BreakingAlgorithm.KnuthNode
extends java.lang.Object
Class recording all the informations of a feasible breaking point.
double | adjustRatio - adjustment ratio if the line ends at this breakpoint
|
int | availableShrink - available stretch of the line ending at this breakpoint
|
int | availableStretch - available shrink of the line ending at this breakpoint
|
int | difference - difference between target and actual line width
|
int | fitRecoveryCounter - Holds the number of subsequent recovery attempty that are made to get content fit
into a line.
|
int | fitness - fitness class of the line ending at this breakpoint.
|
int | line - number of the line ending at this breakpoint
|
BreakingAlgorithm.KnuthNode | next - next possible node in the same line
|
int | position - index of the breakpoint represented by this node
|
BreakingAlgorithm.KnuthNode | previous - best node for the preceding breakpoint
|
double | totalDemerits - minimum total demerits up to this breakpoint
|
int | totalShrink - accumulated shrinkability of the KnuthElements up to after this breakpoint.
|
int | totalStretch - accumulated stretchability of the KnuthElements up to after this breakpoint.
|
int | totalWidth - accumulated width of the KnuthElements up to after this breakpoint.
|
KnuthNode(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)
|
adjustRatio
public double adjustRatio
adjustment ratio if the line ends at this breakpoint
availableShrink
public int availableShrink
available stretch of the line ending at this breakpoint
availableStretch
public int availableStretch
available shrink of the line ending at this breakpoint
difference
public int difference
difference between target and actual line width
fitRecoveryCounter
public int fitRecoveryCounter
Holds the number of subsequent recovery attempty that are made to get content fit
into a line.
fitness
public int fitness
fitness class of the line ending at this breakpoint. One of 0, 1, 2, 3.
line
public int line
number of the line ending at this breakpoint
position
public int position
index of the breakpoint represented by this node
totalDemerits
public double totalDemerits
minimum total demerits up to this breakpoint
totalShrink
public int totalShrink
accumulated shrinkability of the KnuthElements up to after this breakpoint.
totalStretch
public int totalStretch
accumulated stretchability of the KnuthElements up to after this breakpoint.
totalWidth
public int totalWidth
accumulated width of the KnuthElements up to after this breakpoint.
KnuthNode
public KnuthNode(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)
toString
public String toString()
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.