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, wait
allCodes, getPreferencePanel, getPreferences, getPreferencesFromCode, setPreferences
public 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()
ProjectionChoice
getId
in interface ProjectionChoice
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