Class Index | File Index

Classes


Class CAAT.Behavior.Scale1Behavior


Extends CAAT.Behavior.BaseBehavior.

Defined in: Scale1Behavior.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<private>  
Scale X anchor.
<private>  
Scale Y anchor.
 
Apply on Axis X or Y ?
<private>  
End scale value.
<private>  
Start scale value.
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, x, y)
Set an exact position scale anchor.
 
setForTime(time, actor)
 
setValues(start, end, anchorx, anchory, anchory)
Define this scale behaviors 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, setRelativeValues, setStatus, setTimeOffset, setValueApplication
Class Detail
CAAT.Behavior.Scale1Behavior()
Field Detail
<private> anchorX
Scale X anchor.

<private> anchorY
Scale Y anchor.

applyOnX
Apply on Axis X or Y ?

<private> endScale
End scale value.

<private> startScale
Start scale value.
Method Detail
<private> __init()

applyOnAxis(axis)
Parameters:
axis
{CAAT.Behavior.Scale1Behavior.AXIS}

calculateKeyFrameData(time)
Parameters:
time

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

getKeyFrameDataValues(time)
Parameters:
time

getPropertyName()

parse(obj)
Parameters:
obj

setAnchor(actor, x, y)
Set an exact position scale anchor. Use this method when it is hard to set a thorough anchor position expressed in percentage.
Parameters:
actor
x
y

setForTime(time, actor)
Parameters:
time
actor

setValues(start, end, anchorx, anchory, anchory)
Define this scale behaviors values. Be aware the anchor values are supplied in RELATIVE PERCENT to actor's size.
Parameters:
start
{number} initial X axis scale value.
end
{number} final X axis scale value.
anchorx
{float} the percent position for anchorX
anchory
{float} the percent position for anchorY
anchory
Returns:
this.

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