JavaScript must be enabled in order for you to use JSXGraph and JSXGraph reference. However, it seems JavaScript is either disabled or not supported by your browser.

Class Index | File Index

Elements

Classes


Class Hatch

JXG.GeometryElement
   ↳ JXG.Ticks
         ↳ Hatch

Hashes can be used to mark congruent lines.

Defined in: ticks.js.
Extends JXG.Ticks.

Class Summary
Constructor Attributes Constructor Name and Description
 
Hatch(line, numberofhashes)
Fields borrowed from class JXG.Ticks:
board, equidistant, fixedTicks, labelCounter, labelData, labels, line, minTicksDistance, ticks, ticksDelta, ticksFunction
Fields borrowed from class JXG.GeometryElement:
_org_type, _pos, ancestors, baseElement, childElements, dash, descendants, draft, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, inherits, isDraggable, isReal, lastDragTime, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, parents, quadraticform, rendNode, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, trace, traceAttributes, traces, transformations, transitionDuration, type, visible, visProp, visPropCalc, withLabel
Fields borrowed from class JXG.Ticks:
board, equidistant, fixedTicks, labelCounter, labelData, labels, line, minTicksDistance, ticks, ticksDelta, ticksFunction
Fields borrowed from class JXG.GeometryElement:
_org_type, _pos, ancestors, baseElement, childElements, dash, descendants, draft, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, inherits, isDraggable, isReal, lastDragTime, methodMap, mouseover, name, needsRegularUpdate, needsUpdate, notExistingParents, numTraces, parents, quadraticform, rendNode, scalable, shadow, snapToGrid, stdform, strokeColor, strokeOpacity, strokeWidth, subs, symbolic, trace, traceAttributes, traces, transformations, transitionDuration, type, visible, visProp, visPropCalc, withLabel
Methods borrowed from class JXG.Ticks:
_isInsideCanvas, adjustTickDistance, calculateTicksCoordinates, formatLabelText, generateEquidistantTicks, generateFixedTicks, generateLabelData, generateLabelText, getDistanceFromZero, getLowerAndUpperBounds, getXandYdeltas, getZeroCoordinates, hasPoint, makeTicksFunction, processTickPosition, setPositionDirectly, setTicksSizeVariables, tickEndings, update, updateRenderer, updateRendererLabels
Methods borrowed from class JXG.GeometryElement:
_set, addChild, addDescendants, addParents, addRotation, addTransform, animate, bounds, clearTrace, cloneToBackground, countChildren, createGradient, createLabel, draggable, fullUpdate, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, handleSnapToGrid, hideElement, labelColor, noHighlight, normalize, prepareUpdate, remove, removeChild, removeDescendants, resolveShortcuts, setArrow, setAttribute, setDash, setDisplayRendNode, setLabel, setLabelText, setName, setParents, setPosition, setProperty, showElement, snapToPoints, updateVisibility
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
Hatch(line, numberofhashes)
Parameters:
{JXG.Line} line
The line the hatch marks are going to be attached to.


{Number} numberofhashes
Number of dashes.


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('hatch', [l1, 3]);

				
				
// Alter the position of the hatch
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-10, 10, 10, -5], keepaspectratio:true});

var p = board.create('point', [-5, 0]);
var q = board.create('point', [5, 0]);
var li = board.create('line', [p, q]);
var h = board.create('hatch', [li, 2], {anchor: 0.2});


				
                

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Mar 26 2018 11:22:47 GMT-0000 (UTC)