Interface JPJustifierBasic.SpaceTextDecisionType

Enclosing class:
JPJustifierBasic

public static interface JPJustifierBasic.SpaceTextDecisionType
A function that, when evaluated, yields true iff a line with the given number of space and text characters should be justified.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    shouldJustify(int space, int text)
    Decide whether or not to justify text.
  • Method Details

    • shouldJustify

      boolean shouldJustify(int space, int text)
      Decide whether or not to justify text.
      Parameters:
      space - The number of characters on the line that would be whitespace
      text - The number of characters on the line that would be text
      Returns:
      true iff the line should be justified