Class GaussKruegerProjectionChoice
- java.lang.Object
-
- org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice
-
- org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
-
- org.openstreetmap.josm.gui.preferences.projection.GaussKruegerProjectionChoice
-
- All Implemented Interfaces:
ProjectionChoice
public class GaussKruegerProjectionChoice extends ListProjectionChoice
ProjectionChoice for Gauß-Krüger coordinate system (zones 2-5, EPSG:31466-31469).- See Also:
- Gauß-Krüger
-
-
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.String[]ZONES-
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 GaussKruegerProjectionChoice()Constructs a newGaussKruegerProjectionChoice.
-
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.StringgetCurrentCode()Returns current projection code.java.util.Collection<java.lang.String>getPreferencesFromCode(java.lang.String code)Get Preferences from projection code.java.lang.StringgetProjectionName()Returns projection name.protected java.lang.StringindexToZone(int index)Convert 0-based index to preference value.protected intzoneToIndex(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
-
ZONES
private static final java.lang.String[] ZONES
-
-
Constructor Detail
-
GaussKruegerProjectionChoice
public GaussKruegerProjectionChoice()
Constructs a newGaussKruegerProjectionChoice.
-
-
Method Detail
-
getCurrentCode
public java.lang.String getCurrentCode()
Description copied from class:AbstractProjectionChoiceReturns current projection code.- Specified by:
getCurrentCodein classAbstractProjectionChoice- Returns:
- current projection code
-
indexToZone
protected java.lang.String indexToZone(int index)
Description copied from class:ListProjectionChoiceConvert 0-based index to preference value.- Specified by:
indexToZonein 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:ListProjectionChoiceConvert preference value to 0-based index.- Specified by:
zoneToIndexin classListProjectionChoice- Parameters:
zone- preference value- Returns:
- 0-based index
- See Also:
ListProjectionChoice.indexToZone(int)
-
allCodes
public java.lang.String[] allCodes()
Description copied from interface:ProjectionChoiceReturn 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:ProjectionChoiceGet 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.
-
getProjectionName
public java.lang.String getProjectionName()
Description copied from class:AbstractProjectionChoiceReturns projection name.- Specified by:
getProjectionNamein classAbstractProjectionChoice- Returns:
- projection name
-
-