public class PuwgProjectionChoice extends ListProjectionChoice
ListProjectionChoice.CBPanel| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String[] |
CODES |
private static java.lang.String[] |
NAMES |
defaultIndex, entries, index, labelcacheDir, id, name| Constructor and Description |
|---|
PuwgProjectionChoice()
Constructs a new
PuwgProjectionChoice. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
allCodes()
Return all projection codes supported by this projection choice.
|
java.lang.String |
getCurrentCode() |
java.util.Collection<java.lang.String> |
getPreferencesFromCode(java.lang.String code)
Get Preferences from projection code.
|
java.lang.String |
getProjectionName() |
protected java.lang.String |
indexToZone(int index)
Convert 0-based index to preference value.
|
protected int |
zoneToIndex(java.lang.String zone)
Convert preference value to 0-based index.
|
getPreferencePanel, getPreferences, setPreferencesgetCacheDir, getId, getProjection, toStringprivate static final java.lang.String[] CODES
private static final java.lang.String[] NAMES
public PuwgProjectionChoice()
PuwgProjectionChoice.public java.lang.String getCurrentCode()
getCurrentCode in class AbstractProjectionChoicepublic java.lang.String getProjectionName()
getProjectionName in class AbstractProjectionChoicepublic java.lang.String[] allCodes()
ProjectionChoicepublic java.util.Collection<java.lang.String> getPreferencesFromCode(java.lang.String code)
ProjectionChoicecode - projection codeprotected java.lang.String indexToZone(int index)
ListProjectionChoiceindexToZone in class ListProjectionChoiceprotected int zoneToIndex(java.lang.String zone)
ListProjectionChoicezoneToIndex in class ListProjectionChoice