Class NauticalCoordinateFormat
- java.lang.Object
-
- org.openstreetmap.josm.data.coor.conversion.AbstractCoordinateFormat
-
- org.openstreetmap.josm.data.coor.conversion.NauticalCoordinateFormat
-
- All Implemented Interfaces:
ICoordinateFormat
public class NauticalCoordinateFormat extends AbstractCoordinateFormat
Coordinate format that converts a coordinate to degrees and minutes (nautical format).- Since:
- 12735
-
-
Field Summary
Fields Modifier and Type Field Description private static java.text.DecimalFormat
DM_MINUTE_FORMATTER
private static java.lang.String
DM00
private static java.lang.String
DM60
static NauticalCoordinateFormat
INSTANCE
The unique instance.-
Fields inherited from class org.openstreetmap.josm.data.coor.conversion.AbstractCoordinateFormat
cDdFormatter, displayName, EAST, id, NORTH, SOUTH, WEST
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NauticalCoordinateFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
degreesMinutes(double pCoordinate)
Replies the coordinate in degrees/minutes formatjava.lang.String
latToString(ILatLon ll)
Convert latitude to string.java.lang.String
lonToString(ILatLon ll)
Convert longitude to string.-
Methods inherited from class org.openstreetmap.josm.data.coor.conversion.AbstractCoordinateFormat
getDisplayName, getId, newUnlocalizedDecimalFormat, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.data.coor.conversion.ICoordinateFormat
toString
-
-
-
-
Field Detail
-
DM_MINUTE_FORMATTER
private static final java.text.DecimalFormat DM_MINUTE_FORMATTER
-
DM60
private static final java.lang.String DM60
-
DM00
private static final java.lang.String DM00
-
INSTANCE
public static final NauticalCoordinateFormat INSTANCE
The unique instance.
-
-
Constructor Detail
-
NauticalCoordinateFormat
protected NauticalCoordinateFormat()
-
-
Method Detail
-
latToString
public java.lang.String latToString(ILatLon ll)
Description copied from interface:ICoordinateFormat
Convert latitude to string.- Parameters:
ll
- the coordinate- Returns:
- formatted latitude
-
lonToString
public java.lang.String lonToString(ILatLon ll)
Description copied from interface:ICoordinateFormat
Convert longitude to string.- Parameters:
ll
- the coordinate- Returns:
- formatted longitude
-
degreesMinutes
public static java.lang.String degreesMinutes(double pCoordinate)
Replies the coordinate in degrees/minutes format- Parameters:
pCoordinate
- The coordinate to convert- Returns:
- The coordinate in degrees/minutes format
- Since:
- 12537
-
-