public enum TextAlignment extends java.lang.Enum<TextAlignment>
Enum Constant and Description |
---|
BottomCenter
Text is vertically aligned at the bottom, and horizontally aligned at the center.
|
BottomLeft
Text is vertically aligned at the bottom, and horizontally aligned on the left.
|
BottomRight
Text is vertically aligned at the bottom, and horizontally aligned on the right.
|
MiddleCenter
Text is vertically aligned in the middle, and horizontally aligned at the center.
|
MiddleLeft
Text is vertically aligned in the middle, and horizontally aligned on the left.
|
MiddleRight
Text is vertically aligned in the middle, and horizontally aligned on the right.
|
NoWrap
The only flag that can be combines with any of the alignment flags.
|
TopCenter
Text is vertically aligned at the top, and horizontally aligned at the center.
|
TopLeft
Text is vertically aligned at the top, and horizontally aligned on the left.
|
TopRight
Text is vertically aligned at the top, and horizontally aligned on the right.
|
Modifier and Type | Method and Description |
---|---|
static TextAlignment |
fromInt(int intVal) |
int |
getValue() |
static TextAlignment |
valueOf(java.lang.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 BottomCenter
public static final TextAlignment BottomLeft
public static final TextAlignment BottomRight
public static final TextAlignment MiddleCenter
public static final TextAlignment MiddleLeft
public static final TextAlignment MiddleRight
public static final TextAlignment TopCenter
public static final TextAlignment TopLeft
public static final TextAlignment TopRight
public static final TextAlignment NoWrap
public static TextAlignment[] values()
for (TextAlignment c : TextAlignment.values()) System.out.println(c);
public static TextAlignment 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 TextAlignment fromInt(int intVal)
public int getValue()