fop 0.92beta

org.apache.fop.layoutmgr
Class BreakingAlgorithm.KnuthNode

java.lang.Object
  |
  +--org.apache.fop.layoutmgr.BreakingAlgorithm.KnuthNode
Enclosing class:
BreakingAlgorithm

public class BreakingAlgorithm.KnuthNode
extends java.lang.Object


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 his 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
 int totalStretch
          accumulated stretchability of the KnuthElements
 int totalWidth
          accumulated width of the KnuthElements
 
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 his breakpoint

totalWidth

public int totalWidth
accumulated width of the KnuthElements

totalStretch

public int totalStretch
accumulated stretchability of the KnuthElements

totalShrink

public int totalShrink
accumulated shrinkability of the KnuthElements

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.92beta

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