Package org.apache.fop.layoutmgr
Class BreakingAlgorithm.FitnessClasses
- java.lang.Object
-
- org.apache.fop.layoutmgr.BreakingAlgorithm.FitnessClasses
-
- Enclosing class:
- BreakingAlgorithm
static final class BreakingAlgorithm.FitnessClasses extends java.lang.Object
Holder for symbolic literals for the fitness classes
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
LOOSE
(package private) static java.lang.String[]
NAMES
(package private) static int
TIGHT
(package private) static int
VERY_LOOSE
(package private) static int
VERY_TIGHT
-
Constructor Summary
Constructors Modifier Constructor Description private
FitnessClasses()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static int
computeFitness(double adjustRatio)
Figure out the fitness class of this line (tight, loose, very tight or very loose).
-
-
-
Field Detail
-
VERY_TIGHT
static final int VERY_TIGHT
- See Also:
- Constant Field Values
-
TIGHT
static final int TIGHT
- See Also:
- Constant Field Values
-
LOOSE
static final int LOOSE
- See Also:
- Constant Field Values
-
VERY_LOOSE
static final int VERY_LOOSE
- See Also:
- Constant Field Values
-
NAMES
static final java.lang.String[] NAMES
-
-
Method Detail
-
computeFitness
static int computeFitness(double adjustRatio)
Figure out the fitness class of this line (tight, loose, very tight or very loose). See the section on "More Bells and Whistles" in Knuth's "Breaking Paragraphs Into Lines".- Parameters:
adjustRatio
- the adjustment ratio- Returns:
- the fitness class
-
-