public enum LabelOrientation extends java.lang.Enum<LabelOrientation>
Enum Constant and Description |
---|
ANGLED |
HORIZONTAL |
VERTICAL |
Modifier and Type | Field and Description |
---|---|
private int |
angle |
private java.lang.String |
humanReadable |
Modifier and Type | Method and Description |
---|---|
static LabelOrientation |
fromName(java.lang.String name)
Create a LabelOrientation from a string name.
|
int |
getAngle()
Get the integer angle name for this LabelOrientation.
|
java.lang.String |
toString()
Get the human-readable string name for this LabelOrientation.
|
static LabelOrientation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LabelOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LabelOrientation HORIZONTAL
public static final LabelOrientation VERTICAL
public static final LabelOrientation ANGLED
public static LabelOrientation[] values()
for (LabelOrientation c : LabelOrientation.values()) System.out.println(c);
public static LabelOrientation 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 java.lang.String toString()
toString
in class java.lang.Enum<LabelOrientation>
public int getAngle()
public static LabelOrientation fromName(java.lang.String name)
name
-