Enum Constant and Description |
---|
CENTER |
EAST |
NORTH |
NORTHEAST |
NORTHWEST |
SOUTH |
SOUTHEAST |
SOUTHWEST |
WEST |
Modifier and Type | Method and Description |
---|---|
static Anchor |
getByValue(int value)
Get the anchor constant that corresponds to the specified value
|
int |
getValue()
The value of the anchor which can be used by java.awt.GridBagLayout.
|
java.lang.String |
toString() |
static Anchor |
valueOf(java.lang.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 NORTHWEST
public static final Anchor NORTH
public static final Anchor NORTHEAST
public static final Anchor WEST
public static final Anchor CENTER
public static final Anchor EAST
public static final Anchor SOUTHWEST
public static final Anchor SOUTH
public static final Anchor SOUTHEAST
public static Anchor[] values()
for (Anchor c : Anchor.values()) System.out.println(c);
public static Anchor 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 nullpublic static Anchor getByValue(int value)
value
- the value, as returned by getValue()
getValue()
public int getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<Anchor>