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 String |
pref |
cacheDir, id, name| Constructor and Description |
|---|
CustomProjectionChoice()
Constructs a new
CustomProjectionChoice. |
| Modifier and Type | Method and Description |
|---|---|
String[] |
allCodes()
Return all projection codes supported by this projection choice.
|
String |
getCurrentCode() |
JPanel |
getPreferencePanel(ActionListener listener)
Generate and provide the GUI.
|
Collection<String> |
getPreferences(JPanel panel)
Extract preferences from the GUI.
|
Collection<String> |
getPreferencesFromCode(String code)
Get Preferences from projection code.
|
Projection |
getProjection()
Get the projection that matches the internal state.
|
String |
getProjectionName() |
void |
setPreferences(Collection<String> args)
Set the internal state to match the preferences.
|
boolean |
showProjectionCode() |
boolean |
showProjectionName() |
getCacheDir, getId, toStringpublic CustomProjectionChoice()
CustomProjectionChoice.public void setPreferences(Collection<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 String getCurrentCode()
getCurrentCode in class AbstractProjectionChoicepublic String getProjectionName()
getProjectionName in class AbstractProjectionChoicepublic JPanel getPreferencePanel(ActionListener listener)
ProjectionChoicegetPreferencePanel in interface ProjectionChoicelistener - listener for any change of preferencespublic Collection<String> getPreferences(JPanel panel)
ProjectionChoicegetPreferences in interface ProjectionChoicepublic String[] allCodes()
ProjectionChoiceallCodes in interface ProjectionChoicepublic Collection<String> getPreferencesFromCode(String code)
ProjectionChoicegetPreferencesFromCode in interface ProjectionChoicepublic boolean showProjectionCode()
showProjectionCode in interface SubPrefsOptionspublic boolean showProjectionName()
showProjectionName in interface SubPrefsOptions