public enum Origin extends Enum<Origin> implements Enumeration
MarkerBatchPrimitive
Enum Constant and Description |
---|
BOTTOM_CENTER
The object's origin is its bottom, center point.
|
BOTTOM_LEFT
The object's origin is its bottom, left corner.
|
BOTTOM_RIGHT
The object's origin is its bottom, right corner.
|
CENTER
The object's origin is its center.
|
CENTER_LEFT
The object's origin is its center, left point.
|
CENTER_RIGHT
The object's origin is its center, right point.
|
TOP_CENTER
The object's origin is its top, center point.
|
TOP_LEFT
The object's origin is its top, left corner.
|
TOP_RIGHT
The object's origin is its top, right corner.
|
Modifier and Type | Method and Description |
---|---|
static Origin |
getDefault()
Get the enum constant that is considered to be the default.
|
static Origin |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static Origin |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Origin[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Origin BOTTOM_LEFT
public static final Origin BOTTOM_CENTER
public static final Origin BOTTOM_RIGHT
public static final Origin CENTER_LEFT
public static final Origin CENTER
public static final Origin CENTER_RIGHT
public static final Origin TOP_LEFT
public static final Origin TOP_CENTER
public static final Origin TOP_RIGHT
public static Origin[] values()
for (Origin c : Origin.values()) System.out.println(c);
public static Origin 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()
getValue
in interface Enumeration
@Nonnull public static Origin getFromValue(int value)
value
- a numeric value.