Class LambertProjectionChoice
java.lang.Object
org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice
org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
org.openstreetmap.josm.gui.preferences.projection.LambertProjectionChoice
- All Implemented Interfaces:
ProjectionChoice
ProjectionChoice for 4 zone Lambert (1920, EPSG:27561-27564).
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
ListProjectionChoice.CBPanel -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
defaultIndex, entries, index, labelFields inherited from class org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice
id, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]allCodes()Return all projection codes supported by this projection choice.Returns current projection code.getPreferencePanel(ActionListener listener) Generate and provide the GUI.getPreferencesFromCode(String code) Get Preferences from projection code.Returns projection name.protected StringindexToZone(int idx) Convert 0-based index to preference value.protected intzoneToIndex(String zone) Convert preference value to 0-based index.Methods inherited from class org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
getPreferences, setPreferencesMethods inherited from class org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice
getId, getProjection, toString
-
Field Details
-
LAMBERT_4_ZONES
-
-
Constructor Details
-
LambertProjectionChoice
public LambertProjectionChoice()Constructs a newLambertProjectionChoice.
-
-
Method Details
-
getPreferencePanel
Description copied from interface:ProjectionChoiceGenerate and provide the GUI. It will be displayed to the user. Call the listener, when the user makes changes in the GUI, so the projection info in the top panel gets updated.- Specified by:
getPreferencePanelin interfaceProjectionChoice- Overrides:
getPreferencePanelin classListProjectionChoice- Parameters:
listener- listener for any change of preferences- Returns:
- the GUI panel
-
getCurrentCode
Description copied from class:AbstractProjectionChoiceReturns current projection code.- Specified by:
getCurrentCodein classAbstractProjectionChoice- Returns:
- current projection code
-
getProjectionName
Description copied from class:AbstractProjectionChoiceReturns projection name.- Specified by:
getProjectionNamein classAbstractProjectionChoice- Returns:
- projection name
-
allCodes
Description copied from interface:ProjectionChoiceReturn all projection codes supported by this projection choice.- Returns:
- all supported projection codes
-
getPreferencesFromCode
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.
-
indexToZone
Description copied from class:ListProjectionChoiceConvert 0-based index to preference value.- Specified by:
indexToZonein classListProjectionChoice- Parameters:
idx- 0-based index- Returns:
- preference value
- See Also:
-
zoneToIndex
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:
-