Class Index | File Index

Classes


Class links.Network.Slider

Slider An html slider control with start/stop/prev/next buttons
Defined in: network.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Retrieve the current framerate
 
Retrieve the current value of loop
 
retrieve the current value in the correct type, Number or Date
 
next()
Select the next index
 
Execute the onchange callback function
 
onmousemove(event)
 
onmouseup(event)
 
play()
Start playing
 
Select the next index
 
prev()
Select the previous index
 
redraw the slider on the correct place
 
setAcceleration(acceleration)
Set the time acceleration for playing the history.
 
setDuration(duration)
Set the duration for playing
 
setFramerate(framerate)
Set the interval for playing the list
 
setLoop(doLoop)
Set looping on or off
 
Set a callback function which will be triggered when the value of the slider bar has changed.
 
setRange(start, end)
Set the range for the slider
 
stop()
Stop playing
 
Toggle start or stop playing
Class Detail
links.Network.Slider(container)
Parameters:
{Element} container
The element where the slider will be created
Method Detail
{number} getFramerate()
Retrieve the current framerate
Returns:
{number} framerate in frames per second

{boolean} getLoop()
Retrieve the current value of loop
Returns:
{boolean} doLoop If true, the slider will jump to the start when the end is passed, and will jump to the end when the start is passed.

{Date | Number} getValue()
retrieve the current value in the correct type, Number or Date
Returns:
{Date | Number} value

next()
Select the next index

onChange()
Execute the onchange callback function

onmousemove(event)
Parameters:
event

onmouseup(event)
Parameters:
event

play()
Start playing

playNext()
Select the next index

prev()
Select the previous index

redraw()
redraw the slider on the correct place

setAcceleration(acceleration)
Set the time acceleration for playing the history. Only applicable when the values are of type Date.
Parameters:
{number} acceleration
Acceleration, for example 10 means play ten times as fast as real time. A value of 1 will play the history in real time.

setDuration(duration)
Set the duration for playing
Parameters:
{number} duration
Duration in seconds

setFramerate(framerate)
Set the interval for playing the list
Parameters:
{number} framerate
Framerate in frames per second

setLoop(doLoop)
Set looping on or off
Parameters:
{boolean} doLoop
If true, the slider will jump to the start when the end is passed, and will jump to the end when the start is passed.

setOnChangeCallback(callback)
Set a callback function which will be triggered when the value of the slider bar has changed.
Parameters:
callback

setRange(start, end)
Set the range for the slider
Parameters:
{Date | Number} start
Start of the range
{Date | Number} end
End of the range

stop()
Stop playing

togglePlay()
Toggle start or stop playing

Documentation generated by JsDoc Toolkit 2.3.2 on Fri Apr 26 2013 14:32:41 GMT+0200 (CEST)