de.dante.extex.typesetter.paragraphBuilder.impl
Class BreakPoint

java.lang.Object
  extended byde.dante.extex.typesetter.paragraphBuilder.impl.BreakPoint

public class BreakPoint
extends java.lang.Object

This class represents a break point for the paragraph breaking.

Version:
$Revision: 1.8 $
Author:
Gerd Neugebauer
See Also:
"TTP [819]"

Constructor Summary
BreakPoint(int pos, WideGlue wd, WideGlue pwd, int pen)
          Creates a new object.
 
Method Summary
 Fitness getFitness()
          Getter for fitness.
 int getPenalty()
          Getter for penalty.
 FixedGlue getPointWidth()
          Getter for pointWidth.
 int getPosition()
          Getter for position.
 FixedGlue getWidth()
          Getter for width.
 boolean isActive()
          Getter for active.
 void setActive()
          Setter for active.
 void setFitness(Fitness fitness)
          Setter for fitness.
 void setPassive()
          Setter for active.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BreakPoint

public BreakPoint(int pos,
                  WideGlue wd,
                  WideGlue pwd,
                  int pen)
Creates a new object.

Parameters:
pos - the position in the hlist
wd - the width; i.e. the delta since the previous break point
pwd - the point width for this break point
pen - the penalty for this break point
Method Detail

getFitness

public Fitness getFitness()
Getter for fitness. The fitness is one of the fitness classes defined in Fitness. The fitness is null for break points which are not active.

Returns:
the fitness.

getPenalty

public int getPenalty()
Getter for penalty. The penalty has to be added to the overall penalty in case that this break point is active.

Returns:
the penalty.

getPointWidth

public FixedGlue getPointWidth()
Getter for pointWidth.

Returns:
the pointWidth.

getPosition

public int getPosition()
Getter for position.

Returns:
the position.

getWidth

public FixedGlue getWidth()
Getter for width.

Returns:
the width.

isActive

public boolean isActive()
Getter for active.

Returns:
the active.

setActive

public void setActive()
Setter for active.


setFitness

public void setFitness(Fitness fitness)
Setter for fitness.

Parameters:
fitness - the fitness to set.

setPassive

public void setPassive()
Setter for active.


toString

public java.lang.String toString()
See Also:
Object.toString()