Enum Constant and Description |
---|
DOWN |
MIDDLE |
MIDDLE_DOWN |
MIDDLE_TOP |
TOP |
Modifier and Type | Method and Description |
---|---|
static Valign |
get(java.lang.String valignString)
Gets the vertical align enumeration value for the specified string.
|
double |
getLocation(double height,
double objectHeight)
Gets the location for the specified object height to be vertically aligned within the bounds of the specified height.
|
double |
getValue(double height)
Gets the proportional value of this instance.
|
float |
getValue(float height)
Gets the proportional value of this instance.
|
int |
getValue(int height)
Gets the proportional value of this instance.
|
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 valignString)
valignString
- The string representing the enum value.DOWN
if the specified string is invalid.public float getValue(float height)
height
- The height to calculate the relative value from.public double getValue(double height)
height
- The height to calculate the relative value from.public int getValue(int height)
height
- The height to calculate the relative value from.public double getLocation(double height, double objectHeight)
height
- The height, limiting the vertical alignment.objectHeight
- The height of the object for which to calculate the vertically aligned location.