|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<VerticalPosition>
us.zuercher.gpx2map.plotter.label.VerticalPosition
public enum VerticalPosition
VerticalPosition is an enumeration representing the three vertical positions of a label relative to the label's marker. These are above, centered, and below.
Enum Constant Summary | |
---|---|
ABOVE
Label above marker. |
|
BELOW
Label below marker. |
|
CENTERED
Label centered left or right of marker. |
Field Summary | |
---|---|
private int |
relPos
Relative position as a signed integer in the set [-1, 0, 1]. |
Method Summary | |
---|---|
int |
getRelativePosition()
Return the relative position of this vertical position as an integer in the set [-1, 0, 1]. |
static VerticalPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static VerticalPosition[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final VerticalPosition ABOVE
public static final VerticalPosition CENTERED
public static final VerticalPosition BELOW
Field Detail |
---|
private final int relPos
Method Detail |
---|
public static final VerticalPosition[] values()
for(VerticalPosition c : VerticalPosition.values()) System.out.println(c);
public static VerticalPosition valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getRelativePosition()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |