Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new mxSwimlaneManager(graph: mxGraph, horizontal?: boolean, addEnabled?: boolean, resizeEnabled?: boolean): mxSwimlaneManager

Properties

addEnabled

addEnabled: boolean

Specifies if newly added cells should be resized to match the size of their existing siblings.

default

true

addHandler

addHandler: Function

Holds the function that handles the move event.

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.

horizontal

horizontal: boolean

Specifies the orientation of the swimlanes.

default

true

resizeEnabled

resizeEnabled: boolean

Specifies if resizing of swimlanes should be handled.

default

true

resizeHandler

resizeHandler: Function

Holds the function that handles the move event.

Methods

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

cellsAdded

  • cellsAdded(cells: mxCell[]): void

cellsResized

  • cellsResized(cells: mxCell[]): void

destroy

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

getEventSource

  • getEventSource(): any

getGraph

isAddEnabled

  • isAddEnabled(): boolean

isCellHorizontal

  • isCellHorizontal(cell: mxCell): boolean
  • Returns true if the given cell is horizontal. If the given cell is not a swimlane, then the global orientation is returned.

    Parameters

    Returns boolean

isEnabled

  • isEnabled(): boolean

isEventsEnabled

  • isEventsEnabled(): boolean

isHorizontal

  • isHorizontal(): boolean

isResizeEnabled

  • isResizeEnabled(): boolean

isSwimlaneIgnored

  • isSwimlaneIgnored(swimlane: mxCell): boolean

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

resizeSwimlane

  • resizeSwimlane(swimlane: mxCell, w: number, h: number, parentHorizontal: boolean): void
  • Called from cellsResized for all swimlanes that are not ignored to update the size of the siblings and the size of the parent swimlanes, recursively, if bubbling is true.

    Parameters

    • swimlane: mxCell

      mxCell whose size has changed.

    • w: number
    • h: number
    • parentHorizontal: boolean

    Returns void

setAddEnabled

  • setAddEnabled(value: boolean): void

setEnabled

  • setEnabled(value: boolean): void

setEventSource

  • setEventSource(value: any): void

setEventsEnabled

  • setEventsEnabled(value: boolean): void

setGraph

setHorizontal

  • setHorizontal(value: boolean): void

setResizeEnabled

  • setResizeEnabled(value: boolean): void

swimlaneAdded

  • swimlaneAdded(swimlane: mxCell): void
  • Updates the size of the given swimlane to match that of any existing siblings swimlanes.

    Parameters

    Returns void

Generated using TypeDoc