public enum Anchor extends Enum<Anchor> implements Key
Enum Constant and Description |
---|
center
This is the default.
|
end
Highest element boundary
|
start
Lowest element boundary
|
Modifier and Type | Method and Description |
---|---|
static Anchor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Anchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Anchor center
public static final Anchor start
public static final Anchor end
public static Anchor[] values()
for (Anchor c : Anchor.values()) System.out.println(c);
public static Anchor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null