Class UTMFranceDOMProjectionChoice
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice
-
- org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
-
- org.openstreetmap.josm.gui.preferences.projection.UTMFranceDOMProjectionChoice
-
- All Implemented Interfaces:
ProjectionChoice
public class UTMFranceDOMProjectionChoice extends ListProjectionChoice
ProjectionChoice for various French overseas territories (EPSG:2969,2970,2972,2973,2975).- See Also:
- DOM
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
ListProjectionChoice.CBPanel
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.Integer
FORT_MARIGOT_EPSG
private static java.lang.String
FORT_MARIGOT_NAME
private static java.lang.String
GUYANE_92_NAME
private static java.lang.Integer
GUYANE_EPSG
private static java.lang.Integer
MARTINIQUE_EPSG
private static java.lang.String
MARTINIQUE_NAME
private static java.lang.String
REUNION_92_NAME
private static java.lang.Integer
REUNION_EPSG
private static java.lang.Integer
SAINTE_ANNE_EPSG
private static java.lang.String
SAINTE_ANNE_NAME
private static java.lang.Integer[]
UTM_EPSGS
private static java.lang.String[]
UTM_GEODESIC_NAMES
-
Fields inherited from class org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
defaultIndex, entries, index, label
-
Fields inherited from class org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice
id, name
-
-
Constructor Summary
Constructors Constructor Description UTMFranceDOMProjectionChoice()
Constructs a newUTMFranceDOMProjectionChoice
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
allCodes()
Return all projection codes supported by this projection choice.java.lang.String
getCurrentCode()
Returns current projection code.java.util.Collection<java.lang.String>
getPreferencesFromCode(java.lang.String code)
Get Preferences from projection code.java.lang.String
getProjectionName()
Returns projection name.protected java.lang.String
indexToZone(int index)
Convert 0-based index to preference value.protected int
zoneToIndex(java.lang.String zone)
Convert preference value to 0-based index.-
Methods inherited from class org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
getPreferencePanel, getPreferences, setPreferences
-
Methods inherited from class org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice
getId, getProjection, toString
-
-
-
-
Field Detail
-
FORT_MARIGOT_NAME
private static final java.lang.String FORT_MARIGOT_NAME
-
SAINTE_ANNE_NAME
private static final java.lang.String SAINTE_ANNE_NAME
-
MARTINIQUE_NAME
private static final java.lang.String MARTINIQUE_NAME
-
REUNION_92_NAME
private static final java.lang.String REUNION_92_NAME
-
GUYANE_92_NAME
private static final java.lang.String GUYANE_92_NAME
-
UTM_GEODESIC_NAMES
private static final java.lang.String[] UTM_GEODESIC_NAMES
-
FORT_MARIGOT_EPSG
private static final java.lang.Integer FORT_MARIGOT_EPSG
-
SAINTE_ANNE_EPSG
private static final java.lang.Integer SAINTE_ANNE_EPSG
-
MARTINIQUE_EPSG
private static final java.lang.Integer MARTINIQUE_EPSG
-
REUNION_EPSG
private static final java.lang.Integer REUNION_EPSG
-
GUYANE_EPSG
private static final java.lang.Integer GUYANE_EPSG
-
UTM_EPSGS
private static final java.lang.Integer[] UTM_EPSGS
-
-
Constructor Detail
-
UTMFranceDOMProjectionChoice
public UTMFranceDOMProjectionChoice()
Constructs a newUTMFranceDOMProjectionChoice
.
-
-
Method Detail
-
indexToZone
protected java.lang.String indexToZone(int index)
Description copied from class:ListProjectionChoice
Convert 0-based index to preference value.- Specified by:
indexToZone
in classListProjectionChoice
- Parameters:
index
- 0-based index- Returns:
- preference value
- See Also:
ListProjectionChoice.zoneToIndex(java.lang.String)
-
zoneToIndex
protected int zoneToIndex(java.lang.String zone)
Description copied from class:ListProjectionChoice
Convert preference value to 0-based index.- Specified by:
zoneToIndex
in classListProjectionChoice
- Parameters:
zone
- preference value- Returns:
- 0-based index
- See Also:
ListProjectionChoice.indexToZone(int)
-
getProjectionName
public java.lang.String getProjectionName()
Description copied from class:AbstractProjectionChoice
Returns projection name.- Specified by:
getProjectionName
in classAbstractProjectionChoice
- Returns:
- projection name
-
getCurrentCode
public java.lang.String getCurrentCode()
Description copied from class:AbstractProjectionChoice
Returns current projection code.- Specified by:
getCurrentCode
in classAbstractProjectionChoice
- Returns:
- current projection code
-
allCodes
public java.lang.String[] allCodes()
Description copied from interface:ProjectionChoice
Return all projection codes supported by this projection choice.- Returns:
- all supported projection codes
-
getPreferencesFromCode
public java.util.Collection<java.lang.String> getPreferencesFromCode(java.lang.String code)
Description copied from interface:ProjectionChoice
Get Preferences from projection code.- Parameters:
code
- projection code- Returns:
- null when code is not part of this projection choice. An empty Collection as return value indicates, that the code is supported, but no preferences are required to set it up.
-
-