Class BreakingAlgorithm.FitnessClasses

java.lang.Object
org.apache.fop.layoutmgr.BreakingAlgorithm.FitnessClasses
Enclosing class:
BreakingAlgorithm

static final class BreakingAlgorithm.FitnessClasses extends Object
Holder for symbolic literals for the fitness classes
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final int
     
    (package private) static final String[]
     
    (package private) static final int
     
    (package private) static final int
     
    (package private) static final int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • FitnessClasses

      private FitnessClasses()
  • Method Details

    • 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