Class Index | File Index

Classes


Class CAAT.PathUtil.ArcPath


Extends CAAT.PathUtil.PathSegment.

Defined in: ArcPath.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
Arc end angle.
 
is a relative or absolute arc ?
 
cw
Defined clockwise or counterclockwise ?
 
spare point for calculations
 
A collection of CAAT.Math.Point objects which defines the arc (center, start, end)
 
Arc radius.
 
Arc start angle.
Fields borrowed from class CAAT.PathUtil.PathSegment:
bbox, color, length, parent
Method Summary
Method Attributes Method Name and Description
<private>  
 
applyAsPath(director)
 
An arc starts and ends in the same point.
 
Returns final path segment point's x coordinate.
 
getContour(iSize)
 
 
 
 
initialize(x, y, r, angle)
 
Returns initial path segment point's x coordinate.
 
 
 
Get the number of control points.
 
paint(director, bDrawHandles)
Draws this path segment on screen.
 
 
 
setFinalPosition(finalX, finalY)
Set a rectangle from points[0] to (finalX, finalY)
 
Set this path segment's starting position.
 
setPoint(point, index)
 
setPoints(points)
An array of {CAAT.Point} composed of two points.
 
 
 
updatePath(point)
Methods borrowed from class CAAT.PathUtil.PathSegment:
drawHandle, endPath, getBoundingBox, getLength, setColor, setParent, transform
Class Detail
CAAT.PathUtil.ArcPath()
Field Detail
angle
Arc end angle.

arcTo
is a relative or absolute arc ?

cw
Defined clockwise or counterclockwise ?

newPosition
spare point for calculations

points
A collection of CAAT.Math.Point objects which defines the arc (center, start, end)

radius
Arc radius.

startAngle
Arc start angle.
Method Detail
<private> __init()

applyAsPath(director)
Parameters:
director

endCurvePosition()
An arc starts and ends in the same point.

{number} finalPositionX()
Returns final path segment point's x coordinate.
Returns:
{number}

getContour(iSize)
Parameters:
iSize

getControlPoint(index)
Parameters:
index

getPosition(time)
Parameters:
time

getPositionFromLength(iLength)
Parameters:
iLength

initialize(x, y, r, angle)
Parameters:
x
y
r
angle

{number} initialPositionX()
Returns initial path segment point's x coordinate.
Returns:
{number}

isArcTo()

isClockWise()

{number} numControlPoints()
Get the number of control points. For this type of path segment, start and ending path segment points. Defaults to 2.
Returns:
{number}

paint(director, bDrawHandles)
Draws this path segment on screen. Optionally it can draw handles for every control point, in this case, start and ending path segment points.
Parameters:
director
{CAAT.Director}
bDrawHandles
{boolean}

setArcTo(b)
Parameters:
b

setClockWise(cw)
Parameters:
cw

setFinalPosition(finalX, finalY)
Set a rectangle from points[0] to (finalX, finalY)
Parameters:
finalX
{number}
finalY
{number}

setInitialPosition(x, y)
Set this path segment's starting position. This method should not be called again after setFinalPosition has been called.
Parameters:
x
{number}
y
{number}

setPoint(point, index)
Parameters:
point
index

setPoints(points)
An array of {CAAT.Point} composed of two points.
Parameters:
points
{Array}

setRadius(r)
Parameters:
r

startCurvePosition()

updatePath(point)
Parameters:
point

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:19 GMT-0700 (PDT)