mxSpaceManager

In charge of moving cells after a resize.

Summary
mxSpaceManagerIn charge of moving cells after a resize.
Functions
mxSpaceManagerConstructs a new automatic layout for the given graph.
Variables
graphReference to the enclosing mxGraph.
enabledSpecifies if event handling is enabled.
shiftRightwardsSpecifies if event handling is enabled.
shiftDownwardsSpecifies if event handling is enabled.
extendParentsSpecifies if event handling is enabled.
resizeHandlerHolds the function that handles the move event.
foldHandlerHolds the function that handles the fold event.
Functions
isCellIgnoredSets the graph that the layouts operate on.
isCellShiftableSets the graph that the layouts operate on.
isEnabledReturns true if events are handled.
setEnabledEnables or disables event handling.
isShiftRightwardsReturns true if events are handled.
setShiftRightwardsEnables or disables event handling.
isShiftDownwardsReturns true if events are handled.
setShiftDownwardsEnables or disables event handling.
isExtendParentsReturns true if events are handled.
setShiftDownwardsEnables or disables event handling.
getGraphReturns the graph that this layout operates on.
setGraphSets the graph that the layouts operate on.
cellsResizedCalled from <moveCellsIntoParent> to invoke the <move> hook in the automatic layout of each modified cell’s parent.
cellResizedCalled from <moveCellsIntoParent> to invoke the <move> hook in the automatic layout of each modified cell’s parent.
shiftCellCalled from <moveCellsIntoParent> to invoke the <move> hook in the automatic layout of each modified cell’s parent.
getCellsToShiftReturns the cells to shift after a resize of the specified mxCellState.
destroyRemoves all handlers from the graph and deletes the reference to it.

Functions

mxSpaceManager

function mxSpaceManager(graph,
shiftRightwards,
shiftDownwards,
extendParents)

Constructs a new automatic layout for the given graph.

Arguments

graphReference to the enclosing graph.

Variables

graph

mxSpaceManager.prototype.graph

Reference to the enclosing mxGraph.

enabled

mxSpaceManager.prototype.enabled

Specifies if event handling is enabled.  Default is true.

shiftRightwards

mxSpaceManager.prototype.shiftRightwards

Specifies if event handling is enabled.  Default is true.

shiftDownwards

mxSpaceManager.prototype.shiftDownwards

Specifies if event handling is enabled.  Default is true.

extendParents

mxSpaceManager.prototype.extendParents

Specifies if event handling is enabled.  Default is true.

resizeHandler

mxSpaceManager.prototype.resizeHandler

Holds the function that handles the move event.

foldHandler

mxSpaceManager.prototype.foldHandler

Holds the function that handles the fold event.

Functions

isCellIgnored

mxSpaceManager.prototype.isCellIgnored = function(cell)

Sets the graph that the layouts operate on.

isCellShiftable

mxSpaceManager.prototype.isCellShiftable = function(cell)

Sets the graph that the layouts operate on.

isEnabled

mxSpaceManager.prototype.isEnabled = function()

Returns true if events are handled.  This implementation returns enabled.

setEnabled

mxSpaceManager.prototype.setEnabled = function(value)

Enables or disables event handling.  This implementation updates enabled.

Parameters

enabledBoolean that specifies the new enabled state.

isShiftRightwards

mxSpaceManager.prototype.isShiftRightwards = function()

Returns true if events are handled.  This implementation returns enabled.

setShiftRightwards

mxSpaceManager.prototype.setShiftRightwards = function(value)

Enables or disables event handling.  This implementation updates enabled.

Parameters

enabledBoolean that specifies the new enabled state.

isShiftDownwards

mxSpaceManager.prototype.isShiftDownwards = function()

Returns true if events are handled.  This implementation returns enabled.

setShiftDownwards

mxSpaceManager.prototype.setShiftDownwards = function(value)

Enables or disables event handling.  This implementation updates enabled.

Parameters

enabledBoolean that specifies the new enabled state.

isExtendParents

mxSpaceManager.prototype.isExtendParents = function()

Returns true if events are handled.  This implementation returns enabled.

setShiftDownwards

Enables or disables event handling.  This implementation updates enabled.

Parameters

enabledBoolean that specifies the new enabled state.

getGraph

mxSpaceManager.prototype.getGraph = function()

Returns the graph that this layout operates on.

setGraph

mxSpaceManager.prototype.setGraph = function(graph)

Sets the graph that the layouts operate on.

cellsResized

mxSpaceManager.prototype.cellsResized = function(cells)

Called from <moveCellsIntoParent> to invoke the <move> hook in the automatic layout of each modified cell’s parent.  The event is used to define the x- and y-coordinates passed to the move function.

Parameters

cellArray of mxCells that have been resized.

cellResized

mxSpaceManager.prototype.cellResized = function(cell)

Called from <moveCellsIntoParent> to invoke the <move> hook in the automatic layout of each modified cell’s parent.  The event is used to define the x- and y-coordinates passed to the move function.

Parameters

cellmxCell that has been resized.

shiftCell

mxSpaceManager.prototype.shiftCell = function(cell,
dx,
dy,
Ox0,
y0,
right,
bottom,
fx,
fy,
extendParent)

Called from <moveCellsIntoParent> to invoke the <move> hook in the automatic layout of each modified cell’s parent.  The event is used to define the x- and y-coordinates passed to the move function.

Parameters

cellArray of mxCells that have been moved.
evtMouse event that represents the mousedown.

getCellsToShift

mxSpaceManager.prototype.getCellsToShift = function(state)

Returns the cells to shift after a resize of the specified mxCellState.

destroy

mxSpaceManager.prototype.destroy = function()

Removes all handlers from the graph and deletes the reference to it.

function mxSpaceManager(graph,
shiftRightwards,
shiftDownwards,
extendParents)
Constructs a new automatic layout for the given graph.
mxSpaceManager.prototype.graph
Reference to the enclosing mxGraph.
Extends mxEventSource to implement a graph component for the browser.
mxSpaceManager.prototype.enabled
Specifies if event handling is enabled.
mxSpaceManager.prototype.shiftRightwards
Specifies if event handling is enabled.
mxSpaceManager.prototype.shiftDownwards
Specifies if event handling is enabled.
mxSpaceManager.prototype.extendParents
Specifies if event handling is enabled.
mxSpaceManager.prototype.resizeHandler
Holds the function that handles the move event.
mxSpaceManager.prototype.foldHandler
Holds the function that handles the fold event.
mxSpaceManager.prototype.isCellIgnored = function(cell)
Sets the graph that the layouts operate on.
mxSpaceManager.prototype.isCellShiftable = function(cell)
Sets the graph that the layouts operate on.
mxSpaceManager.prototype.isEnabled = function()
Returns true if events are handled.
mxSpaceManager.prototype.setEnabled = function(value)
Enables or disables event handling.
mxSpaceManager.prototype.isShiftRightwards = function()
Returns true if events are handled.
mxSpaceManager.prototype.setShiftRightwards = function(value)
Enables or disables event handling.
mxSpaceManager.prototype.isShiftDownwards = function()
Returns true if events are handled.
mxSpaceManager.prototype.setShiftDownwards = function(value)
Enables or disables event handling.
mxSpaceManager.prototype.isExtendParents = function()
Returns true if events are handled.
mxSpaceManager.prototype.getGraph = function()
Returns the graph that this layout operates on.
mxSpaceManager.prototype.setGraph = function(graph)
Sets the graph that the layouts operate on.
mxSpaceManager.prototype.cellsResized = function(cells)
Called from moveCellsIntoParent to invoke the move hook in the automatic layout of each modified cell’s parent.
mxSpaceManager.prototype.cellResized = function(cell)
Called from moveCellsIntoParent to invoke the move hook in the automatic layout of each modified cell’s parent.
mxSpaceManager.prototype.shiftCell = function(cell,
dx,
dy,
Ox0,
y0,
right,
bottom,
fx,
fy,
extendParent)
Called from moveCellsIntoParent to invoke the move hook in the automatic layout of each modified cell’s parent.
mxSpaceManager.prototype.getCellsToShift = function(state)
Returns the cells to shift after a resize of the specified mxCellState.
Represents the current state of a cell in a given mxGraphView.
mxSpaceManager.prototype.destroy = function()
Removes all handlers from the graph and deletes the reference to it.
Cells are the elements of the graph model.
Close