public class LambertCC9ZonesProjectionChoice extends ListProjectionChoice
Modifier and Type | Class and Description |
---|---|
private static class |
LambertCC9ZonesProjectionChoice.LambertCC9CBPanel |
ListProjectionChoice.CBPanel
Modifier and Type | Field and Description |
---|---|
private static String[] |
LAMBERT_9_ZONES |
defaultIndex, entries, index, label
id, name
Constructor and Description |
---|
LambertCC9ZonesProjectionChoice()
Constructs a new
LambertCC9ZonesProjectionChoice . |
Modifier and Type | Method and Description |
---|---|
String[] |
allCodes()
Return all projection codes supported by this projection choice.
|
String |
getCurrentCode()
Returns current projection code.
|
JPanel |
getPreferencePanel(ActionListener listener)
Generate and provide the GUI.
|
Collection<String> |
getPreferencesFromCode(String code)
Get Preferences from projection code.
|
String |
getProjectionName()
Returns projection name.
|
protected String |
indexToZone(int idx)
Convert 0-based index to preference value.
|
protected int |
zoneToIndex(String zone)
Convert preference value to 0-based index.
|
getPreferences, setPreferences
getId, getProjection, toString
private static final String[] LAMBERT_9_ZONES
public LambertCC9ZonesProjectionChoice()
LambertCC9ZonesProjectionChoice
.public JPanel getPreferencePanel(ActionListener listener)
ProjectionChoice
getPreferencePanel
in interface ProjectionChoice
getPreferencePanel
in class ListProjectionChoice
listener
- listener for any change of preferencespublic String getCurrentCode()
AbstractProjectionChoice
getCurrentCode
in class AbstractProjectionChoice
public String getProjectionName()
AbstractProjectionChoice
getProjectionName
in class AbstractProjectionChoice
public String[] allCodes()
ProjectionChoice
public Collection<String> getPreferencesFromCode(String code)
ProjectionChoice
code
- projection codeprotected String indexToZone(int idx)
ListProjectionChoice
indexToZone
in class ListProjectionChoice
idx
- 0-based indexListProjectionChoice.zoneToIndex(java.lang.String)
protected int zoneToIndex(String zone)
ListProjectionChoice
zoneToIndex
in class ListProjectionChoice
zone
- preference valueListProjectionChoice.indexToZone(int)