Class Index | File Index

Classes


Class Slider


Extends Glider.
A slider can be used to choose values from a given range of numbers.
Defined in: Slider.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Slider(start,end,data)
Field Summary
Field Attributes Field Name and Description
 
End value of the slider range.
 
Start value of the slider range.
 
The baseline the glider is bound to.
 
A line on top of the baseline, indicating the slider's progress.
 
The text element to the right of the slider, indicating its current value.
 
Start point of the base line.
 
End point of the base line.
 
The precision of the slider value displayed in the optional text.
 
The slider only returns multiples of this value, e.g.
 
Ticks give a rough indication about the slider's current value.
Fields borrowed from class Glider:
slideObject
Fields borrowed from class JXG.Point:
attractorDistance, attractors, showInfobox, snapSizeX, snapSizeY, snapToGrid, snapToPoints, snatchDistance, style
Fields borrowed from class JXG.GeometryElement:
addEvent, ancestors, board, childElements, dash, descendants, draft, dump, elementClass, elType, eventHandlers, fillColor, fillOpacity, fixed, frozen, getAttribute, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isDraggable, isReal, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, removeEvent, scalable, shadow, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, trace, traceAttributes, traces, transformations, type, visible, visProp, withLabel
Methods borrowed from class Glider:
startAnimation, stopAnimation
Methods borrowed from class JXG.Point:
addConstraint, addTransform, Dist, face, free, handleAttractors, handleSnapToGrid, handleSnapToPoints, makeGlider, moveAlong, moveTo, normalizeFace, remove, setGliderPosition, setPosition, setPositionByTransform, setPositionDirectly, size, update, updateTransform, visit, X, Y, Z
Methods borrowed from class JXG.GeometryElement:
addChild, addRotation, animate, bounds, clearTrace, cloneToBackground, createLabel, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, hasPoint, hideElement, labelColor, noHighlight, off, on, resolveShortcuts, setArrow, setAttribute, setLabelText, setProperty, showElement, triggerEventHandlers
Events borrowed from class JXG.GeometryElement:
attribute, attribute:<attribute><attribute>, down, drag, mousedown, mousedrag, mousemove, mouseout, mouseover, mouseup, move, out, over, touchdown, touchdrag, touchup, up
Class Detail
Slider(start,end,data)
// Create a free point using affine euclidean coordinates
var s = board.create('slider', [[1, 2], [3, 2], [1, 5, 10]]);

				
				
// Create a constrained point using anonymous function
var s = board.create('slider', [[1, 3], [3, 1], [1, 10, 50]], {snapWidth: 1});

				
				
				
				
					
						
Parameters:
{Array_Array_Array} start,end,data
The first two arrays give the start and the end where the slider is drawn on the board. The third array gives the start and the end of the range the slider operates as the first resp. the third component of the array. The second component of the third array gives its start value.
Throws:
{Exception}
If the element cannot be constructed with the given parent objects an exception is thrown.
Field Detail
{Number} _smax
End value of the slider range.

{Number} _smin
Start value of the slider range.

{JXG.Line} baseline
The baseline the glider is bound to.

{JXG.Line} highline
A line on top of the baseline, indicating the slider's progress.

{JXG.Text} label
The text element to the right of the slider, indicating its current value.

{JXG.Point} point1
Start point of the base line.

{JXG.Point} point2
End point of the base line.

{Number} precision
The precision of the slider value displayed in the optional text.
Defined in: Options.js.

{Number} snapWidth
The slider only returns multiples of this value, e.g. for discrete values set this property to 1. For continuous results set this to -1.
Defined in: Options.js.

{JXG.Ticks} ticks
Ticks give a rough indication about the slider's current value.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 30 2013 23:22:19 GMT+0200 (CEST)