public enum Anchor extends Enum<Anchor>
Enum Constant and Description |
---|
BOTTOM
The element will be positioned below of the point, and horizontally centered
|
BOTTOM_LEFT
The element will be positioned below and left to the point
|
BOTTOM_RIGHT
The element will be positioned below and right to the point
|
CENTER
The element will be centered on the point
|
LEFT
The element will be positioned left to the point, and vertically centered
|
RIGHT
The element will be positioned right to the point, and vertically centered
|
TOP
The element will be positioned on top of the point, and horizontally centered
|
TOP_LEFT
The element will be positioned above and left to the point
|
TOP_RIGHT
The element will be positioned above and right to the point
|
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 TOP
public static final Anchor BOTTOM
public static final Anchor LEFT
public static final Anchor RIGHT
public static final Anchor TOP_LEFT
public static final Anchor TOP_RIGHT
public static final Anchor BOTTOM_LEFT
public static final Anchor BOTTOM_RIGHT
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