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 JXG.Point

JXG.GeometryElement,JXG.CoordsElement
      ↳ JXG.Point

Creates a new point object. Do not use this constructor to create a point. Use JXG.Board#create with type Point, Glider, or Intersection instead.

Defined in: point.js.
Extends JXG.CoordsElement, JXG.GeometryElement.

Class Summary
Constructor Attributes Constructor Name and Description
 
JXG.Point(board, coordinates, attributes)
A point is the basic geometric element.
Fields borrowed from class JXG.GeometryElement:
_org_type, _pos, ancestors, baseElement, board, childElements, dash, descendants, draft, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, 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, type, visible, visProp, withLabel
Fields borrowed from class JXG.CoordsElement:
coords, groups, needsUpdateFromParent, onPolygon, position, slideObjects
Fields borrowed from class JXG.GeometryElement:
_org_type, _pos, ancestors, baseElement, board, childElements, dash, descendants, draft, dump, elementClass, elType, fillColor, fillOpacity, fixed, frozen, hasLabel, highlight, highlighted, highlightFillColor, highlightFillOpacity, highlightStrokeColor, highlightStrokeOpacity, highlightStrokeWidth, id, 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, type, visible, visProp, withLabel
Fields borrowed from class JXG.CoordsElement:
coords, groups, needsUpdateFromParent, onPolygon, position, slideObjects
Method Summary
Method Attributes Method Name and Description
<deprecated>  
face(f)
Set the face of a point element.
<private>  
hasPoint(x, y)
Checks whether (x,y) is near the point.
 
makeIntersection(el1,, el2, i, j)
Convert the point to intersection point and update the construction.
<deprecated>  
<private>  
Set the style of a point.
<deprecated>  
size(s)
Set the size of a point element
 
update(fromParent)
Updates the position of the point.
<private>  
Calls the renderer to update the drawing.
 
Applies the transformations of the element to JXG.Point#baseElement.
Methods borrowed from class JXG.GeometryElement:
_set, addChild, addDescendants, addParents, addRotation, addTransform, animate, bounds, clearTrace, cloneToBackground, countChildren, createGradient, createLabel, draggable, generatePolynomial, getAttribute, getAttributes, getLabelAnchor, getName, getParents, getProperty, getTextAnchor, getType, handleSnapToGrid, hideElement, labelColor, noHighlight, normalize, prepareUpdate, remove, removeChild, removeDescendants, resolveShortcuts, setArrow, setAttribute, setDash, setLabel, setLabelText, setName, setParents, setPosition, setPositionDirectly, setProperty, showElement, snapToPoints
Methods borrowed from class JXG.CoordsElement:
_anim, addAnchor, addConstraint, Dist, free, handleAttractors, handleSnapToPoints, makeGlider, moveAlong, moveTo, popSlideObject, setGliderPosition, setPositionByTransform, updateConstraint, updateCoords, updateGlider, updateGliderFromParent, visit, X, XEval, Y, YEval, Z, ZEval
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
JXG.Point(board, coordinates, attributes)
A point is the basic geometric element. Based on points lines and circles can be constructed which can be intersected which in turn are points again which can be used to construct new lines, circles, polygons, etc. This class holds methods for all kind of points like free points, gliders, and intersection points.
Parameters:
{string|JXG.Board} board
The board the new point is drawn on.


{Array} coordinates
An array with the user coordinates of the point.


{Object} attributes
An object containing visual properties like in JXG.Options#point and JXG.Options#elements, and optional a name and an id.


See:
JXG.Board#generateName
Method Detail
face(f)
Set the face of a point element.
Parameters:
{String} f
String which determines the face of the point. See JXG.GeometryElement#face for a list of available faces.
Deprecated:
Use setAttribute()
See:
JXG.GeometryElement#face

<private> {Boolean} hasPoint(x, y)
Checks whether (x,y) is near the point.
Parameters:
{Number} x
Coordinate in x direction, screen coordinates.
{Number} y
Coordinate in y direction, screen coordinates.
Returns:
{Boolean} True if (x,y) is near the point, False otherwise.

makeIntersection(el1,, el2, i, j)
Convert the point to intersection point and update the construction. To move the point visual onto the intersection, a call of board update is necessary. TODO docu.
Parameters:
{String|Object} el1,
el2, i, j The intersecting objects and the numbers.
el2
i
j

{*} normalizeFace(s)
Parameters:
s
Deprecated:
Use JXG#normalizePointFace instead
Returns:
{*}

<private> setStyle(i)
Set the style of a point. Used for GEONExT import and should not be used to set the point's face and size.
Parameters:
{Number} i
Integer to determine the style.

size(s)
Set the size of a point element
Parameters:
{Number} s
Integer which determines the size of the point.
Deprecated:
Use setAttribute()
See:
JXG.GeometryElement#size

update(fromParent)
Updates the position of the point.
Parameters:
fromParent

<private> updateRenderer()
Calls the renderer to update the drawing.

{JXG.CoordsElement} updateTransform()
Applies the transformations of the element to JXG.Point#baseElement. Point transformations are relative to a base element.
Returns:
{JXG.CoordsElement} Reference to this object.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jul 05 2016 11:01:14 GMT+0200 (CEST)