Manager for swimlanes and nested swimlanes that sets the size of newly added swimlanes to that of their siblings, and propagates changes to the size of a swimlane to its siblings, if <siblings> is true, and its ancestors, if <bubbling> is true.
mxSwimlaneManager | Manager for swimlanes and nested swimlanes that sets the size of newly added swimlanes to that of their siblings, and propagates changes to the size of a swimlane to its siblings, if <siblings> is true, and its ancestors, if <bubbling> is true. |
Functions | |
mxSwimlaneManager | Constructs a new swimlane manager for the given graph. |
Variables | |
graph | Reference to the enclosing mxGraph. |
enabled | Specifies if event handling is enabled. |
horizontal | Specifies the orientation of the swimlanes. |
addEnabled | Specifies if newly added cells should be resized to match the size of their existing siblings. |
resizeEnabled | Specifies if resizing of swimlanes should be handled. |
moveHandler | Holds the function that handles the move event. |
moveHandler | Holds the function that handles the move event. |
Functions | |
isEnabled | Returns true if events are handled. |
setEnabled | Enables or disables event handling. |
isHorizontal | Returns horizontal. |
setHorizontal | Sets horizontal. |
isAddEnabled | Returns addEnabled. |
setAddEnabled | Sets addEnabled. |
isResizeEnabled | Returns resizeEnabled. |
setResizeEnabled | Sets resizeEnabled. |
getGraph | Returns the graph that this manager operates on. |
setGraph | Sets the graph that the manager operates on. |
isSwimlaneIgnored | Returns true if the given swimlane should be ignored. |
isCellHorizontal | Returns true if the given cell is horizontal. |
cellsAdded | Called if any cells have been added. |
swimlaneAdded | Updates the size of the given swimlane to match that of any existing siblings swimlanes. |
cellsResized | Called if any cells have been resizes. |
resizeSwimlane | 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. |
destroy | Removes all handlers from the graph and deletes the reference to it. |
mxSwimlaneManager.prototype.graph
Reference to the enclosing mxGraph.
mxSwimlaneManager.prototype.isEnabled = function()
Returns true if events are handled. This implementation returns enabled.
mxSwimlaneManager.prototype.setEnabled = function( value )
Enables or disables event handling. This implementation updates enabled.
enabled | Boolean that specifies the new enabled state. |
mxSwimlaneManager.prototype.isHorizontal = function()
Returns horizontal.
mxSwimlaneManager.prototype.setHorizontal = function( value )
Sets horizontal.
mxSwimlaneManager.prototype.isAddEnabled = function()
Returns addEnabled.
mxSwimlaneManager.prototype.setAddEnabled = function( value )
Sets addEnabled.
mxSwimlaneManager.prototype.isResizeEnabled = function()
Returns resizeEnabled.
mxSwimlaneManager.prototype.setResizeEnabled = function( value )
Sets resizeEnabled.
mxSwimlaneManager.prototype.cellsAdded = function( cells )
Called if any cells have been added.
cell | Array of mxCells that have been added. |
mxSwimlaneManager.prototype.swimlaneAdded = function( swimlane )
Updates the size of the given swimlane to match that of any existing siblings swimlanes.
swimlane | mxCell that represents the new swimlane. |
mxSwimlaneManager.prototype.cellsResized = function( cells )
Called if any cells have been resizes. Calls <swimlaneResized> for all swimlanes where isSwimlaneIgnored returns false.
cells | Array of mxCells whose size was changed. |
mxSwimlaneManager.prototype.resizeSwimlane = function( swimlane, w, h, parentHorizontal )
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.
swimlane | mxCell whose size has changed. |
mxSwimlaneManager.prototype.destroy = function()
Removes all handlers from the graph and deletes the reference to it.
Constructs a new swimlane manager for the given graph.
function mxSwimlaneManager( graph, horizontal, addEnabled, resizeEnabled )
Reference to the enclosing mxGraph.
mxSwimlaneManager.prototype.graph
Specifies if event handling is enabled.
mxSwimlaneManager.prototype.enabled
Specifies the orientation of the swimlanes.
mxSwimlaneManager.prototype.horizontal
Specifies if newly added cells should be resized to match the size of their existing siblings.
mxSwimlaneManager.prototype.addEnabled
Specifies if resizing of swimlanes should be handled.
mxSwimlaneManager.prototype.resizeEnabled
Returns true if events are handled.
mxSwimlaneManager.prototype.isEnabled = function()
Enables or disables event handling.
mxSwimlaneManager.prototype.setEnabled = function( value )
Returns horizontal.
mxSwimlaneManager.prototype.isHorizontal = function()
Sets horizontal.
mxSwimlaneManager.prototype.setHorizontal = function( value )
Returns addEnabled.
mxSwimlaneManager.prototype.isAddEnabled = function()
Sets addEnabled.
mxSwimlaneManager.prototype.setAddEnabled = function( value )
Returns resizeEnabled.
mxSwimlaneManager.prototype.isResizeEnabled = function()
Sets resizeEnabled.
mxSwimlaneManager.prototype.setResizeEnabled = function( value )
Returns the graph that this manager operates on.
mxSwimlaneManager.prototype.getGraph = function()
Sets the graph that the manager operates on.
mxSwimlaneManager.prototype.setGraph = function( graph )
Returns true if the given swimlane should be ignored.
mxSwimlaneManager.prototype.isSwimlaneIgnored = function( swimlane )
Returns true if the given cell is horizontal.
mxSwimlaneManager.prototype.isCellHorizontal = function( cell )
Called if any cells have been added.
mxSwimlaneManager.prototype.cellsAdded = function( cells )
Updates the size of the given swimlane to match that of any existing siblings swimlanes.
mxSwimlaneManager.prototype.swimlaneAdded = function( swimlane )
Called if any cells have been resizes.
mxSwimlaneManager.prototype.cellsResized = function( cells )
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.
mxSwimlaneManager.prototype.resizeSwimlane = function( swimlane, w, h, parentHorizontal )
Removes all handlers from the graph and deletes the reference to it.
mxSwimlaneManager.prototype.destroy = function()