public enum JustifyStyle extends java.lang.Enum<JustifyStyle>
The JustifyStyle enumeration spells out the legal field
justification values for classes such as JustifyTextWriter
. It
resides in a separate class for readability.
Enum Constant and Description |
---|
CENTER |
LEFT_JUSTIFY |
RIGHT_JUSTIFY |
Modifier and Type | Method and Description |
---|---|
static JustifyStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JustifyStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JustifyStyle RIGHT_JUSTIFY
public static final JustifyStyle LEFT_JUSTIFY
public static final JustifyStyle CENTER
public static JustifyStyle[] values()
for (JustifyStyle c : JustifyStyle.values()) System.out.println(c);
public static JustifyStyle 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 null