public static enum LatLonFormatter.Format extends java.lang.Enum<LatLonFormatter.Format>
Enum Constant and Description |
---|
DD_DDDDDD
Format a latitude or longitude in fractional degrees.
|
DDMM_MM
Format a latitude or longitude in degrees and fractional minutes.
|
DDMMSS
Format a latitude or longitude in degrees, minutes, and seconds,
|
UTM
Format a latitude/longitude pair in UTM (Universal Transverse Mercator) encoding.
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
format(double value,
boolean isLat)
Convert the specified latitude or longitude value into a String of this format.
|
java.lang.String |
toString()
Return the user-pretty version of this enum's name.
|
static LatLonFormatter.Format |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LatLonFormatter.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LatLonFormatter.Format DDMM_MM
public static final LatLonFormatter.Format DDMMSS
public static final LatLonFormatter.Format DD_DDDDDD
public static final LatLonFormatter.Format UTM
public static LatLonFormatter.Format[] values()
for (LatLonFormatter.Format c : LatLonFormatter.Format.values()) System.out.println(c);
public static LatLonFormatter.Format 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 abstract java.lang.String format(double value, boolean isLat)
value
- value in fractional degrees North or EastisLat
- whether to interpret this as a latitude or longitude valuepublic java.lang.String toString()
toString
in class java.lang.Enum<LatLonFormatter.Format>