Element Ticks
JXG.GeometryElement
↳ JXG.Ticks
↳ Ticks
Ticks are used as distance markers on a line.
Defined in: Ticks.js.
Extends
JXG.Ticks.
Constructor Attributes | Constructor Name and Description |
---|---|
Element Detail
Ticks
-
This element has no direct constructor. To create an instance of this element you have to call JXG.Board#create
with type "ticks".
- Possible parent array combinations are:
-
- 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.
- Examples:
// 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});
Attributes borrowed from other Elements
- Attributes borrowed from class JXG.Ticks:
- drawLabels, drawZero, insertTicks, majorHeight, minorHeight, minorTicks, ticksDistance
- Attributes borrowed from class JXG.GeometryElement:
- dash, draft, fillColor, fillOpacity, fixed, frozen, highlight, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, needsRegularUpdate, shadow, strokeColor, strokeOpacity, strokeWidth, trace, traceAttributes, visible, withLabel
Fields borrowed from other Elements
- Fields borrowed from class JXG.Ticks:
- board, equidistant, fixedTicks, labels, line, maxTicksDistance, minTicksDistance, ticksFunction
- Fields borrowed from class JXG.GeometryElement:
- addEvent, ancestors, baseElement, childElements, descendants, dump, elementClass, elType, eventHandlers, getAttribute, hasLabel, highlighted, id, isDraggable, isReal, methodMap, mouseover, name, needsUpdate, notExistingParents, numTraces, quadraticform, removeEvent, stdform, subs, symbolic, traces, transformations, type, visProp
Methods borrowed from other Elements
- Methods borrowed from class JXG.Ticks:
- _makeLabel, calculateTicksCoordinates, removeTickLabels, update, updateRenderer
- Methods borrowed from class JXG.GeometryElement:
- _set, addChild, addDescendants, animate, bounds, clearTrace, cloneToBackground, countChildren, createGradient, createLabel, draggable, generatePolynomial, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, hasPoint, hideElement, labelColor, noHighlight, normalize, off, on, prepareUpdate, remove, resolveShortcuts, setArrow, setAttribute, setDash, setLabelText, setProperty, setStraight, showElement, triggerEventHandlers