public class CodeProjectionChoice extends AbstractProjectionChoice implements SubPrefsOptions
| Modifier and Type | Class and Description |
|---|---|
private class |
CodeProjectionChoice.CodeSelectionPanel |
| Modifier and Type | Field and Description |
|---|---|
(package private) String |
code |
cacheDir, id, name| Constructor and Description |
|---|
CodeProjectionChoice()
Constructs a new
CodeProjectionChoice. |
| 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 CodeProjectionChoice()
CodeProjectionChoice.public Projection getProjection()
ProjectionChoicegetProjection in interface ProjectionChoicegetProjection in class AbstractProjectionChoicepublic String getCurrentCode()
getCurrentCode in class AbstractProjectionChoicepublic String getProjectionName()
getProjectionName in class AbstractProjectionChoicepublic void setPreferences(Collection<String> args)
ProjectionChoicesetPreferences in interface ProjectionChoiceargs - preferences as a list of strings; may be null
to reset everything.public 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