<!-- 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);
});</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=link58onMouseOver="ShowTip(event, 'tt11', 'link58')"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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxCellMarker(</td><tdclass="PParameter prettyprint "nowrap>graph,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>validColor,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>invalidColor,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>hotspot</td><tdclass="PAfterParameters prettyprint "nowrap>)</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=link59onMouseOver="ShowTip(event, 'tt3', 'link59')"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=link60onMouseOver="ShowTip(event, 'tt37', 'link60')"onMouseOut="HideTip('tt37')">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=link61onMouseOver="ShowTip(event, 'tt38', 'link61')"onMouseOut="HideTip('tt38')">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=link62onMouseOver="ShowTip(event, 'tt39', 'link62')"onMouseOut="HideTip('tt39')">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"><tr><tdclass="prettyprint">mxCellMarker.prototype.graph</td></tr></table></blockquote><p>Reference to the enclosing <ahref="../view/mxGraph-js.html#mxGraph"class=LClassid=link63onMouseOver="ShowTip(event, 'tt3', 'link63')"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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">mxCellMarker.prototype.validState</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> if it is valid.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.setEnabled"></a>setEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.setEnabled = function(</td><tdclass="PParameter prettyprint "nowrap>enabled</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Enables or disables event handling. This implementation updates <ahref="#mxCellMarker.enabled"class=LVariableid=link66onMouseOver="ShowTip(event, 'tt4', 'link66')"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"><tr><tdclass="prettyprint">mxCellMarker.prototype.isEnabled = function()</td></tr></table></blockquote><p>Returns true if events are handled. This implementation returns <ahref="#mxCellMarker.enabled"class=LVariableid=link67onMouseOver="ShowTip(event, 'tt4', 'link67')"onMouseOut="HideTip('tt4')">enabled</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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.setHotspotEnabled = function(</td><tdclass="PParameter prettyprint "nowrap>enabled</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Specifies whether the hotspot should be 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.isHotspotEnabled"></a>isHotspotEnabled</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">mxCellMarker.prototype.isHotspotEnabled = function()</td></tr></table></blockquote><p>Returns true if hotspot is used in <ahref="#mxCellMarker.intersects"class=LFunctionid=link71onMouseOver="ShowTip(event, 'tt18', 'link71')"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"><tr><tdclass="prettyprint">mxCellMarker.prototype.hasValidState = function()</td></tr></table></blockquote><p>Returns true if <ahref="#mxCellMarker.validState"class=LVariableid=link72onMouseOver="ShowTip(event, 'tt10', 'link72')"onMouseOut="HideTip('tt10')">validState</a> is not null.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.reset"></a>reset</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><tdclass="prettyprint">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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.process = function(</td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</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=link75onMouseOver="ShowTip(event, 'tt25', 'link75')"onMouseOut="HideTip('tt25')">getState</a> with the color returned by <ahref="#mxCellMarker.getMarkerColor"class=LFunctionid=link76onMouseOver="ShowTip(event, 'tt26', 'link76')"onMouseOut="HideTip('tt26')">getMarkerColor</a>. If the markerColor is not null, then the state is stored in <ahref="#mxCellMarker.markedState"class=LVariableid=link77onMouseOver="ShowTip(event, 'tt12', 'link77')"onMouseOut="HideTip('tt12')">markedState</a>. If <ahref="#mxCellMarker.isValidState"class=LFunctionid=link78onMouseOver="ShowTip(event, 'tt31', 'link78')"onMouseOut="HideTip('tt31')">isValidState</a> returns true, then the state is stored in <ahref="#mxCellMarker.validState"class=LVariableid=link79onMouseOver="ShowTip(event, 'tt10', 'link79')"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.setCurrentState"></a>setCurrentState</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.setCurrentState = function(</td><tdclass="PParameter prettyprint "nowrap>state,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>me,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>color</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets and marks the current 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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.markCell = function(</td><tdclass="PParameter prettyprint "nowrap>cell,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>color</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Marks the given cell using the given color, or <ahref="#mxCellMarker.validColor"class=LVariableid=link80onMouseOver="ShowTip(event, 'tt7', 'link80')"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"><tr><tdclass="prettyprint">mxCellMarker.prototype.mark = function()</td></tr></table></blockquote><p>Marks the <ahref="#mxCellMarker.markedState"class=LVariableid=link81onMouseOver="ShowTip(event, 'tt12', 'link81')"onMouseOut="HideTip('tt12')">markedState</a> and fires a <ahref="#mxCellMarker.mark"class=LFunctionid=link82onMouseOver="ShowTip(event, 'tt29', 'link82')"onMouseOut="HideTip('tt29')">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"><tr><tdclass="prettyprint">mxCellMarker.prototype.unmark = function()</td></tr></table></blockquote><p>Hides the marker and fires a <ahref="#mxCellMarker.mark"class=LFunctionid=link83onMouseOver="ShowTip(event, 'tt29', 'link83')"onMouseOut="HideTip('tt29')">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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.isValidState = function(</td><tdclass="PParameter prettyprint "nowrap>state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link84onMouseOver="ShowTip(event, 'tt11', 'link84')"onMouseOut="HideTip('tt11')">mxCellState</a> is a valid state. If this returns true, then the state is stored in <ahref="#mxCellMarker.validState"class=LVariableid=link85onMouseOver="ShowTip(event, 'tt10', 'link85')"onMouseOut="HideTip('tt10')">validState</a>. The return value of this method is used as the argument for <ahref="#mxCellMarker.getMarkerColor"class=LFunctionid=link86onMouseOver="ShowTip(event, 'tt26', 'link86')"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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.getMarkerColor = function(</td><tdclass="PParameter prettyprint "nowrap>evt,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>state,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>isValid</td><tdclass="PAfterParameters prettyprint "nowrap>)</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=link87onMouseOver="ShowTip(event, 'tt11', 'link87')"onMouseOut="HideTip('tt11')">mxCellState</a> is ignored by this implementation.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxCellMarker.getCell"></a>getCell</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.getCell = function(</td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <ahref="../model/mxCell-js.html#mxCell"class=LClassid=link93onMouseOver="ShowTip(event, 'tt35', 'link93')"onMouseOut="HideTip('tt35')">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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.getStateToMark = function(</td><tdclass="PParameter prettyprint "nowrap>state</td><tdclass="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link94onMouseOver="ShowTip(event, 'tt11', 'link94')"onMouseOut="HideTip('tt11')">mxCellState</a> to be marked for the given <ahref="../view/mxCellState-js.html#mxCellState"class=LClassid=link95onMouseOver="ShowTip(event, 'tt11', 'link95')"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"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.intersects = function(</td><tdclass="PParameter prettyprint "nowrap>state,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>me</td><tdclass="PAfterParameters prettyprint "nowrap>)</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=link96onMouseOver="ShowTip(event, 'tt5', 'link96')"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"><tr><tdclass="prettyprint">mxCellMarker.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=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>function mxCellMarker(</td><tdclass="PParameter prettyprint "nowrap>graph,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>validColor,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>invalidColor,</td></tr><tr><td></td><tdclass="PParameter prettyprint "nowrap>hotspot</td><tdclass="PAfterParameters prettyprint "nowrap>)</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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">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"><tr><tdclass="prettyprint">mxCellMarker.prototype.markedState</td></tr></table></blockquote>Holds the marked mxCellState.</div></div><divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass="PBeforeParameters prettyprint "nowrap>mxCellMarker.prototype.setEnabled = function(</td><tdclass="PParameter prettyprint "nowrap>enabled</td><tdclass="PAfterParameters prettyprint "nowrap>)</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"><tr><tdclass="prettyprint">mxCellMarker.prototype.isEnabled = function()</td></tr></table></blockquote>Returns true if events are handled. </div></