Class Index | File Index

Classes


Class CAAT.Behavior.ScaleBehavior


Extends CAAT.Behavior.BaseBehavior.

Defined in: ScaleBehavior.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<private> <static>  
CAAT.Behavior.ScaleBehavior.anchorX
Scale X anchor value.
<private> <static>  
CAAT.Behavior.ScaleBehavior.anchorY
Scale Y anchor value.
<private> <static>  
CAAT.Behavior.ScaleBehavior.endScaleX
End X scale value.
<private> <static>  
CAAT.Behavior.ScaleBehavior.endScaleY
End Y scale value.
<private> <static>  
CAAT.Behavior.ScaleBehavior.startScaleX
Start X scale value.
<private> <static>  
CAAT.Behavior.ScaleBehavior.startScaleY
Start Y 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> <static>  
CAAT.Behavior.ScaleBehavior.__init()
<static>  
CAAT.Behavior.ScaleBehavior.calculateKeyFrameData(time)
<static>  
CAAT.Behavior.ScaleBehavior.calculateKeyFramesData(prefix, name, keyframessize)
<static>  
CAAT.Behavior.ScaleBehavior.getKeyFrameDataValues(time)
<static>  
CAAT.Behavior.ScaleBehavior.getPropertyName()
<static>  
CAAT.Behavior.ScaleBehavior.parse(obj)
<static>  
CAAT.Behavior.ScaleBehavior.setAnchor(actor, x, y)
Set an exact position scale anchor.
<static>  
CAAT.Behavior.ScaleBehavior.setForTime(time, actor)
Applies corresponding scale values for a given time.
<static>  
CAAT.Behavior.ScaleBehavior.setValues(startX, endX, startY, endY, anchorx, 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.ScaleBehavior()
Field Detail
<private> <static> CAAT.Behavior.ScaleBehavior.anchorX
Scale X anchor value.

<private> <static> CAAT.Behavior.ScaleBehavior.anchorY
Scale Y anchor value.

<private> <static> CAAT.Behavior.ScaleBehavior.endScaleX
End X scale value.

<private> <static> CAAT.Behavior.ScaleBehavior.endScaleY
End Y scale value.

<private> <static> CAAT.Behavior.ScaleBehavior.startScaleX
Start X scale value.

<private> <static> CAAT.Behavior.ScaleBehavior.startScaleY
Start Y scale value.
Method Detail
<private> <static> CAAT.Behavior.ScaleBehavior.__init()

<static> CAAT.Behavior.ScaleBehavior.calculateKeyFrameData(time)
Parameters:
time

<static> CAAT.Behavior.ScaleBehavior.calculateKeyFramesData(prefix, name, keyframessize)
Parameters:
prefix
name
keyframessize

<static> CAAT.Behavior.ScaleBehavior.getKeyFrameDataValues(time)
Parameters:
time

<static> CAAT.Behavior.ScaleBehavior.getPropertyName()

<static> CAAT.Behavior.ScaleBehavior.parse(obj)
Parameters:
obj

<static> CAAT.Behavior.ScaleBehavior.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

<static> {object} CAAT.Behavior.ScaleBehavior.setForTime(time, actor)
Applies corresponding scale values for a given time.
Parameters:
time
the time to apply the scale for.
actor
the target actor to Scale.
Returns:
{object} an object of the form { scaleX: {float}, scaleY: {float}�}

<static> CAAT.Behavior.ScaleBehavior.setValues(startX, endX, startY, endY, anchorx, anchory)
Define this scale behaviors values. Be aware the anchor values are supplied in RELATIVE PERCENT to actor's size.
Parameters:
startX
{number} initial X axis scale value.
endX
{number} final X axis scale value.
startY
{number} initial Y axis scale value.
endY
{number} final Y axis scale value.
anchorx
{float} the percent position for anchorX
anchory
{float} the percent position for anchorY
Returns:
this.

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