Package com.io7m.jpita.core
Class JPAlignerBasic
java.lang.Object
com.io7m.jpita.core.JPAlignerBasic
- All Implemented Interfaces:
JPAlignerType
An basic aligner that left-aligns text.
-
Method Summary
-
Method Details
-
create
Construct a new aligner.- Parameters:
in_width- The maximum width in characters- Returns:
- A new aligner
-
addWord
Description copied from interface:JPAlignerTypeAdd a word to the current layout.- Specified by:
addWordin interfaceJPAlignerType- Parameters:
w- A word
-
breakLine
public void breakLine()Description copied from interface:JPAlignerTypeInsert a hard line break.- Specified by:
breakLinein interfaceJPAlignerType
-
finish
Description copied from interface:JPAlignerTypeFinish the current layout, effectively resetting it to a blank canvas.- Specified by:
finishin interfaceJPAlignerType- Returns:
- A list of formatted lines
-