Class QuadCurve
Defined in: primitives.js.
Constructor Attributes | Constructor Name and Description |
---|---|
QuadCurve(startPoint, controlPoint, endPoint)
Creates an instance of a quad curve.
|
Field Attributes | Field Name and Description |
---|---|
The controll Point
|
|
The end Point
|
|
Serialization type
|
|
The start Point
|
|
The Style of the quad
|
Method Attributes | Method Name and Description |
---|---|
clone()
|
|
contains(x, y)
|
|
deprecated_contains(x, y)
|
|
equals(anotherQuadCurve)
|
|
<static> |
QuadCurve.load(o)
Creates a {QuadCurve} out of JSON parsed object
|
<static> |
QuadCurve.loadArray(v)
Creates an {Array} of {QuadCurve} out of JSON parsed object
|
near(x, y, radius)
|
|
paint(context)
|
|
toString()
|
|
toSVG()
Render the SVG fragment for this primitive
|
|
transform(matrix)
|
Class Detail
QuadCurve(startPoint, controlPoint, endPoint)
Creates an instance of a quad curve.
A curved line determined by 2 normal points (startPoint and endPoint) and 1 control point (controlPoint)
Field Detail
controlPoint
The controll Point
endPoint
The end Point
oType
Serialization type
startPoint
The start Point
style
The Style of the quad
Method Detail
clone()
contains(x, y)
Author: (just converted to JavaScript) alex@scriptoid.com.
- Parameters:
- x
- y
- See:
- sources for java.awt.geom.QuadCurve2D
deprecated_contains(x, y)
- Parameters:
- x
- y
equals(anotherQuadCurve)
- Parameters:
- anotherQuadCurve
getBounds()
getPoints()
<static>
{QuadCurve}
QuadCurve.load(o)
Creates a {QuadCurve} out of JSON parsed object
Author: Alex Gheorghiu.
Author: Alex Gheorghiu
- Parameters:
- {JSONObject} o
- - the JSON parsed object
- Returns:
- {QuadCurve} a newly constructed QuadCurve
<static>
{Array}
QuadCurve.loadArray(v)
Creates an {Array} of {QuadCurve} out of JSON parsed object
Author: Alex Gheorghiu.
Author: Alex Gheorghiu
- Parameters:
- {JSONObject} v
- - the JSON parsed object (actually an {Array} of {JSONObject}s
- Returns:
- {Array} of {QuadCurve}s
near(x, y, radius)
- Parameters:
- x
- y
- radius
paint(context)
- Parameters:
- context
toString()
toSVG()
Render the SVG fragment for this primitive
transform(matrix)
- Parameters:
- matrix