Package com.io7m.jpita.core
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 TypeMethodDescriptionbooleanshouldJustify(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 whitespacetext- The number of characters on the line that would be text- Returns:
trueiff the line should be justified
-