Enum Constant and Description |
---|
DOWN |
MIDDLE |
MIDDLE_DOWN |
MIDDLE_TOP |
TOP |
Modifier and Type | Field and Description |
---|---|
float |
portion |
Modifier and Type | Method and Description |
---|---|
static Valign |
get(java.lang.String valign) |
double |
getLocation(double height,
double objectHeight) |
double |
getValue(double height) |
float |
getValue(float height) |
static Valign |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Valign[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Valign DOWN
public static final Valign MIDDLE
public static final Valign TOP
public static final Valign MIDDLE_TOP
public static final Valign MIDDLE_DOWN
public static Valign[] values()
for (Valign c : Valign.values()) System.out.println(c);
public static Valign 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 static Valign get(java.lang.String valign)
public float getValue(float height)
public double getValue(double height)
public double getLocation(double height, double objectHeight)