Package overit.geocall.ui
Class Ranger
java.lang.Object
overit.geocall.ui.Ranger
- All Implemented Interfaces:
Serializable,SingleUseComponent
The class, that implements the
SingleUseComponent interface, implements the user interface element
that appears in pop-up and allows the user to manage the ranges of the data of the diagram objects like
for example the JFCSerie- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Containerprotected Stringprotected intprotected Stringprotected Stringprotected static AtomicLongprotected intprotected ListAttributeprotected doubleprotected doubleprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEvery component can add a script to the StringBuilder, script executed when the component is created The method add the script that manage the creation and showing of the Rangerprotected voidprotected StringcreateOnClickString(int tdPosition) protected org.apache.ecs.Elementorg.apache.ecs.ElementReturns the html code of the RangerReturns the orientation (vertical or horizontal) of the Rangerprotected org.apache.ecs.ElementvoidSets the orientation (vertical or horizontal) of the RangervoidsetRange(int from, int to) Sets the range of valuesvoidsetValues(double min, double max, double step) Sets the values of the Ranger starting from a minimum value, a maximum value and a value that defines the stepvoidsetValues(ListAttribute labels) Sets a list of values for the Ranger
-
Field Details
-
_sequence
-
_id
-
_container
-
_values
-
_valuesMin
protected double _valuesMin -
_valuesMax
protected double _valuesMax -
_valuesStep
protected double _valuesStep -
_event
-
_orientation
-
_from
protected int _from -
_to
protected int _to
-
-
Constructor Details
-
Ranger
Creates a new instance of Ranger- Parameters:
container- TheContainerthat is creating the Rangerevent- The event called when the user click on the Ranger
-
-
Method Details
-
setValues
Sets a list of values for the Ranger- Parameters:
labels- AListAttributeof strings (separated by the character | ) each of which represents a value
-
setValues
public void setValues(double min, double max, double step) Sets the values of the Ranger starting from a minimum value, a maximum value and a value that defines the step- Parameters:
min- The mimimum valuemax- The maximum valuestep- The step between one value and another
-
setRange
public void setRange(int from, int to) Sets the range of values- Parameters:
from- The from valueto- The to value
-
setOrientation
Sets the orientation (vertical or horizontal) of the Ranger- Parameters:
s- "h" for horizontal, "v" for vertical
-
getOrientation
Returns the orientation (vertical or horizontal) of the Ranger- Returns:
- "h" for horizontal, "v" for vertical
-
getHtml
Returns the html code of the Ranger- Specified by:
getHtmlin interfaceSingleUseComponent- Parameters:
es- TheEntitySetto which the element belongsw- TheWindowcurrently displayed- Returns:
- The html code of the Ranger
-
checkRange
protected void checkRange() -
getHorizontalTooltip
protected org.apache.ecs.Element getHorizontalTooltip() -
getVerticalTooltip
protected org.apache.ecs.Element getVerticalTooltip() -
buildSetupScript
Every component can add a script to the StringBuilder, script executed when the component is created The method add the script that manage the creation and showing of the Ranger- Specified by:
buildSetupScriptin interfaceSingleUseComponent- Parameters:
sb- The StringBuilder on which we want to add the script
-
createOnClickString
-