public interface ProjectionChoice
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
allCodes()
Return all projection codes supported by this projection choice.
|
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 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.
|
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).
|
java.lang.String getId()
void setPreferences(java.util.Collection<java.lang.String> args)
args - preferences as a list of strings; may be null
to reset everything.Projection getProjection()
javax.swing.JPanel getPreferencePanel(java.awt.event.ActionListener listener)
listener - listener for any change of preferencesjava.util.Collection<java.lang.String> getPreferences(javax.swing.JPanel panel)
java.lang.String[] allCodes()
java.util.Collection<java.lang.String> getPreferencesFromCode(java.lang.String code)
code - projection codejava.lang.String toString()
toString in class java.lang.Object