fop 0.95

org.apache.fop.layoutmgr
Class BreakingAlgorithm.KnuthNode

java.lang.Object
  extended by org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode
Enclosing class:
BreakingAlgorithm

public class BreakingAlgorithm.KnuthNode
extends java.lang.Object

Class recording all the informations of a feasible breaking point.


Field Summary
 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 Summary
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)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

position

public int position
index of the breakpoint represented by this node


line

public int line
number of the line ending at this breakpoint


fitness

public int fitness
fitness class of the line ending at this breakpoint. One of 0, 1, 2, 3.


totalWidth

public int totalWidth
accumulated width of the KnuthElements up to after this breakpoint.


totalStretch

public int totalStretch
accumulated stretchability of the KnuthElements up to after this breakpoint.


totalShrink

public int totalShrink
accumulated shrinkability of the KnuthElements up to after this breakpoint.


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


totalDemerits

public double totalDemerits
minimum total demerits up to this breakpoint


previous

public BreakingAlgorithm.KnuthNode previous
best node for the preceding breakpoint


next

public BreakingAlgorithm.KnuthNode next
next possible node in the same line


fitRecoveryCounter

public int fitRecoveryCounter
Holds the number of subsequent recovery attempty that are made to get content fit into a line.

Constructor Detail

BreakingAlgorithm.KnuthNode

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)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

fop 0.95

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.