Class Index | File Index

Classes


Class DashedArc


Defined in: primitives.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
DashedArc(x, y, radius, startAngle, endAngle, direction, styleFlag, dashGap)
Approximate an ellipse through 4 bezier curves, one for each quadrant
Field Summary
Field Attributes Field Name and Description
 
arc
The "under the hood" Arc
 
The gap between dashes
 
An {Array} or Arcs
 
Object type used for JSON deserialization
Method Summary
Method Attributes Method Name and Description
 
 
contains(x, y)
 
equals(anotherDashedArc)
 
 
<static>  
DashedArc.load(o)
Creates a new {Ellipse} out of JSON parsed object
 
near(x, y, radius)
 
paint(context)
 
 
 
transform(matrix)
Class Detail
DashedArc(x, y, radius, startAngle, endAngle, direction, styleFlag, dashGap)
Approximate an ellipse through 4 bezier curves, one for each quadrant
Author: Zack Newsham .
Parameters:
{Number} x
- x coodinated of the center of the "invisible" circle
{Number} y
- y coodinated of the center of the "invisible" circle
{Number} radius
- the radius of the "invisible" circle
{Number} startAngle
- the angle the arc will start from
{Number} endAngle
- the angle the arc will end into
{Number} direction
- direction of drawing (clockwise or anti-clock wise)
{Style} styleFlag
- the style of the arc
{Number} dashGap
- how big the gap between the lines will be
See:
http://www.codeguru.com/cpp/g-m/gdi/article.php/c131
http://www.tinaja.com/glib/ellipse4.pdf
Field Detail
arc
The "under the hood" Arc

dashWidth
The gap between dashes

lines
An {Array} or Arcs

oType
Object type used for JSON deserialization
Method Detail
clone()

contains(x, y)
Parameters:
x
y

equals(anotherDashedArc)
Parameters:
anotherDashedArc

getBounds()

getPoints()

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

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

paint(context)
Parameters:
context

toString()

toSVG()

transform(matrix)
Parameters:
matrix

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