Class Index | File Index

Classes


Class CAAT.Foundation.UI.StarActor


Extends CAAT.Foundation.ActorContainer.

Defined in: StarActor.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
Draw the star with this composite operation.
 
Staring angle in radians.
 
 
 
 
Maximum radius.
 
Minimum radius.
 
 
Number of star peaks.
Fields borrowed from class CAAT.Foundation.ActorContainer:
activeChildren, addHint, boundingBox, childrenList, layoutInvalidated, layoutManager, pendingChildrenList, runion
Fields borrowed from class CAAT.Foundation.Actor:
__super, AABB, alpha, backgroundImage, behaviorList, cached, clip, clipPath, dirty, discardable, duration, expired, fillStyle, frameAlpha, gestureEnabled, glEnabled, height, id, inFrame, invalid, isAA, isCachedActor, isGlobalAlpha, lifecycleListenerList, minimumSize, modelViewMatrix, modelViewMatrixI, mouseEnabled, oldX, oldY, parent, pointed, preferredSize, preventLayout, rotationAngle, rotationX, rotationY, scaleAnchor, scaleTX, scaleTY, scaleX, scaleY, size_active, size_total, start_time, strokeStyle, tAnchorX, tAnchorY, time, viewVertices, visible, wdirty, width, worldModelViewMatrix, worldModelViewMatrixI, x, y
Method Summary
Method Attributes Method Name and Description
<private>  
 
 
 
 
 
initialize(nPeaks, maxRadius, minRadius)
Initialize the star values.
 
paint(director, timer)
Paint the star.
 
setCompositeOp(compositeOp)
Sets the composite operation to apply on shape drawing.
 
setFilled(filled)
Sets whether the star will be color filled.
 
 
 
 
 
 
setOutlined(outlined)
Sets whether the star will be outlined.
Methods borrowed from class CAAT.Foundation.ActorContainer:
__paintActor, __validateLayout, __validateTree, addActor, addActorImmediately, addChild, addChildAt, addChildDelayed, addChildImmediately, animate, destroy, drawScreenBoundingBox, emptyChildren, endAnimate, findActorAtPosition, findActorById, findChild, getChildAt, getLayout, getNumActiveChildren, getNumChildren, invalidateLayout, paintActor, paintActorGL, recalcSize, removeChild, removeChildAt, removeFirstChild, removeLastChild, setBounds, setLayout, setZOrder
Methods borrowed from class CAAT.Foundation.Actor:
__scale1To, addAnimation, addBehavior, addListener, cacheAsBitmap, centerAt, centerOn, clean, contains, create, disableDrag, emptyBehaviorList, enableDrag, enableEvents, fireEvent, gestureChange, gestureEnd, gestureStart, getAnchor, getAnchorPercent, getBehavior, getId, getMinimumSize, getPreferredSize, getTextureGLPage, glNeedsFlush, glSetShader, invalidate, isCached, isGestureEnabled, isInAnimationFrame, isVisible, modelToModel, modelToView, mouseClick, mouseDblClick, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseOut, mouseOver, mouseUp, moveTo, playAnimation, removeBehaviorById, removeBehaviour, removeListener, resetAnimationTime, resetAsButton, resetTransform, rotateTo, scaleTo, scaleXTo, scaleYTo, setAlpha, setAnimationEndCallback, setAnimationImageIndex, setAsButton, setBackgroundImage, setBackgroundImageOffset, setButtonImageIndex, setCachedActor, setChangeFPS, setClip, setDiscardable, setExpired, setFillStyle, setFrameTime, setGestureEnabled, setGLCoords, setGlobalAlpha, setGlobalAnchor, setId, setImageTransformation, setLocation, setMinimumSize, setModelViewMatrix, setOutOfFrameTime, setPaint, setParent, setPosition, setPositionAnchor, setPositionAnchored, setPreferredSize, setPreventLayout, setRotation, setRotationAnchor, setRotationAnchored, setScale, setScaleAnchor, setScaleAnchored, setScreenBounds, setSize, setSpriteIndex, setStrokeStyle, setUV, setVisible, stopCacheAsBitmap, touchEnd, touchMove, touchStart, viewToModel
Class Detail
CAAT.Foundation.UI.StarActor()
Field Detail
compositeOp
Draw the star with this composite operation.

initialAngle
Staring angle in radians.

lineCap

lineJoin

lineWidth

maxRadius
Maximum radius.

minRadius
Minimum radius.

miterLimit

nPeaks
Number of star peaks.
Method Detail
<private> __init()

getLineCap()

getLineJoin()

getLineWidth()

getMiterLimit()

initialize(nPeaks, maxRadius, minRadius)
Initialize the star values.

The star actor will be of size 2*maxRadius.

Parameters:
nPeaks
{number} number of star points.
maxRadius
{number} maximum star radius
minRadius
{number} minimum star radius
Returns:
this

paint(director, timer)
Paint the star.
Parameters:
director
{CAAT.Director}
timer
{number}

setCompositeOp(compositeOp)
Sets the composite operation to apply on shape drawing.
Parameters:
compositeOp
an string with a valid canvas rendering context string describing compositeOps.
Returns:
this

setFilled(filled)
Sets whether the star will be color filled.
Parameters:
filled
{boolean}

setInitialAngle(angle)
Parameters:
angle
{number} number in radians.

setLineCap(lc)
Parameters:
lc
{string{butt|round|square}}

setLineJoin(lj)
Parameters:
lj
{string{bevel|round|miter}}

setLineWidth(l)
Parameters:
l
{number>0}

setMiterLimit(ml)
Parameters:
ml
{integer>0}

setOutlined(outlined)
Sets whether the star will be outlined.
Parameters:
outlined
{boolean}

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