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

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

public final class Fitness
extends java.lang.Object

This class provides a finite enumeration for fitness values.

Version:
$Revision: 1.5 $
Author:
Gerd Neugebauer
See Also:
"TTP [817]"

Field Summary
static Fitness DECENT
          The field DESCENT contains the fitness of class 2.
static Fitness LOOSE
          The field LOOSE contains the fitness of class 1.
static Fitness TIGHT
          The field TIGHT contains the fitness of class 3.
static Fitness VERY_LOOSE
          The field VERY_LOOSE contains the fitness of class 0.
 
Method Summary
 boolean adjacent(Fitness fitness)
          Determine whether the given fitness has the same order or a class which is one less or one more than the own order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIGHT

public static final Fitness TIGHT
The field TIGHT contains the fitness of class 3.


LOOSE

public static final Fitness LOOSE
The field LOOSE contains the fitness of class 1.


VERY_LOOSE

public static final Fitness VERY_LOOSE
The field VERY_LOOSE contains the fitness of class 0.


DECENT

public static final Fitness DECENT
The field DESCENT contains the fitness of class 2.

Method Detail

adjacent

public boolean adjacent(Fitness fitness)
Determine whether the given fitness has the same order or a class which is one less or one more than the own order.

Parameters:
fitness - the fitness to compare to
Returns:
true iff the order of the given fitness is equal or adjacent to the given one.