public enum Align extends Enum<Align> implements Key
Enum Constant and Description |
---|
BOTTOM
The label is positioned to the bottom of the anchor point (90 degrees).
|
CENTER
Is the default: the label is centered on the anchor point.
|
END
The label is positioned after the anchor point, following the same direction.
|
LEFT
The label is positioned to the left of the anchor point (180 degrees).
|
RIGHT
The label is positioned to the right of the anchor point (0 degrees).
|
START
The label is positioned before the anchor point, following the same direction.
|
TOP
The label is positioned to the top of the anchor point (270 degrees).
|
Modifier and Type | Method and Description |
---|---|
double |
getDegrees()
Returns a number representing the clockwise angle (in degree) which defines the label box alignment relative to "anchor".
|
String |
value()
Returns the name value of property
|
static Align |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Align[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkAndGetIfValid, checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
public static final Align CENTER
public static final Align START
public static final Align END
public static final Align RIGHT
public static final Align BOTTOM
public static final Align LEFT
public static final Align TOP
public static Align[] values()
for (Align c : Align.values()) System.out.println(c);
public static Align 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 String value()
Key
public double getDegrees()