public enum AnchorPosition extends Enum<AnchorPosition>
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 AnchorPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AnchorPosition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnchorPosition TOP_MIDDLE
public static final AnchorPosition LEFT_TOP
public static final AnchorPosition LEFT_MIDDLE
public static final AnchorPosition LEFT_BOTTOM
public static final AnchorPosition RIGHT_TOP
public static final AnchorPosition RIGHT_MIDDLE
public static final AnchorPosition RIGHT_BOTTOM
public static final AnchorPosition BOTTOM_MIDDLE
public static final AnchorPosition CENTER
public static AnchorPosition[] values()
for (AnchorPosition c : AnchorPosition.values()) System.out.println(c);
public static AnchorPosition 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