Class CoordinateFormatManager
java.lang.Object
org.openstreetmap.josm.data.coor.conversion.CoordinateFormatManager
Class that manages the available coordinate formats.
- Since:
- 12735
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ICoordinateFormatprivate static final List<ICoordinateFormat> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ICoordinateFormatGet registered coordinate format by idstatic List<ICoordinateFormat>Get the list of all registered coordinate formats.static ICoordinateFormatReplies the default coordinate format to be usestatic voidRegister a coordinate format.static voidsetCoordinateFormat(ICoordinateFormat format) Sets the default coordinate format
-
Field Details
-
formats
-
defaultCoordinateFormat
-
-
Constructor Details
-
CoordinateFormatManager
private CoordinateFormatManager()
-
-
Method Details
-
registerCoordinateFormat
Register a coordinate format.It will be available as a choice in the preferences.
- Parameters:
format- the coordinate format
-
getCoordinateFormats
Get the list of all registered coordinate formats.- Returns:
- the list of all registered coordinate formats
-
getDefaultFormat
Replies the default coordinate format to be use- Returns:
- the default coordinate format
-
setCoordinateFormat
Sets the default coordinate format- Parameters:
format- the default coordinate format
-
getCoordinateFormat
Get registered coordinate format by id- Parameters:
id- id of the coordinate format to get- Returns:
- the registered
ICoordinateFormatwith given id, ornullif no match is found
-