public enum CoordinateFormat extends java.lang.Enum<CoordinateFormat>
| Enum Constant and Description |
|---|
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
|
| Modifier and Type | Field and Description |
|---|---|
private static CoordinateFormat |
defaultCoordinateFormat |
private java.lang.String |
displayName |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final CoordinateFormat DECIMAL_DEGREES
public static final CoordinateFormat DEGREES_MINUTES_SECONDS
public static final CoordinateFormat NAUTICAL
public static final CoordinateFormat EAST_NORTH
private java.lang.String displayName
private static CoordinateFormat defaultCoordinateFormat
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 namejava.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