|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice
org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice
org.openstreetmap.josm.gui.preferences.projection.UTMProjectionChoice
public class UTMProjectionChoice
Nested Class Summary | |
---|---|
private class |
UTMProjectionChoice.UTMPanel
|
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice |
---|
ListProjectionChoice.CBPanel |
Field Summary | |
---|---|
private static java.util.List<java.lang.String> |
cbEntries
|
private static UTM.Hemisphere |
DEFAULT_HEMISPHERE
|
private UTM.Hemisphere |
hemisphere
|
Fields inherited from class org.openstreetmap.josm.gui.preferences.projection.ListProjectionChoice |
---|
defaultIndex, entries, index, label |
Constructor Summary | |
---|---|
UTMProjectionChoice()
|
Method Summary | |
---|---|
java.lang.String[] |
allCodes()
Return all projection codes supported by this projection class. |
java.lang.String |
getAlias()
|
javax.swing.JPanel |
getPreferencePanel(java.awt.event.ActionListener listener)
Generate and provide the GUI. |
java.util.Collection<java.lang.String> |
getPreferences(javax.swing.JPanel panel)
Extract preferences from the GUI. |
java.util.Collection<java.lang.String> |
getPreferencesFromCode(java.lang.String code)
Get Preferences from projection code. |
Projection |
getProjection()
Get the projection that matches the internal state. |
protected java.lang.String |
indexToZone(int index)
Convert 0-based index to preference value. |
void |
setPreferences(java.util.Collection<java.lang.String> args)
Set the internal state to match the preferences. |
protected int |
zoneToIndex(java.lang.String zone)
Convert preference value to 0-based index. |
Methods inherited from class org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice |
---|
getId, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final UTM.Hemisphere DEFAULT_HEMISPHERE
private UTM.Hemisphere hemisphere
private static final java.util.List<java.lang.String> cbEntries
Constructor Detail |
---|
public UTMProjectionChoice()
Method Detail |
---|
public javax.swing.JPanel getPreferencePanel(java.awt.event.ActionListener listener)
ProjectionChoice
getPreferencePanel
in interface ProjectionChoice
getPreferencePanel
in class ListProjectionChoice
listener
- listener for any change of preferences
public Projection getProjection()
ProjectionChoice
getProjection
in interface ProjectionChoice
public java.util.Collection<java.lang.String> getPreferences(javax.swing.JPanel panel)
ProjectionChoice
getPreferences
in interface ProjectionChoice
getPreferences
in class ListProjectionChoice
public java.lang.String[] allCodes()
ProjectionChoice
allCodes
in interface ProjectionChoice
public java.util.Collection<java.lang.String> getPreferencesFromCode(java.lang.String code)
ProjectionChoice
getPreferencesFromCode
in interface ProjectionChoice
public void setPreferences(java.util.Collection<java.lang.String> args)
ProjectionChoice
setPreferences
in interface ProjectionChoice
setPreferences
in class ListProjectionChoice
protected java.lang.String indexToZone(int index)
ListProjectionChoice
indexToZone
in class ListProjectionChoice
protected int zoneToIndex(java.lang.String zone)
ListProjectionChoice
zoneToIndex
in class ListProjectionChoice
public java.lang.String getAlias()
getAlias
in interface Alias
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |