|
||||||||||
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.SingleProjectionChoice
public class SingleProjectionChoice
ProjectionChoice, that offers just one projection as choice. The GUI is an empty panel.
Field Summary | |
---|---|
protected java.lang.String |
code
|
Fields inherited from class org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice |
---|
cacheDir, id, name |
Constructor Summary | |
---|---|
SingleProjectionChoice(java.lang.String name,
java.lang.String id,
java.lang.String code)
|
|
SingleProjectionChoice(java.lang.String name,
java.lang.String id,
java.lang.String code,
java.lang.String cacheDir)
Constructor. |
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> |
getPreferences(javax.swing.JPanel p)
Extract preferences from the GUI. |
java.util.Collection<java.lang.String> |
getPreferencesFromCode(java.lang.String code)
Get Preferences from projection code. |
java.lang.String |
getProjectionName()
|
void |
setPreferences(java.util.Collection<java.lang.String> args)
Set the internal state to match the preferences. |
java.lang.String |
toString()
Short name of the projection choice as shown in the GUI (combo box). |
Methods inherited from class org.openstreetmap.josm.gui.preferences.projection.AbstractProjectionChoice |
---|
getCacheDir, getId, getProjection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String code
Constructor Detail |
---|
public SingleProjectionChoice(java.lang.String name, java.lang.String id, java.lang.String code, java.lang.String cacheDir)
name
- short name of the projection choice as shown in the GUIid
- unique identifier for the projection choice, e.g. "core:thisproj"code
- the unique identifier for the projection, e.g. "EPSG:1234"cacheDir
- a cache directory namepublic SingleProjectionChoice(java.lang.String name, java.lang.String id, java.lang.String code)
Method Detail |
---|
public javax.swing.JPanel getPreferencePanel(java.awt.event.ActionListener listener)
ProjectionChoice
listener
- listener for any change of preferences
public java.lang.String[] allCodes()
ProjectionChoice
public void setPreferences(java.util.Collection<java.lang.String> args)
ProjectionChoice
args
- preferences as a list of strings; may be null
to reset everything.public java.util.Collection<java.lang.String> getPreferences(javax.swing.JPanel p)
ProjectionChoice
public java.lang.String toString()
ProjectionChoice
toString
in interface ProjectionChoice
toString
in class AbstractProjectionChoice
public java.util.Collection<java.lang.String> getPreferencesFromCode(java.lang.String code)
ProjectionChoice
public java.lang.String getCurrentCode()
getCurrentCode
in class AbstractProjectionChoice
public java.lang.String getProjectionName()
getProjectionName
in class AbstractProjectionChoice
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |