<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxCellMarker"></a>mxCellMarker</h1><divclass=CBody><p>A helper class to process mouse locations and highlight cells.</p><p>Helper class to highlight cells. To add a cell marker to an existing graph for highlighting all cells, the following code is used:</p><blockquote><preclass="prettyprint">var marker = new mxCellMarker(graph);
graph.addMouseListener({
mouseDown: function() {},
mouseMove: function(sender, me)
{
marker.process(me);
},
mouseUp: function() {}
});</pre></blockquote><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxCellMarker">mxCellMarker</a></td><tdclass=SDescription>A helper class to process mouse locations and highlight cells.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxCellMarker.Events">Events</a></td><tdclass=SDescription></td></tr><trclass="SEvent SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellMarker.mxEvent.MARK">mxEvent.MARK</a></td><tdclass=SDescription>Fires after a cell has been marked or unmarked. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxCellMarker.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellMarker.mxCellMarker"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxCellMarker</a></td><tdclass=SDescription>Constructs a new cell marker.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxCellMarker.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellMarker.graph"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">graph</a></td><tdclass=SDescription>Reference to the enclosing <ahref="../view/mxGraph-js.html#mxGraph"class=LClassid=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">mxGraph</a>.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCellMarker.enabled"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">enabled</a></td><tdclass=SDescription>Specifies if the marker is enabled. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellMarker.hotspot"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">hotspot</a></td><tdclass=SDescription>Specifies the portion of the width and height that should trigger a highlight. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCellMarker.hotspotEnabled"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">hotspotEnabled</a></td><tdclass=SDescription>Specifies if the hotspot is enabled. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellMarker.validColor"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">validColor</a></td><tdclass=SDescription>Holds the valid marker color.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCellMarker.invalidColor"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">invalidColor</a></td><tdclass=SDescription>Holds the invalid marker color.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellMarker.currentColor"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">currentColor</a></td><tdclass=SDescription>Holds the current marker color.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxCellMarker.validState"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">validState</a></td><tdclass=SDescription>Holds the marked <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">mxCellState</a> if it is valid.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxCellMarker.markedState"id=link12onMouseOver="ShowTip(event, 'tt12', 'link12')"onMouseOut="HideTip('tt12')">markedState</a></td><tdclass=SDescription>Holds the marked <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link13onMouseOver="ShowTip(event, 'tt11', 'link13')"onMouseOut="HideTip('tt11')">mxCellState</a>.</td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxCellMarker.Functions">Functions</a></td><tdclass=SDescri
<divclass="CEvent"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.mxEvent.MARK"></a>mxEvent.MARK</h3><divclass=CBody><p>Fires after a cell has been marked or unmarked. The <code>state</code> property contains the marked <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link57onMouseOver="ShowTip(event, 'tt11', 'link57')"onMouseOut="HideTip('tt11')">mxCellState</a> or null if no state is marked.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.mxCellMarker"></a>mxCellMarker</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxCellMarker(</td><tdclass=PParameternowrap>graph,</td></tr><tr><td></td><tdclass=PParameternowrap>validColor,</td></tr><tr><td></td><tdclass=PParameternowrap>invalidColor,</td></tr><tr><td></td><tdclass=PParameternowrap>hotspot</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Constructs a new cell marker.</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=link58onMouseOver="ShowTip(event, 'tt3', 'link58')"onMouseOut="HideTip('tt3')">mxGraph</a>.</td></tr><tr><tdclass=CDLEntry>validColor</td><tdclass=CDLDescription>Optional marker color for valid states. Default is <ahref="../util/mxConstants-js.html#mxConstants.DEFAULT_VALID_COLOR"class=LVariableid=link59onMouseOver="ShowTip(event, 'tt36', 'link59')"onMouseOut="HideTip('tt36')">mxConstants.DEFAULT_VALID_COLOR</a>.</td></tr><tr><tdclass=CDLEntry>invalidColor</td><tdclass=CDLDescription>Optional marker color for invalid states. Default is <ahref="../util/mxConstants-js.html#mxConstants.DEFAULT_INVALID_COLOR"class=LVariableid=link60onMouseOver="ShowTip(event, 'tt37', 'link60')"onMouseOut="HideTip('tt37')">mxConstants.DEFAULT_INVALID_COLOR</a>.</td></tr><tr><tdclass=CDLEntry>hotspot</td><tdclass=CDLDescription>Portion of the width and hight where a state intersects a given coordinate pair. A value of 0 means always highlight. Default is <ahref="../util/mxConstants-js.html#mxConstants.DEFAULT_HOTSPOT"class=LVariableid=link61onMouseOver="ShowTip(event, 'tt38', 'link61')"onMouseOut="HideTip('tt38')">mxConstants.DEFAULT_HOTSPOT</a>.</td></tr></table></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.graph"></a>graph</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.graph</td></tr></table></blockquote><p>Reference to the enclosing <ahref="../view/mxGraph-js.html#mxGraph"class=LClassid=link62onMouseOver="ShowTip(event, 'tt3', 'link62')"onMouseOut="HideTip('tt3')">mxGraph</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.enabled"></a>enabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.enabled</td></tr></table></blockquote><p>Specifies if the marker is enabled. Default is true.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.hotspot"></a>hotspot</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.hotspot</td></tr></table></blockquote><p>Specifies the portion of the width and height that should trigger a highlight. The area around the center of the cell to be marked is used as the hotspot. Possible values are between 0 and 1. Default is mxConstants.DEFAULT_HOTSPOT.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.hotspotEnabled"></a>hotspotEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.hotspotEnabled</td></tr></table></blockquote><p>Specifies if the hotspot is enabled. Default is false.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.validColor"></a>validColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.validColor</td></tr></table></blockquote><p>Holds the valid marker color.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.invalidColor"></a>invalidColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.invalidColor</td></tr></table></blockquote><p>Holds the invalid marker color.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.currentColor"></a>currentColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.currentColor</td></tr></table></blockquote><p>Holds the current marker color.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.validState"></a>validState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.validState</td></tr></table></blockquote><p>Holds the marked <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link63onMouseOver="ShowTip(event, 'tt11', 'link63')"onMouseOut="HideTip('tt11')">mxCellState</a> if it is valid.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.markedState"></a>markedState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.markedState</td></tr></table></blockquote><p>Holds the marked <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link64onMouseOver="ShowTip(event, 'tt11', 'link64')"onMouseOut="HideTip('tt11')">mxCellState</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.setEnabled"></a>setEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.setEnabled = function(</td><tdclass=PParameternowrap>enabled</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables event handling. This implementation updates <ahref="#mxCellMarker.enabled"class=LVariableid=link65onMouseOver="ShowTip(event, 'tt4', 'link65')"onMouseOut="HideTip('tt4')">enabled</a>.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>enabled</td><tdclass=CDLDescription>Boolean that specifies the new enabled state.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.isEnabled"></a>isEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.isEnabled = function()</td></tr></table></blockquote><p>Returns true if events are handled. This implementation returns <ahref="#mxCellMarker.enabled"class=LVariableid=link66onMouseOver="ShowTip(event, 'tt4', 'link66')"onMouseOut="HideTip('tt4')">enabled</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.setHotspot"></a>setHotspot</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.setHotspot = function(</td><tdclass=PParameternowrap>hotspot</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the <ahref="#mxCellMarker.hotspot"class=LVariableid=link67onMouseOver="ShowTip(event, 'tt5', 'link67')"onMouseOut="HideTip('tt5')">hotspot</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.getHotspot"></a>getHotspot</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.getHotspot = function()</td></tr></table></blockquote><p>Returns the <ahref="#mxCellMarker.hotspot"class=LVariableid=link68onMouseOver="ShowTip(event, 'tt5', 'link68')"onMouseOut="HideTip('tt5')">hotspot</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.setHotspotEnabled"></a>setHotspotEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.setHotspotEnabled = function(</td><tdclass=PParameternowrap>enabled</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Specifies whether the hotspot should be used in <ahref="#mxCellMarker.intersects"class=LFunctionid=link69onMouseOver="ShowTip(event, 'tt18', 'link69')"onMouseOut="HideTip('tt18')">intersects</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.isHotspotEnabled"></a>isHotspotEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.isHotspotEnabled = function()</td></tr></table></blockquote><p>Returns true if hotspot is used in <ahref="#mxCellMarker.intersects"class=LFunctionid=link70onMouseOver="ShowTip(event, 'tt18', 'link70')"onMouseOut="HideTip('tt18')">intersects</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.hasValidState"></a>hasValidState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.hasValidState = function()</td></tr></table></blockquote><p>Returns true if <ahref="#mxCellMarker.validState"class=LVariableid=link71onMouseOver="ShowTip(event, 'tt10', 'link71')"onMouseOut="HideTip('tt10')">validState</a> is not null.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.getValidState"></a>getValidState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.getValidState = function()</td></tr></table></blockquote><p>Returns the <ahref="#mxCellMarker.validState"class=LVariableid=link72onMouseOver="ShowTip(event, 'tt10', 'link72')"onMouseOut="HideTip('tt10')">validState</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.getMarkedState"></a>getMarkedState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.getMarkedState = function()</td></tr></table></blockquote><p>Returns the <ahref="#mxCellMarker.markedState"class=LVariableid=link73onMouseOver="ShowTip(event, 'tt12', 'link73')"onMouseOut="HideTip('tt12')">markedState</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.reset"></a>reset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.reset = function()</td></tr></table></blockquote><p>Resets the state of the cell marker.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.process"></a>process</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.process = function(</td><tdclass=PParameternowrap>me</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Processes the given event and cell and marks the state returned by <ahref="#mxCellMarker.getState"class=LFunctionid=link74onMouseOver="ShowTip(event, 'tt25', 'link74')"onMouseOut="HideTip('tt25')">getState</a> with the color returned by <ahref="#mxCellMarker.getMarkerColor"class=LFunctionid=link75onMouseOver="ShowTip(event, 'tt26', 'link75')"onMouseOut="HideTip('tt26')">getMarkerColor</a>. If the markerColor is not null, then the state is stored in <ahref="#mxCellMarker.markedState"class=LVariableid=link76onMouseOver="ShowTip(event, 'tt12', 'link76')"onMouseOut="HideTip('tt12')">markedState</a>. If <ahref="#mxCellMarker.isValidState"class=LFunctionid=link77onMouseOver="ShowTip(event, 'tt30', 'link77')"onMouseOut="HideTip('tt30')">isValidState</a> returns true, then the state is stored in <ahref="#mxCellMarker.validState"class=LVariableid=link78onMouseOver="ShowTip(event, 'tt10', 'link78')"onMouseOut="HideTip('tt10')">validState</a> regardless of the marker color. The state is returned regardless of the marker color and valid state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.markCell"></a>markCell</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.markCell = function(</td><tdclass=PParameternowrap>cell,</td></tr><tr><td></td><tdclass=PParameternowrap>color</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Marks the given cell using the given color, or <ahref="#mxCellMarker.validColor"class=LVariableid=link79onMouseOver="ShowTip(event, 'tt7', 'link79')"onMouseOut="HideTip('tt7')">validColor</a> if no color is specified.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.mark"></a>mark</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.mark = function()</td></tr></table></blockquote><p>Marks the <ahref="#mxCellMarker.markedState"class=LVariableid=link80onMouseOver="ShowTip(event, 'tt12', 'link80')"onMouseOut="HideTip('tt12')">markedState</a> and fires a <ahref="#mxCellMarker.mark"class=LFunctionid=link81onMouseOver="ShowTip(event, 'tt28', 'link81')"onMouseOut="HideTip('tt28')">mark</a> event.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.unmark"></a>unmark</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.unmark = function()</td></tr></table></blockquote><p>Hides the marker and fires a <ahref="#mxCellMarker.mark"class=LFunctionid=link82onMouseOver="ShowTip(event, 'tt28', 'link82')"onMouseOut="HideTip('tt28')">mark</a> event.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.isValidState"></a>isValidState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.isValidState = function(</td><tdclass=PParameternowrap>state</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link83onMouseOver="ShowTip(event, 'tt11', 'link83')"onMouseOut="HideTip('tt11')">mxCellState</a> is a valid state. If this returns true, then the state is stored in <ahref="#mxCellMarker.validState"class=LVariableid=link84onMouseOver="ShowTip(event, 'tt10', 'link84')"onMouseOut="HideTip('tt10')">validState</a>. The return value of this method is used as the argument for <ahref="#mxCellMarker.getMarkerColor"class=LFunctionid=link85onMouseOver="ShowTip(event, 'tt26', 'link85')"onMouseOut="HideTip('tt26')">getMarkerColor</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.getMarkerColor"></a>getMarkerColor</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.getMarkerColor = function(</td><tdclass=PParameternowrap>evt,</td></tr><tr><td></td><tdclass=PParameternowrap>state,</td></tr><tr><td></td><tdclass=PParameternowrap>isValid</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the valid- or invalidColor depending on the value of isValid. The given <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link86onMouseOver="ShowTip(event, 'tt11', 'link86')"onMouseOut="HideTip('tt11')">mxCellState</a> is ignored by this implementation.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.getState"></a>getState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.getState = function(</td><tdclass=PParameternowrap>me</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Uses <ahref="#mxCellMarker.getCell"class=LFunctionid=link87onMouseOver="ShowTip(event, 'tt31', 'link87')"onMouseOut="HideTip('tt31')">getCell</a>, <ahref="#mxCellMarker.getStateToMark"class=LFunctionid=link88onMouseOver="ShowTip(event, 'tt32', 'link88')"onMouseOut="HideTip('tt32')">getStateToMark</a> and <ahref="#mxCellMarker.intersects"class=LFunctionid=link89onMouseOver="ShowTip(event, 'tt18', 'link89')"onMouseOut="HideTip('tt18')">intersects</a> to return the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link90onMouseOver="ShowTip(event, 'tt11', 'link90')"onMouseOut="HideTip('tt11')">mxCellState</a> for the given <ahref="../util/mxMouseEvent-js.html#mxMouseEvent"class=LClassid=link91onMouseOver="ShowTip(event, 'tt33', 'link91')"onMouseOut="HideTip('tt33')">mxMouseEvent</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.getCell"></a>getCell</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.getCell = function(</td><tdclass=PParameternowrap>me</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <ahref="../model/mxCell-js.html#mxCell"class=LClassid=link92onMouseOver="ShowTip(event, 'tt34', 'link92')"onMouseOut="HideTip('tt34')">mxCell</a> for the given event and cell. This returns the given cell.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.getStateToMark"></a>getStateToMark</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.getStateToMark = function(</td><tdclass=PParameternowrap>state</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link93onMouseOver="ShowTip(event, 'tt11', 'link93')"onMouseOut="HideTip('tt11')">mxCellState</a> to be marked for the given <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link94onMouseOver="ShowTip(event, 'tt11', 'link94')"onMouseOut="HideTip('tt11')">mxCellState</a> under the mouse. This returns the given state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.intersects"></a>intersects</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.intersects = function(</td><tdclass=PParameternowrap>state,</td></tr><tr><td></td><tdclass=PParameternowrap>me</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given coordinate pair intersects the given state. This returns true if the <ahref="#mxCellMarker.hotspot"class=LVariableid=link95onMouseOver="ShowTip(event, 'tt5', 'link95')"onMouseOut="HideTip('tt5')">hotspot</a> is 0 or the coordinates are inside the hotspot for the given cell state.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.destroy"></a>destroy</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.destroy = function()</td></tr></table></blockquote><p>Destroys the handler and all its resources and DOM nodes.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>function mxCellMarker(</td><tdclass=PParameternowrap>graph,</td></tr><tr><td></td><tdclass=PParameternowrap>validColor,</td></tr><tr><td></td><tdclass=PParameternowrap>invalidColor,</td></tr><tr><td></td><tdclass=PParameternowrap>hotspot</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Constructs a new cell marker.</div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.graph</td></tr></table></blockquote>Reference to the enclosing mxGraph.</div></div><divclass=CToolTipid="tt3"><divclass=CClass>Extends mxEventSource to implement a graph component for the browser. </div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.enabled</td></tr></table></blockquote>Specifies if the marker is enabled. </div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.hotspot</td></tr></table></blockquote>Specifies the portion of the width and height that should trigger a highlight. </div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.hotspotEnabled</td></tr></table></blockquote>Specifies if the hotspot is enabled. </div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.validColor</td></tr></table></blockquote>Holds the valid marker color.</div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.invalidColor</td></tr></table></blockquote>Holds the invalid marker color.</div></div><divclass=CToolTipid="tt9"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.currentColor</td></tr></table></blockquote>Holds the current marker color.</div></div><divclass=CToolTipid="tt10"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.validState</td></tr></table></blockquote>Holds the marked mxCellState if it is valid.</div></div><divclass=CToolTipid="tt11"><divclass=CClass>Represents the current state of a cell in a given mxGraphView.</div></div><divclass=CToolTipid="tt12"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.markedState</td></tr></table></blockquote>Holds the marked mxCellState.</div></div><divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>mxCellMarker.prototype.setEnabled = function(</td><tdclass=PParameternowrap>enabled</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Enables or disables event handling. </div></div><divclass=CToolTipid="tt14"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>mxCellMarker.prototype.isEnabled = function()</td></tr></table></blockquote>Returns true if events are handled. </div></div><divclass=CToolTipid="tt15"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr