public enum TextAlign extends Enum<TextAlign>
Modifier and Type | Field and Description |
---|---|
static String |
STRING_CENTER |
static String |
STRING_JUSTIFY |
static String |
STRING_LEFT |
static String |
STRING_RIGHT |
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
static TextAlign |
parse(String string) |
static TextAlign |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextAlign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAlign LEFT
public static final TextAlign RIGHT
public static final TextAlign CENTER
public static final TextAlign JUSTIFY
public static final String STRING_LEFT
public static final String STRING_RIGHT
public static final String STRING_CENTER
public static final String STRING_JUSTIFY
public static TextAlign[] values()
for (TextAlign c : TextAlign.values()) System.out.println(c);
public static TextAlign 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 String getValue()
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.