org.pz.platypus.commands
Class Alignment
java.lang.Object
org.pz.platypus.commands.Alignment
public class Alignment
- extends java.lang.Object
The possible paragraph alignments. Cannot use enums because of the way the Value class
is set up.
- Author:
- alb
Method Summary |
java.lang.String |
toString(int alignment,
GDD gdd)
Convert an alignment to string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CENTER
public static final int CENTER
- See Also:
- Constant Field Values
JUST
public static final int JUST
- See Also:
- Constant Field Values
LEFT
public static final int LEFT
- See Also:
- Constant Field Values
RIGHT
public static final int RIGHT
- See Also:
- Constant Field Values
Alignment
public Alignment()
toString
public java.lang.String toString(int alignment,
GDD gdd)
- Convert an alignment to string
- Parameters:
alignment
- the alignment to convert (see static values at start of class)gdd
- contains the literals lookup table
- Returns:
- a string version of the aligment, or "INVALID" if not a valid value
Copyright © 2008-10 Pacific Data Works LLC