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