Class Ellipse
Defined in: primitives.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Ellipse(centerPoint, width, height)
Approximate an ellipse through 4 bezier curves, one for each quadrant
|
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 Attributes | Method Name and Description |
---|---|
clone()
|
|
contains(x, y)
|
|
equals(anotherEllipse)
|
|
<static> |
Ellipse.load(o)
Creates a new {Ellipse} out of JSON parsed object
|
near(x, y, radius)
|
|
paint(context)
|
|
toString()
|
|
toSVG()
|
|
transform(matrix)
|
Class Detail
Ellipse(centerPoint, width, height)
Approximate an ellipse through 4 bezier curves, one for each quadrant
Author: Zack Newsham.
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
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.
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
transform(matrix)
- Parameters:
- matrix