public final class TextAlignment extends Object
Enumeration of possible text alignment values.
Modifier and Type | Field and Description |
---|---|
static int |
Center
Center alignment.
|
static int |
Justify
Justify alignment.
|
static int |
Left
Align to left.
|
static int |
Right
Align to right.
|
Modifier and Type | Method and Description |
---|---|
static int |
parse(String value)
Parses a string to a
enumeration value. |
static String |
toString(int value)
Returns a string representation of the
value. |
public static final int Left
Align to left.
public static final int Center
Center alignment.
public static final int Right
Align to right.
public static final int Justify
Justify alignment. Text will be aligned on both left and right margins.
public static final String toString(int value)
Returns a string representation of the
value.
TextAlignment
value
- The value to convert.TextAlignment
value.public static final int parse(String value)
Parses a string to a
enumeration value.
TextAlignment
value
- The string to parse.TextAlignment
enumeration value.