AbstractProtectedconstructorCreates a new animation player for the given animation and calling the given draw callback for each animation frame.
The current animation frame.
the animation height in pixels.
the delay to wait before rendering the next frame.
Protected AbstractgetReturns the number of time units to wait before rendering the next frame.
The animation to play.
The next delay in time units.
the animation speed in milliseconds per time unit. Default is 50.
the animation width in pixels.
Protected AbstractinitAdvances the animation to the next frame.
Protected AbstractnextStops 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.