Class DashedArc
Defined in: primitives.js.
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 Attributes | Field Name and Description |
---|---|
The "under the hood" Arc
|
|
The gap between dashes
|
|
An {Array} or Arcs
|
|
Object type used for JSON deserialization
|
Method Attributes | Method Name and Description |
---|---|
clone()
|
|
contains(x, y)
|
|
equals(anotherDashedArc)
|
|
<static> |
DashedArc.load(o)
Creates a new {Ellipse} out of JSON parsed object
|
near(x, y, radius)
|
|
paint(context)
|
|
toString()
|
|
toSVG()
|
|
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.
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
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.
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