public abstract class AbstractProjectionChoice extends java.lang.Object implements ProjectionChoice
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cacheDir |
protected java.lang.String |
id |
protected java.lang.String |
name |
Constructor and Description |
---|
AbstractProjectionChoice(java.lang.String name,
java.lang.String id)
Constructs a new
AbstractProjectionChoice . |
AbstractProjectionChoice(java.lang.String name,
java.lang.String id,
java.lang.String cacheDir)
Constructs a new
AbstractProjectionChoice . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCacheDir() |
abstract java.lang.String |
getCurrentCode() |
java.lang.String |
getId()
Get a unique id for the projection choice.
|
Projection |
getProjection()
Get the projection that matches the internal state.
|
abstract java.lang.String |
getProjectionName() |
java.lang.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
protected java.lang.String name
protected java.lang.String id
protected java.lang.String cacheDir
public AbstractProjectionChoice(java.lang.String name, java.lang.String id, java.lang.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(java.lang.String name, java.lang.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 java.lang.String getId()
ProjectionChoice
getId
in interface ProjectionChoice
public java.lang.String getCacheDir()
public java.lang.String toString()
ProjectionChoice
toString
in interface ProjectionChoice
toString
in class java.lang.Object
public abstract java.lang.String getCurrentCode()
public abstract java.lang.String getProjectionName()
public Projection getProjection()
ProjectionChoice
getProjection
in interface ProjectionChoice