Class AnimeJInterpolatedTask
Object
|
+--AnimeJTask
|
+--AnimeJInterpolatedTask
- class
AnimeJInterpolatedTask
- extends AnimeJTask
Task for scheduling interpolators on the timer library.
The task is not trivial because it supports suspension and
resuming of tasks that means changing the absolute deadlines
inside the heap.
See:
Defined in AnimeJ.js
Field Summary |
{int} |
Duration
Duration of the whole transition in milliseconds. |
{int} |
Start
Offset used to take into account suspension of task execution. |
Method Summary |
void
|
DoAction(<int> d)
It performs a step of animation by invoking the interpolator.
|
void
|
OnPause()
Invoked when the task is suspended, updates the internal state.
|
void
|
OnResume()
Invoked when the task is resumed, updates the internal state.
|
void
|
OnStop()
Invoked when the task is stopped, updates the internal state.
|
Duration
{int} Duration
Duration of the whole transition in milliseconds.
Start
{int} Start
Offset used to take into account suspension of task execution.
AnimeJInterpolatedTask
AnimeJInterpolatedTask(<AnimeJLinearInterpolator> interp, <int> ms, <int> stepms)
Parameters:
interp
- Interpolator to be used, it can be an object with the Compute(v) function.
ms
- Duration of the transition between 0.0 and 1.0 (and consequently of the associated values).
stepms
- The number of milliseconds between each value transition (i.e. how frequent the value is changed).
DoAction
void DoAction(<int> d)
It performs a step of animation by invoking the interpolator.
Parameters:
d
- Delay in the notification with respect to the original deadline set.
OnPause
void OnPause()
Invoked when the task is suspended, updates the internal state.
OnResume
void OnResume()
Invoked when the task is resumed, updates the internal state.
OnStop
void OnStop()
Invoked when the task is stopped, updates the internal state.
Documentation generated by
JSDoc on Sun Nov 30 00:32:42 2008