public enum Alignment extends Enum<Alignment>
Enum Constant and Description |
---|
ANY
A constant specifying that the segment can be placed anywhere within its location range.
|
MAX
A constant specifying that the segment prefers to be placed close to the upper bound of its location range.
|
MIN
A constant specifying that the segment prefers to be placed close to the lower bound of its location range.
|
Modifier and Type | Method and Description |
---|---|
static Alignment |
fromOrdinal(int ordinal) |
int |
value() |
static Alignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Alignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Alignment ANY
public static final Alignment MAX
public static final Alignment MIN
public static final Alignment fromOrdinal(int ordinal)
public int value()
public static Alignment valueOf(String name)
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullname
- the name of the enum constant to be returned.public static Alignment[] values()
for (Alignment c : Alignment.values()) System.out.println(c);