public static enum Layer.Origin extends java.lang.Enum<Layer.Origin>
| Enum Constant | Description |
|---|---|
BC |
Origin is at bottom center.
|
CENTER |
Origin is at layer's center.
|
FIXED |
Origin is manually specified via
Layer.setOrigin(float,float). |
LC |
Origin is at left center.
|
LL |
Origin is in lower left.
|
LR |
Origin is in lower right.
|
RC |
Origin is at right center.
|
TC |
Origin is at top center.
|
UL |
Origin is in upper left.
|
UR |
Origin is in upper right.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract float |
ox(float width) |
|
abstract float |
oy(float height) |
|
static Layer.Origin |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Layer.Origin[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Layer.Origin FIXED
Layer.setOrigin(float,float).public static final Layer.Origin CENTER
public static final Layer.Origin UL
public static final Layer.Origin UR
public static final Layer.Origin LL
public static final Layer.Origin LR
public static final Layer.Origin TC
public static final Layer.Origin BC
public static final Layer.Origin LC
public static final Layer.Origin RC
public static Layer.Origin[] values()
for (Layer.Origin c : Layer.Origin.values()) System.out.println(c);
public static Layer.Origin 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 abstract float ox(float width)
public abstract float oy(float height)
Copyright © 2018. All Rights Reserved.