|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<HorizontalPosition>
us.zuercher.gpx2map.plotter.label.HorizontalPosition
public enum HorizontalPosition
HorizonalPosition is an enumeration representing the three horizontal positions of a label relative to the label's marker. These are left, centered, and right.
Enum Constant Summary | |
---|---|
CENTERED
Label centered above or below marker. |
|
LEFT
Label left of marker. |
|
RIGHT
Label 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 horizonal position as an integer in the set [-1, 0, 1]. |
static HorizontalPosition |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static HorizontalPosition[] |
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 HorizontalPosition LEFT
public static final HorizontalPosition CENTERED
public static final HorizontalPosition RIGHT
Field Detail |
---|
private final int relPos
Method Detail |
---|
public static final HorizontalPosition[] values()
for(HorizontalPosition c : HorizontalPosition.values()) System.out.println(c);
public static HorizontalPosition 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 |