Note: the classname "Animator" is a bit of a misnomer. It's more of a
three-state-button-o-matic. Might be renamed at a later date (runeh)
Handle a two or three state button with support for animaton. The button
has an initial state, an active state (possibly animated), and optionally
a final state. An example is a "connect" button. It starts out passive.
When pressed it animates a progress indicator, and when connected, it turns
green.
The initial state is always the first in the image, that is, positioned
at 0px from the top. Hence, one does not need to pass an argument to
the constructor to set up the initial state.
The animation is configured by passing a dictionary with settings. The
dictionary contains the following:
Documentation generated by
JSDoc on Thu Oct 30 18:01:10 2008