Class Index | File Index

Classes


Class CAAT.PathUtil.LinearPath


Extends CAAT.PathUtil.PathSegment.

Defined in: LinearPath.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
spare holder for getPosition coordinate return.
 
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.
 
getContour(iSize)
 
 
 
 
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 this path segment's ending position.
 
Set this path segment's starting position.
 
setPoint(point, index)
 
setPoints(points)
 
 
updatePath(point)
Update this segments length and bounding box info.
Methods borrowed from class CAAT.PathUtil.PathSegment:
drawHandle, endPath, getBoundingBox, getLength, setColor, setParent, transform
Class Detail
CAAT.PathUtil.LinearPath()
Field Detail
newPosition
spare holder for getPosition coordinate return.

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(iSize)
Parameters:
iSize

getControlPoint(index)
Parameters:
index

getPosition(time)
Parameters:
time

getPositionFromLength(len)
Parameters:
len

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

{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}

setFinalPosition(finalX, finalY)
Set this path segment's ending position.
Parameters:
finalX
{number}
finalY
{number}

setInitialPosition(x, y)
Set this path segment's starting position.
Parameters:
x
{number}
y
{number}

setPoint(point, index)
Parameters:
point
index

setPoints(points)
Parameters:
points

startCurvePosition()

updatePath(point)
Update this segments length and bounding box info.
Parameters:
point

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