public enum Anchor extends java.lang.Enum<Anchor>
Widget
can use. There are a total
8 possible anchor positions representing each corner of the Widget and the point exactly between each corner.Enum Constant and Description |
---|
BOTTOM_MIDDLE |
CENTER |
LEFT_BOTTOM |
LEFT_MIDDLE |
LEFT_TOP |
RIGHT_BOTTOM |
RIGHT_MIDDLE |
RIGHT_TOP |
TOP_MIDDLE |
Modifier and Type | Method and Description |
---|---|
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 TOP_MIDDLE
public static final Anchor LEFT_TOP
public static final Anchor LEFT_MIDDLE
public static final Anchor LEFT_BOTTOM
public static final Anchor RIGHT_TOP
public static final Anchor RIGHT_MIDDLE
public static final Anchor RIGHT_BOTTOM
public static final Anchor BOTTOM_MIDDLE
public static final Anchor CENTER
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 null