public enum Seat extends java.lang.Enum<Seat>
| Enum Constant and Description |
|---|
BOTTOM_CENTER |
BOTTOM_LEFT |
BOTTOM_RIGHT |
CENTER |
LEFT_CENTER |
RIGHT_CENTER |
TOP_CENTER |
TOP_LEFT |
TOP_RIGHT |
| Modifier and Type | Method and Description |
|---|---|
int |
getGravity() |
static Seat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Seat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Seat TOP_RIGHT
public static final Seat TOP_LEFT
public static final Seat TOP_CENTER
public static final Seat RIGHT_CENTER
public static final Seat LEFT_CENTER
public static final Seat CENTER
public static final Seat BOTTOM_RIGHT
public static final Seat BOTTOM_LEFT
public static final Seat BOTTOM_CENTER
public static Seat[] values()
for (Seat c : Seat.values()) System.out.println(c);
public static Seat 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 int getGravity()