Enum Constant and Description |
---|
Center
Specifies that the text should be centered horizontally or vertically.
|
Far
Specifies that the text should be right- or bottom-aligned.
|
Near
Specifies that the text should be left- or top-aligned.
|
Modifier and Type | Method and Description |
---|---|
static Align |
fromInt(int intVal) |
int |
getValue() |
static Align |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Align[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Align Near
public static final Align Center
public static final Align Far
public static Align[] values()
for (Align c : Align.values()) System.out.println(c);
public static Align valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Align fromInt(int intVal)
public int getValue()