public static enum WidgetView.Anchor extends Enum<WidgetView.Anchor>
Enum Constant and Description |
---|
BOTTOM_LEFT |
BOTTOM_RIGHT |
TOP_LEFT |
TOP_RIGHT |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static WidgetView.Anchor |
getType(int position)
Gets the enum position of the value passed as parameter
|
int |
getValue()
Gets the value of this position enum
|
static WidgetView.Anchor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WidgetView.Anchor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WidgetView.Anchor TOP_LEFT
public static final WidgetView.Anchor TOP_RIGHT
public static final WidgetView.Anchor BOTTOM_LEFT
public static final WidgetView.Anchor BOTTOM_RIGHT
public static final WidgetView.Anchor UNKNOWN
public static WidgetView.Anchor[] values()
for (WidgetView.Anchor c : WidgetView.Anchor.values()) System.out.println(c);
public static WidgetView.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 nullpublic int getValue()
public static WidgetView.Anchor getType(int position)
position
- value to interpretUNKNOWN
if not found