Options
All
  • Public
  • Public/Protected
  • All
Menu
example
var layoutMgr = new mxLayoutManager(graph);
layoutMgr.getLayout(cell, eventName)
{
  return layout;
};

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.

Hierarchy

Index

Constructors

constructor

Properties

bubbling

bubbling: boolean

Specifies if the layout should bubble along the cell hierarchy.

default

true

enabled

enabled: boolean

Specifies if event handling is enabled.

default

true

eventListeners

eventListeners: any[]

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.

eventSource

eventSource: any

Variable: eventSource

Optional source for events. Default is null.

eventsEnabled

eventsEnabled: boolean

Variable: eventsEnabled

Specifies if events can be fired. Default is true.

graph

graph: mxGraph

Reference to the enclosing mxGraph.

moveHandler

moveHandler: Function

Holds the function that handles the move event.

resizeHandler

resizeHandler: Function

Holds the function that handles the resize event.

undoHandler

undoHandler: Function

Holds the function that handles the endUpdate event.

Methods

addAncestorsWithLayout

addCellsWithLayout

addDescendantsWithLayout

addListener

  • addListener(name: string, funct: (...args: any[]) => any): void
  • 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 .

    Parameters

    • name: string
    • funct: (...args: any[]) => any
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns void

beforeUndo

  • beforeUndo(undoableEdit: any): void

cellsMoved

  • cellsMoved(cells: mxCell[], evt: MouseEvent): void

cellsResized

destroy

  • destroy(): void

executeLayout

  • executeLayout(cell: mxCell, bubble: string): void

executeLayoutForCells

  • executeLayoutForCells(cells: mxCell[]): void

fireEvent

  • 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 - that represents the event. sender - Optional sender to be passed to the listener. Default value is the return value of .

    Parameters

    Returns void

getAncestorLayout

getCellsForChange

  • getCellsForChange(change: any): mxCell[]
  • Executes all layouts which have been scheduled during the changes.

    Parameters

    • change: any

      mxChildChange|mxTerminalChange|mxVisibleChange|...

    Returns mxCell[]

getCellsForChanges

  • getCellsForChanges(changes: any[]): mxCell[]

getEventSource

  • getEventSource(): any

getGraph

getLayout

isBubbling

  • isBubbling(): boolean
  • 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 boolean

isEnabled

  • isEnabled(): boolean

isEventsEnabled

  • isEventsEnabled(): boolean

layoutCells

  • layoutCells(cells: mxCell[], bubble: string): void

removeListener

  • removeListener(funct: (...args: any[]) => any): void
  • Function: removeListener

    Removes all occurrences of the given listener from .

    Parameters

    • funct: (...args: any[]) => any
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns void

setBubbling

  • setBubbling(value: boolean): void

setEnabled

  • setEnabled(enabled: boolean): void
  • Enables or disables event handling. This implementation updates enabled.

    Parameters

    • enabled: boolean

      Boolean that specifies the new enabled state.

    Returns void

setEventSource

  • setEventSource(value: any): void

setEventsEnabled

  • setEventsEnabled(value: boolean): void

setGraph

Generated using TypeDoc