Class Index | File Index

Classes


Class QuadCurve


Defined in: primitives.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
QuadCurve(startPoint, controlPoint, endPoint)
Creates an instance of a quad curve.
Field Summary
Field Attributes Field Name and Description
 
The controll Point
 
The end Point
 
Serialization type
 
The start Point
 
The Style of the quad
Method Summary
Method Attributes Method Name and Description
 
 
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)
 
 
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)
Parameters:
{Point} startPoint
- starting point of the line
{Point} controlPoint
- the control point of the line
{Point} endPoint
- the ending point of the line
See:
http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Quadratic_B.C3.A9zier_curves
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 .
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 .
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
See:
http://www.w3.org/TR/SVG/paths.html#PathDataQuadraticBezierCommands

transform(matrix)
Parameters:
matrix

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