Class Index | File Index

Classes


Class Axis


Extends JXG.Line.
This element is used to provide a constructor for an axis. It's strictly spoken just a wrapper for element Line with JXG.Line#straightFirst and JXG.Line#straightLast properties set to true. Additionally JXG.Line#lastArrow is set to true and default Ticks will be created.
Defined in: Line.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Axis(point1,point2, a,b,c)
Fields borrowed from class JXG.Line:
defaultTicks, firstArrow, lastArrow, point1, point2, straightFirst, straightLast, ticks
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.Line:
addTicks, addTransform, cloneToBackground, getRise, getSlope, hasPoint, removeAllTicks, removeTicks, setPosition, X, Y, Z
Methods borrowed from class JXG.GeometryElement:
addChild, addLabelToElement, animate, clearTrace, hideElement, highlight, labelColor, noHighlight, remove, setArrow, setProperty, showElement, update
Class Detail
Axis(point1,point2, a,b,c)
// Create an axis providing two coord pairs.
  var l1 = board.create('axis', [[0.0, 1.0], [1.0, 1.3]]);

				
				
				
				
					
						
Parameters:
{JXG.Point|array_JXG.Point|array} point1,point2
Parent elements can be two elements either of type JXG.Point or array of numbers describing the coordinates of a point. In the latter case the point will be constructed automatically as a fixed invisible point.
{number_number_number} a,b,c
A line can also be created providing three numbers. The line is then described by the set of solutions of the equation a*x+b*y+c*z = 0.
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 Tue Feb 26 2013 18:47:39 GMT+0100 (CET)