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.Image


      ↳ JXG.Image

Image: It inherits from @see GeometryElement.

Defined in: image.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JXG.Image(board, url, coords, size, attributes)
Construct and handle images
Method Summary
Method Attributes Method Name and Description
 
hasPoint(x, y)
Checks whether (x,y) is over or near the image;
 
setPositionDirectly(method, coords, oldcoords)
Sets x and y coordinate of the image.
<private>  
Recalculate the coordinates of lower left corner and the width amd the height.
 
Updates the coordinates of the top left corner of the image.
 
Send an update request to the renderer.
 
Updates the size of the image.
 
Update the anchor point of the image, i.e.
Class Detail
JXG.Image(board, url, coords, size, attributes)
Construct and handle images
Parameters:
board


url


coords


size


attributes


Method Detail
{Boolean} hasPoint(x, y)
Checks whether (x,y) is over or near the image;
Parameters:
{Number} x
Coordinate in x direction, screen coordinates.
{Number} y
Coordinate in y direction, screen coordinates.
Returns:
{Boolean} True if (x,y) is over the image, False otherwise.

{JXG.Image} setPositionDirectly(method, coords, oldcoords)
Sets x and y coordinate of the image.
Parameters:
{number} method
The type of coordinates used here. Possible values are JXG.COORDS_BY_USER and JXG.COORDS_BY_SCREEN.
{Array} coords
coordinates in screen/user units of the mouse/touch position
{Array} oldcoords
coordinates in screen/user units of the previous mouse/touch position
Returns:
{JXG.Image} this element

<private> update()
Recalculate the coordinates of lower left corner and the width amd the height.

updateCoords()
Updates the coordinates of the top left corner of the image.

updateRenderer()
Send an update request to the renderer.

updateSize()
Updates the size of the image.

updateSpan()
Update the anchor point of the image, i.e. the lower left corner and the two vectors which span the rectangle.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 27 2013 11:32:43 GMT+0200 (CEST)