<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxSelectionCellsHandler"></a>mxSelectionCellsHandler</h1><divclass=CBody><p>An event handler that manages cell handlers and invokes their mouse event processing functions.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxSelectionCellsHandler">mxSelectionCellsHandler</a></td><tdclass=SDescription>An event handler that manages cell handlers and invokes their mouse event processing functions.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.Events">Events</a></td><tdclass=SDescription></td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.mxEvent.ADD">mxEvent.ADD</a></td><tdclass=SDescription>Fires if a cell has been added to the selection. </td></tr><trclass="SEvent SIndent2"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.mxEvent.REMOVE">mxEvent.<wbr>REMOVE</a></td><tdclass=SDescription>Fires if a cell has been remove from the selection. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.graph"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">graph</a></td><tdclass=SDescription>Reference to the enclosing <ahref="../view/mxGraph-js.html#mxGraph"class=LClassid=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxGraph</a>.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.enabled"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">enabled</a></td><tdclass=SDescription>Specifies if events are handled. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.refreshHandler"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">refreshHandler</a></td><tdclass=SDescription>Keeps a reference to an event listener for later removal.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.maxHandlers"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">maxHandlers</a></td><tdclass=SDescription>Defines the maximum number of handlers to paint individually. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.handlers"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">handlers</a></td><tdclass=SDescription><ahref="../util/mxDictionary-js.html#mxDictionary"class=LClassid=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">mxDictionary</a> that maps from cells to handlers.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.isEnabled"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">isEnabled</a></td><tdclass=SDescription>Returns <ahref="#mxSelectionCellsHandler.enabled"class=LVariableid=link9onMouseOver="ShowTip(event, 'tt3', 'link9')"onMouseOut="HideTip('tt3')">enabled</a>.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.setEnabled"id=link10onMouseOver="ShowTip(event, 'tt9', 'link10')"onMouseOut="HideTip('tt9')">setEnabled</a></td><tdclass=SDescription>Sets <ahref="#mxSelectionCellsHandler.enabled"class=LVariableid=link11onMouseOver="ShowTip(event, 'tt3', 'link11')"onMouseOut="HideTip('tt3')">enabled</a>.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.getHandler"id=link12onMouseOver="ShowTip(event, 'tt10', 'link12')"onMouseOut="HideTip('tt10')">getHandler</a></td><tdclass=SDescription>Returns the handler for the given cell.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxSelectionCellsHandler.reset"id=link13onMouseOver="ShowTip(event, 'tt11', 'link13')"onMouseOu
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.mxEvent.ADD"></a>mxEvent.ADD</h3><divclass=CBody><p>Fires if a cell has been added to the selection. The <code>state</code> property contains the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link20onMouseOver="ShowTip(event, 'tt18', 'link20')"onMouseOut="HideTip('tt18')">mxCellState</a> that has been added.</p></div></div></div>
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.mxEvent.REMOVE"></a>mxEvent.<wbr>REMOVE</h3><divclass=CBody><p>Fires if a cell has been remove from the selection. The <code>state</code> property contains the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link21onMouseOver="ShowTip(event, 'tt18', 'link21')"onMouseOut="HideTip('tt18')">mxCellState</a> that has been removed.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>graph</td><tdclass=CDLDescription>Reference to the enclosing <ahref="../view/mxGraph-js.html#mxGraph"class=LClassid=link22onMouseOver="ShowTip(event, 'tt2', 'link22')"onMouseOut="HideTip('tt2')">mxGraph</a>.</td></tr></table></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.graph"></a>graph</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.graph</td></tr></table></blockquote><p>Reference to the enclosing <ahref="../view/mxGraph-js.html#mxGraph"class=LClassid=link23onMouseOver="ShowTip(event, 'tt2', 'link23')"onMouseOut="HideTip('tt2')">mxGraph</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.enabled"></a>enabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.enabled</td></tr></table></blockquote><p>Specifies if events are handled. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.refreshHandler"></a>refreshHandler</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.refreshHandler</td></tr></table></blockquote><p>Keeps a reference to an event listener for later removal.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.maxHandlers"></a>maxHandlers</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.maxHandlers</td></tr></table></blockquote><p>Defines the maximum number of handlers to paint individually. Default is 100.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.handlers"></a>handlers</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.handlers</td></tr></table></blockquote><p><ahref="../util/mxDictionary-js.html#mxDictionary"class=LClassid=link24onMouseOver="ShowTip(event, 'tt7', 'link24')"onMouseOut="HideTip('tt7')">mxDictionary</a> that maps from cells to handlers.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.getHandler"></a>getHandler</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxSelectionCellsHandler.prototype.getHandler = function(</td><tdclass="PParameter prettyprint "nowrap>cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the handler for the given cell.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.reset"></a>reset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.reset = function()</td></tr></table></blockquote><p>Resets all handlers.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.refresh"></a>refresh</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.refresh = function()</td></tr></table></blockquote><p>Reloads or updates all handlers.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.updateHandler"></a>updateHandler</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxSelectionCellsHandler.prototype.updateHandler = function(</td><tdclass="PParameter prettyprint "nowrap>state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Updates the handler for the given shape if one exists.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.mouseDown"></a>mouseDown</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxSelectionCellsHandler.prototype.mouseDown = function(</td><tdclass="PParameter prettyprint "nowrap>sender,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Redirects the given event to the handlers.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.mouseMove"></a>mouseMove</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxSelectionCellsHandler.prototype.mouseMove = function(</td><tdclass="PParameter prettyprint "nowrap>sender,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Redirects the given event to the handlers.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.mouseUp"></a>mouseUp</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxSelectionCellsHandler.prototype.mouseUp = function(</td><tdclass="PParameter prettyprint "nowrap>sender,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Redirects the given event to the handlers.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxSelectionCellsHandler.destroy"></a>destroy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.destroy = function()</td></tr></table></blockquote><p>Destroys the handler and all its resources and DOM nodes.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.graph</td></tr></table></blockquote>Reference to the enclosing mxGraph.</div></div><divclass=CToolTipid="tt2"><divclass=CClass>Extends mxEventSource to implement a graph component for the browser. </div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.enabled</td></tr></table></blockquote>Specifies if events are handled. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.refreshHandler</td></tr></table></blockquote>Keeps a reference to an event listener for later removal.</div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.maxHandlers</td></tr></table></blockquote>Defines the maximum number of handlers to paint individually. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.handlers</td></tr></table></blockquote>mxDictionary that maps from cells to handlers.</div></div><divclass=CToolTipid="tt7"><divclass=CClass>A wrapper class for an associative array with object keys. </div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.isEnabled = function()</td></tr></table></blockquote>Returns enabled.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxSelectionCellsHandler.prototype.setEnabled = function(</td><tdclass="PParameter prettyprint "nowrap>value</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets enabled.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxSelectionCellsHandler.prototype.getHandler = function(</td><tdclass="PParameter prettyprint "nowrap>cell</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the handler for the given cell.</div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.reset = function()</td></tr></table></blockquote>Resets all handlers.</div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxSelectionCellsHandler.prototype.refresh = function()</td></tr></table></blockquote>Reloads or updates all handlers.</div></div><divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxSelectionCellsHandler.prototype.updateHandler = function(</td><tdclass="PParameter prettyprint "nowrap>state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Updates the handler for the given shape if one exists.</div></div><divclass=CToolTipid="tt14"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><