mxSelectionCellsHandler

An event handler that manages cell handlers and invokes their mouse event processing functions.

Summary
mxSelectionCellsHandlerAn event handler that manages cell handlers and invokes their mouse event processing functions.
Events
mxEvent.ADDFires if a cell has been added to the selection.
mxEvent.REMOVEFires if a cell has been remove from the selection.
graphReference to the enclosing mxGraph.
enabledSpecifies if events are handled.
refreshHandlerKeeps a reference to an event listener for later removal.
maxHandlersDefines the maximum number of handlers to paint individually.
handlersmxDictionary that maps from cells to handlers.
isEnabledReturns enabled.
setEnabledSets enabled.
getHandlerReturns the handler for the given cell.
isHandledReturns true if the given cell has a handler.
resetResets all handlers.
getHandledSelectionCellsReloads or updates all handlers.
refreshReloads or updates all handlers.
isHandlerActiveReturns true if the given handler is active and should not be redrawn.
updateHandlerUpdates the handler for the given shape if one exists.
mouseDownRedirects the given event to the handlers.
mouseMoveRedirects the given event to the handlers.
mouseUpRedirects the given event to the handlers.
destroyDestroys the handler and all its resources and DOM nodes.

Events

mxEvent.ADD

Fires if a cell has been added to the selection.  The <code>state</code> property contains the mxCellState that has been added.

mxEvent.REMOVE

Fires if a cell has been remove from the selection.  The <code>state</code> property contains the mxCellState that has been removed.

Parameters

graphReference to the enclosing mxGraph.

graph

mxSelectionCellsHandler.prototype.graph

Reference to the enclosing mxGraph.

enabled

mxSelectionCellsHandler.prototype.enabled

Specifies if events are handled.  Default is true.

refreshHandler

mxSelectionCellsHandler.prototype.refreshHandler

Keeps a reference to an event listener for later removal.

maxHandlers

mxSelectionCellsHandler.prototype.maxHandlers

Defines the maximum number of handlers to paint individually.  Default is 100.

handlers

mxSelectionCellsHandler.prototype.handlers

mxDictionary that maps from cells to handlers.

isEnabled

mxSelectionCellsHandler.prototype.isEnabled = function()

Returns enabled.

setEnabled

mxSelectionCellsHandler.prototype.setEnabled = function(value)

Sets enabled.

getHandler

mxSelectionCellsHandler.prototype.getHandler = function(cell)

Returns the handler for the given cell.

isHandled

mxSelectionCellsHandler.prototype.isHandled = function(cell)

Returns true if the given cell has a handler.

reset

mxSelectionCellsHandler.prototype.reset = function()

Resets all handlers.

getHandledSelectionCells

mxSelectionCellsHandler.prototype.getHandledSelectionCells = function()

Reloads or updates all handlers.

refresh

mxSelectionCellsHandler.prototype.refresh = function()

Reloads or updates all handlers.

isHandlerActive

mxSelectionCellsHandler.prototype.isHandlerActive = function(handler)

Returns true if the given handler is active and should not be redrawn.

updateHandler

mxSelectionCellsHandler.prototype.updateHandler = function(state)

Updates the handler for the given shape if one exists.

mouseDown

mxSelectionCellsHandler.prototype.mouseDown = function(sender,
me)

Redirects the given event to the handlers.

mouseMove

mxSelectionCellsHandler.prototype.mouseMove = function(sender,
me)

Redirects the given event to the handlers.

mouseUp

mxSelectionCellsHandler.prototype.mouseUp = function(sender,
me)

Redirects the given event to the handlers.

destroy

mxSelectionCellsHandler.prototype.destroy = function()

Destroys the handler and all its resources and DOM nodes.

mxSelectionCellsHandler.prototype.graph
Reference to the enclosing mxGraph.
Extends mxEventSource to implement a graph component for the browser.
mxSelectionCellsHandler.prototype.enabled
Specifies if events are handled.
mxSelectionCellsHandler.prototype.refreshHandler
Keeps a reference to an event listener for later removal.
mxSelectionCellsHandler.prototype.maxHandlers
Defines the maximum number of handlers to paint individually.
mxSelectionCellsHandler.prototype.handlers
mxDictionary that maps from cells to handlers.
A wrapper class for an associative array with object keys.
mxSelectionCellsHandler.prototype.isEnabled = function()
Returns enabled.
mxSelectionCellsHandler.prototype.setEnabled = function(value)
Sets enabled.
mxSelectionCellsHandler.prototype.getHandler = function(cell)
Returns the handler for the given cell.
mxSelectionCellsHandler.prototype.isHandled = function(cell)
Returns true if the given cell has a handler.
mxSelectionCellsHandler.prototype.reset = function()
Resets all handlers.
mxSelectionCellsHandler.prototype.getHandledSelectionCells = function()
Reloads or updates all handlers.
mxSelectionCellsHandler.prototype.refresh = function()
Reloads or updates all handlers.
mxSelectionCellsHandler.prototype.isHandlerActive = function(handler)
Returns true if the given handler is active and should not be redrawn.
mxSelectionCellsHandler.prototype.updateHandler = function(state)
Updates the handler for the given shape if one exists.
mxSelectionCellsHandler.prototype.mouseDown = function(sender,
me)
Redirects the given event to the handlers.
mxSelectionCellsHandler.prototype.mouseMove = function(sender,
me)
Redirects the given event to the handlers.
mxSelectionCellsHandler.prototype.mouseUp = function(sender,
me)
Redirects the given event to the handlers.
mxSelectionCellsHandler.prototype.destroy = function()
Destroys the handler and all its resources and DOM nodes.
Represents the current state of a cell in a given mxGraphView.
Close