|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 | |
---|---|
private java.lang.String |
id
|
private java.lang.String |
name
|
private Projection |
projection
|
Constructor Summary | |
---|---|
SingleProjectionChoice(java.lang.String id,
Projection projection)
|
|
SingleProjectionChoice(java.lang.String id,
java.lang.String name,
Projection projection)
|
Method Summary | |
---|---|
java.lang.String[] |
allCodes()
Return all projection codes supported by this projection class. |
java.lang.String |
getAlias()
|
java.lang.String |
getId()
Get a unique id for the projection choice. |
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. |
Projection |
getProjection()
Get the projection that matches the internal state. |
void |
setPreferences(java.util.Collection<java.lang.String> args)
Set the internal state to match the preferences. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String id
private java.lang.String name
private Projection projection
Constructor Detail |
---|
public SingleProjectionChoice(java.lang.String id, java.lang.String name, Projection projection)
public SingleProjectionChoice(java.lang.String id, Projection projection)
Method Detail |
---|
public javax.swing.JPanel getPreferencePanel(java.awt.event.ActionListener listener)
ProjectionChoice
getPreferencePanel
in interface ProjectionChoice
listener
- listener for any change of preferences
public java.lang.String getId()
ProjectionChoice
getId
in interface ProjectionChoice
public java.lang.String[] allCodes()
ProjectionChoice
allCodes
in interface ProjectionChoice
public void setPreferences(java.util.Collection<java.lang.String> args)
ProjectionChoice
setPreferences
in interface ProjectionChoice
public java.util.Collection<java.lang.String> getPreferences(javax.swing.JPanel p)
ProjectionChoice
getPreferences
in interface ProjectionChoice
public Projection getProjection()
ProjectionChoice
getProjection
in interface ProjectionChoice
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection<java.lang.String> getPreferencesFromCode(java.lang.String code)
ProjectionChoice
getPreferencesFromCode
in interface ProjectionChoice
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 |