Class Index | File Index

Classes


Class JXG.createSlider


Extends JXG.GeometryElement.
Creates a new basic slider object. Do not use this constructor to create a slider. Use JXG.Board#create with type Line, Arrow, or Axis instead. Attributes: withTicks;
Defined in: Slider.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JXG.createSlider(board, p1, p2, id, name)
The Slider class is.
Fields borrowed from class JXG.GeometryElement:
ancestors, board, childElements, dash, descendants, draft, fillColor, fillOpacity, fixed, hasLabel, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, isReal, layer, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, quadraticform, shadow, stdform, strokeColor, strokeOpacity, strokeWidth, symbolic, trace, traces, transformations, visible, visProp
Methods borrowed from class JXG.GeometryElement:
addChild, addLabelToElement, animate, clearTrace, hideElement, highlight, labelColor, noHighlight, remove, setArrow, setProperty, showElement, update
Class Detail
JXG.createSlider(board, p1, p2, id, name)
The Slider class is.... Slider (Schieberegler) input: 3 arrays: [x0,y0],[x1,y1],[min,start,max] The slider is line from [x0,y0] to [x1,y1]. The position [x0,y0] corresponds to the value "min", [x1,y1] corresponds to the value max. Initally, the slider is at position [x0,y0] + ([x1,y1]-[x0,y0])*start/(max-min) The return value is an invisible point, whos X() or Y() value returns the position between max and min, Further, there is a method Value() returning the same value.
Parameters:
{String|JXG.Board} board
The board the new line is drawn on.
{Point} p1
Startpoint of the line.
{Point} p2
Endpoint of the line.
{String} id
Unique identifier for this object. If null or an empty string is given, an unique id will be generated by Board
{String} name
Not necessarily unique name. If null or an empty string is given, an unique name will be generated.
See:
JXG.Board#generateName

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Feb 26 2013 18:47:42 GMT+0100 (CET)