com.azalient.apo.enums
Enum Alignment2D
java.lang.Object
java.lang.Enum<Alignment2D>
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
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
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)