Class Index | File Index

Classes


Class Ticks


Extends JXG.Ticks.
Ticks are used as distance markers on a line.
Defined in: Ticks.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Ticks(line,_distance)
Fields borrowed from class JXG.Ticks:
board, drawLabels, drawZero, equidistant, fixedTicks, insertTicks, labels, line, majorHeight, maxTicksDistance, minorHeight, minorTicks, minTicksDistance, scale, scaleSymbol, ticksDistance, ticksFunction
Fields borrowed from class JXG.GeometryElement:
addEvent, ancestors, 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, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, trace, traceAttributes, traces, transformations, type, visible, visProp, withLabel
Methods borrowed from class JXG.Ticks:
calculateTicksCoordinates, hasPoint, update, updateRenderer
Methods borrowed from class JXG.GeometryElement:
addChild, addRotation, addTransform, animate, bounds, clearTrace, cloneToBackground, createLabel, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, hideElement, labelColor, noHighlight, off, on, remove, 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
Ticks(line,_distance)
// Create an axis providing two coord pairs.
  var p1 = board.create('point', [0, 3]);
  var p2 = board.create('point', [1, 3]);
  var l1 = board.create('line', [p1, p2]);
  var t = board.create('ticks', [l1], {ticksDistance: 2});

				
				
				
				
					
						
Parameters:
{JXG.Line|Number} line,_distance
The parents consist of the line the ticks are going to be attached to and optional the distance between two major ticks. If no distance is given the attribute JXG.Ticks#ticksDistance is used.
Throws:
{Exception}
If the element cannot be constructed with the given parent objects an exception is thrown.

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