public enum TextAlignment extends Enum<TextAlignment>
| Enum Constant and Description |
|---|
CENTERED
Text aligned centered.
|
LEFT_ALIGNED
Text aligned left.
|
RIGHT_ALIGNED
Text aligned right.
|
| Modifier and Type | Method and Description |
|---|---|
static TextAlignment |
valueForString(String value)
Convert String to TextAlignment
|
static TextAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAlignment LEFT_ALIGNED
public static final TextAlignment RIGHT_ALIGNED
public static final TextAlignment CENTERED
public static TextAlignment[] values()
for (TextAlignment c : TextAlignment.values()) System.out.println(c);
public static TextAlignment valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TextAlignment valueForString(String value)
value - String