Class HorizontalSlider
represents horizontal slider
Defined in: raphaeltools.src.js.
Constructor Attributes | Constructor Name and Description |
---|---|
HorizontalSlider(raphael, params)
Horizontal slider
|
Field Attributes | Field Name and Description |
---|---|
circle
|
|
gap between end of the slider's line and the slider's circle when the circle is at extreme position
|
|
initial value
|
|
len of slider [pixels]
|
|
length span of getable values
|
|
line
|
|
raphael instance
|
|
radius of slider's circle
|
|
value when the slider is at the very beginning
|
|
value when the slider is at the very end
|
|
x coordinate of left/upper end
|
|
z coordinate of left/upper end
|
Method Attributes | Method Name and Description |
---|---|
constructorHorizontalSlider(raphael, params)
Constructor, see HorizontalSlider for parameters description
|
|
<static> |
HorizontalSlider.create(raphael, params)
Creates new HorizontalSlider object, for parameters meaning see HorizontalSlider
|
getVal()
Get current value from receiver
|
|
onmove()
What to do when moving.
|
|
setVal(new)
Set value to receiver
|
Class Detail
HorizontalSlider(raphael, params)
Horizontal slider
- Parameters:
- {Raphael} raphael
- raphael instance
- {Object} params
- parameters, see below
- {float} params.x Optional, Default: 100.
- x coordinate of left/upper end
- {float} params.z Optional, Default: 100.
- z coordinate of left/upper end
- {float} params.length Optional, Default: 100.
- length of slider [pixels]
- {float} params.rcirc Optional, Default: 5.
- radius of slider's circle
- {float} params.val1 Optional, Default: 0.
- value when the slider is at the very beginning
- {float} params.val2 Optional, Default: 1.
- value when the slider is at the very end
- {float} params.initVal Optional, Default: (val1+val2)/2
- initial value
- {float} params.gap Optional, Default: 3.
- gap between end of the slider's line and the slider's circle when the circle is at extreme position
Field Detail
{Circle}
circ
circle
{float}
gap
gap between end of the slider's line and the slider's circle when the circle is at extreme position
{float}
initVal
initial value
{float}
len
len of slider [pixels]
{float}
lenVals
length span of getable values
{Raphael.el}
line
line
{Raphael}
raphael
raphael instance
{float}
rcirc
radius of slider's circle
{float}
val1
value when the slider is at the very beginning
{float}
val2
value when the slider is at the very end
{float}
x
x coordinate of left/upper end
{float}
z
z coordinate of left/upper end
Method Detail
constructorHorizontalSlider(raphael, params)
Constructor, see HorizontalSlider for parameters description
- Parameters:
- raphael
- params
<static>
{HorizontalSlider}
HorizontalSlider.create(raphael, params)
Creates new HorizontalSlider object, for parameters meaning see HorizontalSlider
- Parameters:
- raphael
- params
- Returns:
- {HorizontalSlider} new HorizontalSlider object
{float}
getVal()
Get current value from receiver
- Returns:
- {float} current value
onmove()
What to do when moving. Initially empty function, overwrite it by desired actions
setVal(new)
Set value to receiver
- Parameters:
- {float} new
- value