public abstract class AbstractProjectionChoice extends java.lang.Object implements ProjectionChoice
Handles common parameters name and id.
| Modifier and Type | Field and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getCurrentCode()
Returns current projection code.
|
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()
Returns projection name.
|
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, waitallCodes, getPreferencePanel, getPreferences, getPreferencesFromCode, setPreferencespublic AbstractProjectionChoice(java.lang.String name, java.lang.String id)
AbstractProjectionChoice.name - short name of the projection choice as shown in the GUIid - unique identifier for the projection choicepublic java.lang.String getId()
ProjectionChoicegetId in interface ProjectionChoicepublic java.lang.String toString()
ProjectionChoicetoString in interface ProjectionChoicetoString in class java.lang.Objectpublic abstract java.lang.String getCurrentCode()
public abstract java.lang.String getProjectionName()
public Projection getProjection()
ProjectionChoicegetProjection in interface ProjectionChoice