Creates an instance of mxAnimation.
Specifies the delay between the animation steps. Defaul is 30ms.
Variable: eventListeners
Holds the event names and associated listeners in an array. The array contains the event name followed by the respective listener for each registered listener.
Variable: eventSource
Optional source for events. Default is null.
Variable: eventsEnabled
Specifies if events can be fired. Default is true.
Reference to the thread while the animation is running.
Function: addListener
Binds the specified function to the given event name. If no event name is given, then the listener is registered for all events.
The parameters of the listener are the sender and an
Function: fireEvent
Dispatches the given event to the listeners which are registered for the event. The sender argument is optional. The current execution scope ("this") is used for the listener invocation (see <mxUtils.bind>).
Example:
(code) fireEvent(new mxEventObject("eventName", key1, val1, .., keyN, valN)) (end)
Parameters:
evt -
Function: getEventSource
Returns
Function: isEventsEnabled
Returns
Returns true if the animation is running.
Function: removeListener
Removes all occurrences of the given listener from
Function: setEventSource
Sets
Function: setEventsEnabled
Sets
Starts the animation by repeatedly invoking updateAnimation.
Stops the animation by deleting the timer and fires an <mxEvent.DONE>.
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.
Generated using TypeDoc
Implements a basic animation in JavaScript.