com.azalient.apo.enums
Enum Alignment2D

java.lang.Object
  extended by java.lang.Enum<Alignment2D>
      extended by com.azalient.apo.enums.Alignment2D
All Implemented Interfaces:
Serializable, Comparable<Alignment2D>

public enum Alignment2D
extends Enum<Alignment2D>

Text alignment constants, used to position text in IDrawing


Enum Constant Summary
BOTTOM_CENTRE
           
BOTTOM_LEFT
           
BOTTOM_RIGHT
           
CENTRE_CENTRE
           
CENTRE_LEFT
           
CENTRE_RIGHT
           
MULTI_LINE
           
TOP_CENTRE
           
TOP_LEFT
           
TOP_RIGHT
           
 
Method Summary
 int hAlignment()
           
static Alignment2D parse(String s)
           
 int vAlignment()
           
static Alignment2D valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Alignment2D[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOP_LEFT

public static final Alignment2D TOP_LEFT

TOP_CENTRE

public static final Alignment2D TOP_CENTRE

TOP_RIGHT

public static final Alignment2D TOP_RIGHT

CENTRE_LEFT

public static final Alignment2D CENTRE_LEFT

CENTRE_CENTRE

public static final Alignment2D CENTRE_CENTRE

CENTRE_RIGHT

public static final Alignment2D CENTRE_RIGHT

BOTTOM_LEFT

public static final Alignment2D BOTTOM_LEFT

BOTTOM_CENTRE

public static final Alignment2D BOTTOM_CENTRE

BOTTOM_RIGHT

public static final Alignment2D BOTTOM_RIGHT

MULTI_LINE

public static final Alignment2D MULTI_LINE
Method Detail

values

public static Alignment2D[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Alignment2D c : Alignment2D.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Alignment2D valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

hAlignment

public int hAlignment()

vAlignment

public int vAlignment()

parse

public static Alignment2D parse(String s)