public class BreakingAlgorithm.KnuthNode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 |
fitness
fitness class of the line ending at this breakpoint.
|
int |
fitRecoveryCounter
Holds the number of subsequent recovery attempty that are made to get content fit
into a line.
|
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.
|
Constructor and Description |
---|
BreakingAlgorithm.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)
Construct node.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public final int position
public final int line
public final int fitness
public final int totalWidth
public final int totalStretch
public final int totalShrink
public final double adjustRatio
public final int availableShrink
public final int availableStretch
public final int difference
public double totalDemerits
public BreakingAlgorithm.KnuthNode previous
public BreakingAlgorithm.KnuthNode next
public int fitRecoveryCounter
public BreakingAlgorithm.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)
position
- an integerline
- an integerfitness
- an integertotalWidth
- an integertotalStretch
- an integertotalShrink
- an integeradjustRatio
- a real numberavailableShrink
- an integeravailableStretch
- an integerdifference
- an integertotalDemerits
- a real numberprevious
- a nodeCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.