public class CustomProjectionChoice extends AbstractProjectionChoice implements SubPrefsOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomProjectionChoice.ParameterInfoDialog |
private static class |
CustomProjectionChoice.PreferencePanel |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
pref |
cacheDir, id, name| Constructor and Description |
|---|
CustomProjectionChoice()
Constructs a new
CustomProjectionChoice. |
| Modifier and Type | Method and Description |
|---|---|
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 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.
|
java.lang.String |
getProjectionName() |
void |
setPreferences(java.util.Collection<java.lang.String> args)
Set the internal state to match the preferences.
|
boolean |
showProjectionCode() |
boolean |
showProjectionName() |
getCacheDir, getId, toStringprivate java.lang.String pref
public CustomProjectionChoice()
CustomProjectionChoice.public void setPreferences(java.util.Collection<java.lang.String> args)
ProjectionChoicesetPreferences in interface ProjectionChoiceargs - preferences as a list of strings; may be null
to reset everything.public Projection getProjection()
ProjectionChoicegetProjection in interface ProjectionChoicegetProjection in class AbstractProjectionChoicepublic java.lang.String getCurrentCode()
getCurrentCode in class AbstractProjectionChoicepublic java.lang.String getProjectionName()
getProjectionName in class AbstractProjectionChoicepublic javax.swing.JPanel getPreferencePanel(java.awt.event.ActionListener listener)
ProjectionChoicegetPreferencePanel in interface ProjectionChoicelistener - listener for any change of preferencespublic java.util.Collection<java.lang.String> getPreferences(javax.swing.JPanel panel)
ProjectionChoicegetPreferences in interface ProjectionChoicepublic java.lang.String[] allCodes()
ProjectionChoiceallCodes in interface ProjectionChoicepublic java.util.Collection<java.lang.String> getPreferencesFromCode(java.lang.String code)
ProjectionChoicegetPreferencesFromCode in interface ProjectionChoicecode - projection codepublic boolean showProjectionCode()
showProjectionCode in interface SubPrefsOptionspublic boolean showProjectionName()
showProjectionName in interface SubPrefsOptions