public enum CoordinateFormat extends 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 String |
displayName |
Modifier and Type | Method and Description |
---|---|
static CoordinateFormat |
getDefaultFormat()
Replies the default coordinate format to be use
|
String |
getDisplayName()
Replies the display name of the format
|
static void |
setCoordinateFormat(CoordinateFormat format)
Sets the default coordinate format
|
String |
toString() |
static CoordinateFormat |
valueOf(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 String displayName
private static volatile CoordinateFormat defaultCoordinateFormat
public static CoordinateFormat[] values()
for (CoordinateFormat c : CoordinateFormat.values()) System.out.println(c);
public static CoordinateFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getDisplayName()
public String toString()
toString
in class Enum<CoordinateFormat>
public static CoordinateFormat getDefaultFormat()
public static void setCoordinateFormat(CoordinateFormat format)
format
- the default coordinate format