Class Index | File Index

Classes


Class Ellipse


Defined in: primitives.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Ellipse(centerPoint, width, height)
Approximate an ellipse through 4 bezier curves, one for each quadrant
Field Summary
Field Attributes Field Name and Description
 
Bottom left CubicCurve
 
Bottom right CubicCurve
 
The center Point
<inner>  
"THE" constant
 
The matrix array
<inner>  
Height offset
<inner>  
Width offset
 
Oject type used for JSON deserialization
 
The Style used
 
Top left CubicCurve
 
Top right CubicCurve
Method Summary
Method Attributes Method Name and Description
 
 
contains(x, y)
 
equals(anotherEllipse)
 
 
<static>  
Ellipse.load(o)
Creates a new {Ellipse} out of JSON parsed object
 
near(x, y, radius)
 
paint(context)
 
 
 
transform(matrix)
Class Detail
Ellipse(centerPoint, width, height)
Approximate an ellipse through 4 bezier curves, one for each quadrant
Author: Zack Newsham .
Parameters:
{Point} centerPoint
- the center point of the ellipse
{Number} width
- the width of the ellipse
{Number} height
- the height of the ellipse
See:
http://www.codeguru.com/cpp/g-m/gdi/article.php/c131
http://www.tinaja.com/glib/ellipse4.pdf
Field Detail
bottomLeftCurve
Bottom left CubicCurve

bottomRightCurve
Bottom right CubicCurve

centerPoint
The center Point

<inner> EToBConst
"THE" constant

matrix
The matrix array

<inner> offsetHeight
Height offset

<inner> offsetWidth
Width offset

oType
Oject type used for JSON deserialization

style
The Style used

topLeftCurve
Top left CubicCurve

topRightCurve
Top right CubicCurve
Method Detail
clone()

contains(x, y)
Parameters:
x
y

equals(anotherEllipse)
Parameters:
anotherEllipse

getBounds()

getPoints()

<static> {Ellipse} Ellipse.load(o)
Creates a new {Ellipse} out of JSON parsed object
Author: Alex Gheorghiu .
Parameters:
{JSONObject} o
- the JSON parsed object
Returns:
{Ellipse} a newly constructed Ellipse

near(x, y, radius)
Parameters:
x
y
radius

paint(context)
Parameters:
context

toString()

toSVG()

Author: Alex Gheorghiu .
See:
http://www.w3.org/TR/SVG/paths.html#PathDataCubicBezierCommands

transform(matrix)
Parameters:
matrix

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 09 2011 12:47:26 GMT+0300 (EEST)