public abstract class AbstractProjectionChoice extends Object implements ProjectionChoice
Modifier and Type | Field and Description |
---|---|
protected String |
cacheDir |
protected String |
id |
protected String |
name |
Constructor and Description |
---|
AbstractProjectionChoice(String name,
String id)
Constructs a new
AbstractProjectionChoice . |
AbstractProjectionChoice(String name,
String id,
String cacheDir)
Constructs a new
AbstractProjectionChoice . |
Modifier and Type | Method and Description |
---|---|
String |
getCacheDir() |
abstract String |
getCurrentCode() |
String |
getId()
Get a unique id for the projection choice.
|
Projection |
getProjection()
Get the projection that matches the internal state.
|
abstract String |
getProjectionName() |
String |
toString()
Short name of the projection choice as shown in the GUI (combo box).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allCodes, getPreferencePanel, getPreferences, getPreferencesFromCode, setPreferences
public AbstractProjectionChoice(String name, String id, String cacheDir)
AbstractProjectionChoice
.name
- short name of the projection choice as shown in the GUIid
- unique identifier for the projection choicecacheDir
- a cache directory namepublic AbstractProjectionChoice(String name, String id)
AbstractProjectionChoice
.
Only for core projection choices, where chacheDir is the same as
the second part of the id.name
- short name of the projection choice as shown in the GUIid
- unique identifier for the projection choicepublic String getId()
ProjectionChoice
getId
in interface ProjectionChoice
public String getCacheDir()
public String toString()
ProjectionChoice
toString
in interface ProjectionChoice
toString
in class Object
public abstract String getCurrentCode()
public abstract String getProjectionName()
public Projection getProjection()
ProjectionChoice
getProjection
in interface ProjectionChoice