Enum Constant and Description |
---|
BOTTOM |
BOTTOM_LEFT |
BOTTOM_RIGHT |
LEFT |
RIGHT |
TOP |
TOP_LEFT |
TOP_RIGHT |
Modifier and Type | Field and Description |
---|---|
static RectEdge[] |
EDGES |
static RectEdge[] |
EDGES_AND_HORIZONTAL_SIDES |
static RectEdge[] |
EDGES_AND_SIDES |
static RectEdge[] |
SIDES |
Modifier and Type | Method and Description |
---|---|
abstract float[] |
getPos(MultiRect rectF) |
abstract RectEdge |
horizontalNeighborEdge() |
abstract RectEdge |
opposite() |
void |
setPos(MultiRect rectF,
float x,
float y) |
static RectEdge |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RectEdge[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract RectEdge |
verticalNeighborEdge() |
public static final RectEdge TOP_LEFT
public static final RectEdge TOP
public static final RectEdge LEFT
public static final RectEdge RIGHT
public static final RectEdge BOTTOM
public static final RectEdge TOP_RIGHT
public static final RectEdge BOTTOM_RIGHT
public static final RectEdge BOTTOM_LEFT
public static final RectEdge[] EDGES
public static final RectEdge[] SIDES
public static final RectEdge[] EDGES_AND_SIDES
public static final RectEdge[] EDGES_AND_HORIZONTAL_SIDES
public static RectEdge[] values()
for (RectEdge c : RectEdge.values()) System.out.println(c);
public static RectEdge 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 RectEdge opposite()
public abstract RectEdge verticalNeighborEdge()
public abstract RectEdge horizontalNeighborEdge()
public abstract float[] getPos(MultiRect rectF)
public void setPos(MultiRect rectF, float x, float y)