Class Index | File Index

Classes


Class zwt.animation.SinusEngine


Extends zwt.animation.Engine.

A sinus engine is an implementation of zwt.animation.Engine that generates values based on three sinusoidal functions.

A animated object using this engine will go back, go beyond the target value and finally go back to it.


Defined in: SinusEngine.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Construct a sinus engine.
Method Summary
Method Attributes Method Name and Description
 
Return the first offset duration as a percentage of the duration.
 
Return the second offset duration as a percentage of the duration.
 
Return the first offset value as a percentage of the target value.
 
Return the second offset value as a percentage of the target value.
 
setOffsetDuration1(float_offsetValue1)
Set the first offset duration as a percentage of the duration.
 
setOffsetDuration2(float_offsetValue1)
Set the second offset duration as a percentage of the duration.
 
setOffsetValue1(float_offsetValue1)
Set the first offset value as a percentage of the target value.
 
setOffsetValue2(float_offsetValue)
Set the second offset value as a percentage of the target value.
Methods borrowed from class zwt.animation.Engine:
getStepValue, getTargetValue, setTargetValue
Class Detail
zwt.animation.SinusEngine()
Construct a sinus engine.
Author: Jeremy KUHN.
Method Detail
{Float} getOffsetDuration1()
Return the first offset duration as a percentage of the duration.
Returns:
The offset duration

{Float} getOffsetDuration2()
Return the second offset duration as a percentage of the duration.
Returns:
The offset duration

{Float} getOffsetValue1()
Return the first offset value as a percentage of the target value.
Returns:
The offset value

{Float} getOffsetValue2()
Return the second offset value as a percentage of the target value.
Returns:
The offset value

setOffsetDuration1(float_offsetValue1)
Set the first offset duration as a percentage of the duration.
Parameters:
{Float} float_offsetValue1
The offset duration

setOffsetDuration2(float_offsetValue1)
Set the second offset duration as a percentage of the duration.
Parameters:
{Float} float_offsetValue1
The offset duration

setOffsetValue1(float_offsetValue1)
Set the first offset value as a percentage of the target value.
Parameters:
{Float} float_offsetValue1
The offset value

setOffsetValue2(float_offsetValue)
Set the second offset value as a percentage of the target value.
Parameters:
{Float} float_offsetValue
The offset value

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jan 12 2012 02:07:52 GMT+0100 (CET)