Constructor: mxLayoutManager
Constructs a new automatic layout for the given graph.
Arguments:
Reference to the enclosing graph.
Specifies if the layout should bubble along the cell hierarchy.
Specifies if event handling is enabled.
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 mxGraph.
Holds the function that handles the move event.
Holds the function that handles the resize event.
Holds the function that handles the endUpdate event.
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
Called from undoHandler.
Called from moveHandler.
Mouse event that represents the mousedown.
Called from resizeHandler.
mxRectangle taht represents the new bounds.
Removes all handlers from the graph and deletes the reference to it.
Executes the given layout on the given parent.
Executes the given layout on the given parent.
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 -
Returns the cells to be layouted for the given sequence of changes.
Executes all layouts which have been scheduled during the changes.
mxChildChange|mxTerminalChange|mxVisibleChange|...
Returns the cells for which a layout should be executed.
Function: getEventSource
Returns
Returns the graph that this layout operates on.
Returns the layout for the given cell and eventName. Possible event names are mxEvent.MOVE_CELLS and mxEvent.RESIZE_CELLS for callbacks on when cells are moved or resized and mxEvent.BEGIN_UPDATE and mxEvent.END_UPDATE for the capture and bubble phase of the layout after any changes of the model.
Returns true if a layout should bubble, that is, if the parent layout should be executed whenever a cell layout (layout of the children of a cell) has been executed. This implementation returns bubbling.
Returns true if events are handled. This implementation returns enabled.
Function: isEventsEnabled
Returns
Executes all layouts which have been scheduled during the changes.
Function: removeListener
Removes all occurrences of the given listener from
Sets bubbling.
Enables or disables event handling. This implementation updates enabled.
Boolean that specifies the new enabled state.
Function: setEventSource
Sets
Function: setEventsEnabled
Sets
Sets the graph that the layouts operate on.
Generated using TypeDoc
See getLayout for a description of the possible eventNames.
Event: mxEvent.LAYOUT_CELLS
Fires between begin- and endUpdate after all cells have been layouted in layoutCells. The
cells
property contains all cells that have been passed to layoutCells.