Class Index | File Index

Classes


Class CAAT.Behavior.RotateBehavior


Extends CAAT.Behavior.BaseBehavior.

Defined in: RotateBehavior.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<private>  
Rotation X anchor.
<private>  
Rotation Y anchor.
<private>  
End rotation angle.
<private>  
Start rotation angle.
Fields borrowed from class CAAT.Behavior.BaseBehavior:
actor, behaviorDuration, behaviorStartTime, cycleBehavior, discardable, doValueApplication, id, interpolator, isRelative, lifecycleListenerList, solved, status, timeOffset
Method Summary
Method Attributes Method Name and Description
<private>  
 
 
calculateKeyFramesData(prefix, name, keyframessize)
 
 
 
parse(obj)
 
setAnchor(actor, rx, ry)
Set the behavior rotation anchor.
 
setAngles(start, end)
 
setForTime(time, actor)
 
 
setValues(startAngle, endAngle, anchorx, anchory)
Set behavior bound values.
Methods borrowed from class CAAT.Behavior.BaseBehavior:
addListener, apply, emptyListenerList, fireBehaviorAppliedEvent, fireBehaviorExpiredEvent, fireBehaviorStartedEvent, getDuration, getStartTime, initialize, isBehaviorInTime, isCycle, normalizeTime, setCycle, setDefaultInterpolator, setDelayTime, setExpired, setFrameTime, setId, setInterpolator, setOutOfFrameTime, setPingPong, setRelative, setStatus, setTimeOffset, setValueApplication
Class Detail
CAAT.Behavior.RotateBehavior()
Field Detail
<private> anchorX
Rotation X anchor.

<private> anchorY
Rotation Y anchor.

<private> endAngle
End rotation angle.

<private> startAngle
Start rotation angle.
Method Detail
<private> __init()

calculateKeyFrameData(time)
Parameters:
time

calculateKeyFramesData(prefix, name, keyframessize)
Parameters:
prefix
name
keyframessize

getKeyFrameDataValues(time)
Parameters:
time

getPropertyName()

parse(obj)
Parameters:
obj

setAnchor(actor, rx, ry)
Set the behavior rotation anchor. Use this method when setting an exact percent by calling setValues is complicated.
Parameters:
actor
rx
ry
See:
CAAT.Actor These parameters are to set a custom rotation anchor point. if anchor==CAAT.Actor.ANCHOR_CUSTOM the custom rotation point is set.

setAngles(start, end)
Parameters:
start
end
Deprecated:
Use setValues instead

setForTime(time, actor)
Parameters:
time
actor

setRelativeValues(r)
Parameters:
r

setValues(startAngle, endAngle, anchorx, anchory)
Set behavior bound values. if no anchorx,anchory values are supplied, the behavior will assume 50% for both values, that is, the actor's center. Be aware the anchor values are supplied in RELATIVE PERCENT to actor's size.
Parameters:
startAngle
{float} indicating the starting angle.
endAngle
{float} indicating the ending angle.
anchorx
{float} the percent position for anchorX
anchory
{float} the percent position for anchorY

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