BiAnimationRange

Defines a value range, used by BiComponentAnimation, when animating. You specify a start and an end value that will be animated. You also specify the duration/time, in ms, that it should take to animate the value range. There are several different acceleration behaviors/types that you can choose from. BiAnimationRange has the ability to progress (displace) the current value, within the animation range.

This class extends BiObject and therefore all methods and fields available for BiObject are also available for BiAnimationRange .

Constructor

new BiAnimationRange ( [ nStartValue [ ,nEndValue [ ,nAccType [ ,nTime ] ] ] ] )

Parameters

Name Type Optional Default Descripton
nStartValue Number checked 0 Lower end of value range
nEndValue Number checked 0 Upper end of value range
nAccType Number checked BiComponentAnimation.CONSTANT_SPEED Acceleration type for this range
nTime Number checked 500 The time it takes in ms to animate the whole range

Properties

Name Type get set Descripton
accType Number checked checked The acceleration type/behavior for this value range.
currentValue Number Current position within the value range checked Gets the current value as last set by the displace method.
curValue Number checked checked The current position/value inside the value range.
endValue Number checked checked Upper boundry of the value range.
startValue Number checked checked Lower boundry of the value range.
time Number checked checked Desired duration of this value range, measured in milliseconds.

Methods

Name Description
displace Makes the current position progress, using currently set acceleration algorithm.
positionAtMax Determines if current position has reached the end of this value range.
rewind Resets current value

Events

None.

Static Methods

None.

Static Fields

None.

Remarks

Method Details

displace

Makes the current position progress, using currently set acceleration algorithm.

Syntax

object.displace
 (
 curMs
 )
 

Parameters

Name Type Optional Default Descripton
curMs Number This animation range has currently been animated for curMs milliseconds.

Return Type

Current position within value range, rounded.

positionAtMax

Determines if current position has reached the end of this value range.

Syntax

object.positionAtMax
 (
 
 )
 

Parameters

No arguments.

Return Type

true if the current position (rounded) equals the mamimum upper boundry of this range.

rewind

Resets current value

Syntax

object.rewind
 (
 
 )
 

Parameters

No arguments.

Return Type

void