Class Index | File Index

Classes


Class CAAT.PathUtil.RectPath


Extends CAAT.PathUtil.PathSegment.

Defined in: RectPath.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
cw
Traverse this path clockwise or counterclockwise (false).
 
spare point for calculations
 
A collection of Points.
Fields borrowed from class CAAT.PathUtil.PathSegment:
bbox, color, length, parent
Method Summary
Method Attributes Method Name and Description
<private>  
 
applyAsPath(director)
 
 
Returns final path segment point's x coordinate.
 
 
 
 
 
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.RectPath()
Field Detail
cw
Traverse this path clockwise or counterclockwise (false).

newPosition
spare point for calculations

points
A collection of Points.
Method Detail
<private> __init()

applyAsPath(director)
Parameters:
director

endCurvePosition()

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

getContour()

getControlPoint(index)
Parameters:
index

getPosition(time)
Parameters:
time

getPositionFromLength(iLength)
Parameters:
iLength

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

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}

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}

startCurvePosition()

updatePath(point)
Parameters:
point

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