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.IsWidgetInterface defining a widget for selecting elevation- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetNElevations()StringgetSelectedElevation()Gets the currently selected elevation as aStringStringgetSelectedElevationRange()Gets the currently selected elevation range if applicableStringgetVerticalUnits()booleanisContinuous()voidpopulateElevations(List<String> availableElevations)Populates the available elevationsvoidsetContinuous(boolean continuous)Sets this elevation selector to be continuousvoidsetEnabled(boolean enabled)Enables/disables the elevation selectorvoidsetId(String id)Sets the layer ID which this widget is referring tovoidsetSelectedElevation(String currentElevation)Sets the current elevation to the desired valuevoidsetUnitsAndDirection(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-trueif increasing elevation value means increasing height.falseif increasing elevation value means increasing depthpressure-trueif 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:
trueif this currently represents a continuous vertical axis
-
-