Abstract
Protected
constructorCreates a new animation player for the given animation and calling the given draw callback for each animation frame.
Returns the animation height in pixels.
The animation height in pixels.
Returns the delay to wait before rendering the next frame.
The next delay in milliseconds.
Protected
Abstract
getReturns the number of time units to wait before rendering the next frame.
The animation to play.
The next delay in time units.
Returns the animation speed in milliseconds per time unit. Default is 50.
The animation speed in milliseconds per time unit.
Returns the animation width in pixels.
The animation width in pixels.
Protected
Abstract
initAdvances the animation to the next frame.
Protected
Abstract
nextStops and resets the animation to the base frame.
Sets the animation speed in milliseconds per time unit. Default is 50.
The animation speed to set.
Starts the animation if not already running.
Stops the animation if currently running.
Abstract base class for animation player implementations.