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, toString
public CustomProjectionChoice()
CustomProjectionChoice
.public void setPreferences(Collection<String> args)
ProjectionChoice
setPreferences
in interface ProjectionChoice
args
- preferences as a list of strings; may be null
to reset everything.public Projection getProjection()
ProjectionChoice
getProjection
in interface ProjectionChoice
getProjection
in class AbstractProjectionChoice
public String getCurrentCode()
getCurrentCode
in class AbstractProjectionChoice
public String getProjectionName()
getProjectionName
in class AbstractProjectionChoice
public JPanel getPreferencePanel(ActionListener listener)
ProjectionChoice
getPreferencePanel
in interface ProjectionChoice
listener
- listener for any change of preferencespublic Collection<String> getPreferences(JPanel panel)
ProjectionChoice
getPreferences
in interface ProjectionChoice
public String[] allCodes()
ProjectionChoice
allCodes
in interface ProjectionChoice
public Collection<String> getPreferencesFromCode(String code)
ProjectionChoice
getPreferencesFromCode
in interface ProjectionChoice
public boolean showProjectionCode()
showProjectionCode
in interface SubPrefsOptions
public boolean showProjectionName()
showProjectionName
in interface SubPrefsOptions