org.pz.platypus.commands
Class Alignment

java.lang.Object
  extended by 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

Field Summary
static int CENTER
           
static int JUST
           
static int LEFT
           
static int RIGHT
           
 
Constructor Summary
Alignment()
           
 
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
 

Field Detail

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
Constructor Detail

Alignment

public Alignment()
Method Detail

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