Interface ElevationSelectorIF
-
- All Superinterfaces:
com.google.gwt.user.client.ui.IsWidget
- All Known Implementing Classes:
ElevationSelector
public interface ElevationSelectorIF extends com.google.gwt.user.client.ui.IsWidget
Interface defining a widget for selecting elevation- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNElevations()
String
getSelectedElevation()
Gets the currently selected elevation as aString
String
getSelectedElevationRange()
Gets the currently selected elevation range if applicableString
getVerticalUnits()
boolean
isContinuous()
void
populateElevations(List<String> availableElevations)
Populates the available elevationsvoid
setContinuous(boolean continuous)
Sets this elevation selector to be continuousvoid
setEnabled(boolean enabled)
Enables/disables the elevation selectorvoid
setId(String id)
Sets the layer ID which this widget is referring tovoid
setSelectedElevation(String currentElevation)
Sets the current elevation to the desired valuevoid
setUnitsAndDirection(String units, boolean positive, boolean pressure)
Sets the units and direction of the vertical axis
-
-
-
Method Detail
-
setId
void setId(String id)
Sets the layer ID which this widget is referring to
-
populateElevations
void populateElevations(List<String> availableElevations)
Populates the available elevations
-
setUnitsAndDirection
void setUnitsAndDirection(String units, boolean positive, boolean pressure)
Sets the units and direction of the vertical axis- Parameters:
units
- A string representing the unitspositive
-true
if increasing elevation value means increasing height.false
if increasing elevation value means increasing depthpressure
-true
if this axis represents pressure
-
getSelectedElevation
String getSelectedElevation()
Gets the currently selected elevation as aString
-
getSelectedElevationRange
String getSelectedElevationRange()
Gets the currently selected elevation range if applicable
-
setSelectedElevation
void setSelectedElevation(String currentElevation)
Sets the current elevation to the desired value
-
setEnabled
void setEnabled(boolean enabled)
Enables/disables the elevation selector
-
getNElevations
int getNElevations()
- Returns:
- The number of available elevations
-
getVerticalUnits
String getVerticalUnits()
- Returns:
- The units of the vertical axis
-
setContinuous
void setContinuous(boolean continuous)
Sets this elevation selector to be continuous
-
isContinuous
boolean isContinuous()
- Returns:
true
if this currently represents a continuous vertical axis
-
-