public enum CHorizontalAlignment extends java.lang.Enum<CHorizontalAlignment>
| Enum Constant and Description |
|---|
CENTER
Center alignment.
|
LEFT
Align to left.
|
RIGHT
Align to right.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Get the integer value of this enum.
|
static CHorizontalAlignment |
toEnum(int id)
Convert an integer id to
CHorizontalAlignment. |
static CHorizontalAlignment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CHorizontalAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CHorizontalAlignment LEFT
public static final CHorizontalAlignment CENTER
public static final CHorizontalAlignment RIGHT
public static CHorizontalAlignment[] values()
for (CHorizontalAlignment c : CHorizontalAlignment.values()) System.out.println(c);
public static CHorizontalAlignment 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 CHorizontalAlignment toEnum(int id)
CHorizontalAlignment.
If the id is not recognized, LEFT is returned by default.id - Integer id.LEFT if unknown.public int getValue()