static enum PlainTextFormatter.TextAlign extends java.lang.Enum<PlainTextFormatter.TextAlign>
Modifier and Type | Field and Description |
---|---|
private int |
alignment |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getTextAlign() |
static PlainTextFormatter.TextAlign |
valueOf(int alignment) |
static PlainTextFormatter.TextAlign |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlainTextFormatter.TextAlign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlainTextFormatter.TextAlign LEFT
public static final PlainTextFormatter.TextAlign CENTER
public static final PlainTextFormatter.TextAlign RIGHT
public static final PlainTextFormatter.TextAlign JUSTIFY
public static PlainTextFormatter.TextAlign[] values()
for (PlainTextFormatter.TextAlign c : PlainTextFormatter.TextAlign.values()) System.out.println(c);
public static PlainTextFormatter.TextAlign 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 nullint getTextAlign()
public static PlainTextFormatter.TextAlign valueOf(int alignment)