|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CoordinateFormat>
org.openstreetmap.josm.data.coor.CoordinateFormat
public enum CoordinateFormat
An enumeration of coordinate formats
| Enum Constant Summary | |
|---|---|
DECIMAL_DEGREES
the decimal format 999.999 |
|
DEGREES_MINUTES_SECONDS
the degrees/minutes/seconds format 9 deg 99 min 99 sec |
|
EAST_NORTH
coordinates East/North |
|
NAUTICAL
the nautical format |
|
| Field Summary | |
|---|---|
private static CoordinateFormat |
defaultCoordinateFormat
|
private java.lang.String |
displayName
|
| Method Summary | |
|---|---|
static CoordinateFormat |
getDefaultFormat()
Replies the default coordinate format to be use |
java.lang.String |
getDisplayName()
Replies the display name of the format |
static void |
setCoordinateFormat(CoordinateFormat format)
Sets the default coordinate format |
java.lang.String |
toString()
|
static CoordinateFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CoordinateFormat[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CoordinateFormat DECIMAL_DEGREES
public static final CoordinateFormat DEGREES_MINUTES_SECONDS
public static final CoordinateFormat NAUTICAL
public static final CoordinateFormat EAST_NORTH
| Field Detail |
|---|
private java.lang.String displayName
private static CoordinateFormat defaultCoordinateFormat
| Method Detail |
|---|
public static CoordinateFormat[] values()
for (CoordinateFormat c : CoordinateFormat.values()) System.out.println(c);
public static CoordinateFormat 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 name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getDisplayName()
public java.lang.String toString()
toString in class java.lang.Enum<CoordinateFormat>public static CoordinateFormat getDefaultFormat()
public static void setCoordinateFormat(CoordinateFormat format)
format - the default coordinate format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||