Constructs a new automatic layout for the given graph.
Reference to the enclosing graph.
Minimum amount of seconds between two consecutive autosaves. Eg. a value of 1 (s) means the graph is not stored more than once per second. Default is 10.
Minimum amount of ignored changes before an autosave. Eg. a value of 2 means after 2 change of the graph model the autosave will trigger if the condition below is true. Default is 5.
Minimum amount of seconds between two consecutive autosaves triggered by
more than
Holds the function that handles graph model changes.
Specifies if event handling is enabled. Default is true.
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 enclosing
Counter for ignored changes in autosave.
Used for autosaving. See
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
Removes all handlers from the
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
Invoked when the graph model has changed.
Returns true if events are handled. This implementation
returns
Function: isEventsEnabled
Returns
Function: removeListener
Removes all occurrences of the given listener from
Resets all counters.
Empty hook that is called if the graph should be saved.
Enables or disables event handling. This implementation
updates
Function: setEventSource
Sets
Function: setEventsEnabled
Sets
Sets the graph that the layouts operate on.
Generated using TypeDoc
Manager for automatically saving diagrams. The hook must be
implemented.