org.ka2ddo.yaac.util
Class LatLonFormatter
java.lang.Object
org.ka2ddo.yaac.util.LatLonFormatter
public class LatLonFormatter
- extends java.lang.Object
Provide a formatter for a latitude or longitude value in degrees/minutes/fractional minutes
and direction (or some other format style for GUI display).
Nested Class Summary |
static class |
LatLonFormatter.Format
Define the supported different formats for latitude and longitude display. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LAT
public static final LatLonFormatter LAT
LON
public static final LatLonFormatter LON
LatLonFormatter
public LatLonFormatter(boolean isLat,
boolean forDisplay)
LatLonFormatter
public LatLonFormatter(boolean isLat,
boolean forDisplay,
LatLonFormatter.Format latLonFormat)
getGlobalLatLonFormat
public static LatLonFormatter.Format getGlobalLatLonFormat()
setGlobalLatLonFormat
public static void setGlobalLatLonFormat(LatLonFormatter.Format globalLatLonFormat)
addPropertyChangeListener
public static void addPropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
public static void removePropertyChangeListener(java.beans.PropertyChangeListener l)
format
public java.lang.String format(double value)
format
public static java.lang.String format(double latValue,
double lonValue)