mxAnimation

Implements a basic animation in JavaScript.

Summary
mxAnimationImplements a basic animation in JavaScript.
Functions
mxAnimationConstructs an animation.
Variables
delaySpecifies the delay between the animation steps.
threadReference to the thread while the animation is running.
Functions
startAnimationStarts the animation by repeatedly invoking updateAnimation.
updateAnimationHook for subclassers to implement the animation.
stopAnimationStops the animation by deleting the timer and fires an mxEvent.DONE.

Functions

mxAnimation

function mxAnimation(delay)

Constructs an animation.

Parameters

graphReference to the enclosing mxGraph.

Variables

delay

mxAnimation.prototype.delay

Specifies the delay between the animation steps.  Defaul is 30ms.

thread

mxAnimation.prototype.thread

Reference to the thread while the animation is running.

Functions

startAnimation

mxAnimation.prototype.startAnimation = function()

Starts the animation by repeatedly invoking updateAnimation.

updateAnimation

mxAnimation.prototype.updateAnimation = function()

Hook for subclassers to implement the animation.  Invoke stopAnimation when finished, startAnimation to resume.  This is called whenever the timer fires and fires an mxEvent.EXECUTE event with no properties.

stopAnimation

mxAnimation.prototype.stopAnimation = function()

Stops the animation by deleting the timer and fires an mxEvent.DONE.

function mxAnimation(delay)
Constructs an animation.
mxAnimation.prototype.delay
Specifies the delay between the animation steps.
mxAnimation.prototype.thread
Reference to the thread while the animation is running.
mxAnimation.prototype.startAnimation = function()
Starts the animation by repeatedly invoking updateAnimation.
mxAnimation.prototype.updateAnimation = function()
Hook for subclassers to implement the animation.
mxAnimation.prototype.stopAnimation = function()
Stops the animation by deleting the timer and fires an mxEvent.DONE.
Specifies the event name for done.
Extends mxEventSource to implement a graph component for the browser.
Close