org.openstreetmap.josm.gui.preferences.projection
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
public class LambertProjectionChoice
- extends ListProjectionChoice
Method Summary |
java.lang.String[] |
allCodes()
Return all projection codes supported by this projection choice. |
java.lang.String |
getCurrentCode()
|
javax.swing.JPanel |
getPreferencePanel(java.awt.event.ActionListener listener)
Generate and provide the GUI. |
java.util.Collection<java.lang.String> |
getPreferencesFromCode(java.lang.String code)
Get Preferences from projection code. |
java.lang.String |
getProjectionName()
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lambert4zones
public static java.lang.String[] lambert4zones
LambertProjectionChoice
public LambertProjectionChoice()
getPreferencePanel
public javax.swing.JPanel getPreferencePanel(java.awt.event.ActionListener listener)
- Description copied from interface:
ProjectionChoice
- Generate 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:
getPreferencePanel
in interface ProjectionChoice
- Overrides:
getPreferencePanel
in class ListProjectionChoice
- Parameters:
listener
- listener for any change of preferences
- Returns:
- the GUI panel
getCurrentCode
public java.lang.String getCurrentCode()
- Specified by:
getCurrentCode
in class AbstractProjectionChoice
getProjectionName
public java.lang.String getProjectionName()
- Specified by:
getProjectionName
in class AbstractProjectionChoice
allCodes
public java.lang.String[] allCodes()
- Description copied from interface:
ProjectionChoice
- Return all projection codes supported by this projection choice.
getPreferencesFromCode
public java.util.Collection<java.lang.String> getPreferencesFromCode(java.lang.String code)
- Description copied from interface:
ProjectionChoice
- Get Preferences from 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
protected java.lang.String indexToZone(int index)
- Description copied from class:
ListProjectionChoice
- Convert 0-based index to preference value.
- Specified by:
indexToZone
in class ListProjectionChoice
zoneToIndex
protected int zoneToIndex(java.lang.String zone)
- Description copied from class:
ListProjectionChoice
- Convert preference value to 0-based index.
- Specified by:
zoneToIndex
in class ListProjectionChoice
JOSM