Class AbstractCoordinateFormat
java.lang.Object
org.openstreetmap.josm.data.coor.conversion.AbstractCoordinateFormat
- All Implemented Interfaces:
ICoordinateFormat
- Direct Known Subclasses:
DecimalDegreesCoordinateFormat,DMSCoordinateFormat,NauticalCoordinateFormat,ProjectedCoordinateFormat
Abstract base class for
ICoordinateFormat implementations.- Since:
- 12735
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final DecimalFormatThe normal number format for server precision coordinatesprotected final Stringprotected static final StringCharacter denoting East, as stringprotected final Stringprotected static final StringCharacter denoting North, as stringprotected static final StringCharacter denoting South, as stringprotected static final StringCharacter denoting West, as string -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet display name for this coordinate formatgetId()Get unique id for this coordinate format.static DecimalFormatnewUnlocalizedDecimalFormat(String pattern) Creates a new unlocalizedDecimalFormat.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.data.coor.conversion.ICoordinateFormat
latToString, lonToString, toString
-
Field Details
-
id
-
displayName
-
cDdFormatter
The normal number format for server precision coordinates -
SOUTH
Character denoting South, as string -
NORTH
Character denoting North, as string -
WEST
Character denoting West, as string -
EAST
Character denoting East, as string
-
-
Constructor Details
-
AbstractCoordinateFormat
-
-
Method Details
-
newUnlocalizedDecimalFormat
Creates a new unlocalizedDecimalFormat. By not using the localized decimal separator, we can present a comma separated list of coordinates.- Parameters:
pattern- decimal format pattern- Returns:
DecimalFormatusing dot as decimal separator- Since:
- 14203
- See Also:
-
getId
Description copied from interface:ICoordinateFormatGet unique id for this coordinate format.- Specified by:
getIdin interfaceICoordinateFormat- Returns:
- unique id
-
getDisplayName
Description copied from interface:ICoordinateFormatGet display name for this coordinate format- Specified by:
getDisplayNamein interfaceICoordinateFormat- Returns:
- display name (localized)
-
toString
-