Section C.6. Animations


C.6. Animations

In the AtlasUIGlitz.js library, Atlas implements several animations, which are described in greater detail in Chapter 7.

C.6.1. Sys.UI.Animation (General Class)

Method

Description

get_duration()

Returns the duration of the animation

set_duration(value)

Sets the duration of the animation

get_fps()

Returns the frames per second of the animation

set_fps(value)

Sets the frames per second of the animation

get_isActive()

Whether the animation is currently active or not

get_isPlaying()

Whether the animation is currently playing or not

get_percentComplete()

Percentage how much of the animation has been completed

get_target()

Returns the target element of the animation

set_target(value)

Sets the target element of the animation

GetAnimatedValue()

Returns the value that is animated in the animation (abstract method)

onStart()

Gets executed when the animation starts

onEnd()

Gets executed when the animation ends

onStep()

Gets executed with every step of the animation

play()

Starts/continues the animation

pause()

Pauses the animation

stop()

Stops the animation

setOwner()

Sets the owner of the animation

setValue()

Sets the animation value (abstract method)


C.6.2. Sys.UI.PropertyAnimation

Method

Description

get_property()

Returns the property to animate

set_property(value)

Sets the property to animate

get_propertyKey()

Returns the key of the property to animate

set_propertyKey(value)

Sets the key of the property to animate


C.6.3. Sys.UI.InterpolatedAnimation

Method

Description

get_endValue()

Returns the end value ("upper bound") of the animation

set_endValue(value)

Sets the end value of the animation

get_startValue()

Returns the start value ("lower bound") of the animation

set_startValue(value)

Sets the start value of the animation


C.6.4. Sys.UI.DiscreteAnimation

Method

Description

get_values()

Returns the values of the animation

set_values(value)

Sets the values of the animation


C.6.5. Sys.UI.NumberAnimation

Method

Description

get_integralValues()

Returns whether to return integral values

set_integralValues(value)

Sets whether to return integral values


C.6.6. Sys.UI.ColorAnimation

This class implements the methods getAnimatedValue() and onStart().

C.6.7. Sys.UI.LengthAnimation

Method

Description

get_unit()

Returns the measuring unit to use

set_unit(value)

Sets the measuring unit to use


C.6.8. Sys.UI.CompositeAnimation

Method

Description

get_animations()

Returns the animations used


C.6.9. Sys.UI.FadeAnimation

Method

Description

get_effect()

Returns the fading effect

set_effect(value)

Sets the fading effect





Programming Atlas
Programming Atlas
ISBN: 0596526725
EAN: 2147483647
Year: 2006
Pages: 146

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net