maxGraph/java/docs/com/mxgraph/swing/handler/mxCellMarker.html

1419 lines
63 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (10.0.2) on Fri Dec 14 12:03:14 UTC 2018 -->
<title>mxCellMarker (mxGraph 3.9.12 API Specification)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="date" content="2018-12-14">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="mxCellMarker (mxGraph 3.9.12 API Specification)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxCellMarker.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><p><b>mxGraph 3.9.12</b></p></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/mxgraph/swing/handler/mxCellHandler.html" title="class in com.mxgraph.swing.handler"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/mxgraph/swing/handler/mxCellTracker.html" title="class in com.mxgraph.swing.handler"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/mxgraph/swing/handler/mxCellMarker.html" target="_top">Frames</a></li>
<li><a href="mxCellMarker.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.javax.swing.JComponent">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="../../../../com/mxgraph/swing/handler/package-summary.html">com.mxgraph.swing.handler</a></div>
<h2 title="Class mxCellMarker" class="title">Class mxCellMarker</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>java.awt.Component</li>
<li>
<ul class="inheritance">
<li>java.awt.Container</li>
<li>
<ul class="inheritance">
<li>javax.swing.JComponent</li>
<li>
<ul class="inheritance">
<li>com.mxgraph.swing.handler.mxCellMarker</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code>java.awt.image.ImageObserver</code>, <code>java.awt.MenuContainer</code>, <code>java.io.Serializable</code></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><code><a href="../../../../com/mxgraph/swing/handler/mxCellTracker.html" title="class in com.mxgraph.swing.handler">mxCellTracker</a></code></dd>
</dl>
<hr>
<pre>public class <span class="typeNameLabel">mxCellMarker</span>
extends javax.swing.JComponent</pre>
<div class="block">Implements a mouse tracker that marks cells under the mouse.
This class fires the following event:
mxEvent.MARK fires in mark and unmark to notify the listener of a new cell
under the mouse. The <code>state</code> property contains the mxCellState
of the respective cell or null if no cell is under the mouse.
To create a cell marker which highlights cells "in-place", the following
code can be used:
<code>
mxCellMarker highlighter = new mxCellMarker(graphComponent) {
protected Map<String, Object> lastStyle;
public mxCellState process(MouseEvent e)
{
mxCellState state = null;
if (isEnabled())
{
state = getState(e);
boolean isValid = (state != null) ? isValidState(state) : false;
if (!isValid)
{
state = null;
}
highlight(state);
}
return state;
}
public void highlight(mxCellState state)
{
if (validState != state)
{
Rectangle dirty = null;
if (validState != null)
{
validState.setStyle(lastStyle);
dirty = validState.getBoundingBox().getRectangle();
dirty.grow(4, 4);
}
if (state != null)
{
lastStyle = state.getStyle();
state.setStyle(new Hashtable<String, Object>(state.getStyle()));
state.getStyle().put("strokeColor", "#00ff00");
state.getStyle().put("fontColor", "#00ff00");
state.getStyle().put("strokeWidth", "3");
Rectangle tmp = state.getBoundingBox().getRectangle();
if (dirty != null)
{
dirty.add(tmp);
}
else
{
dirty = tmp;
}
dirty.grow(4, 4);
}
validState = state;
graphComponent.repaint(dirty);
}
}
public void reset()
{
highlight(null);
}
public void paint(Graphics g)
{
// do nothing
}
};
graphComponent.getConnectionHandler().setMarker(highlighter);
</code></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../serialized-form.html#com.mxgraph.swing.handler.mxCellMarker">Serialized Form</a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.java.awt.Component">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;java.awt.Component</h3>
<code>java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.java.awt.Container">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;java.awt.Container</h3>
<code>java.awt.Container.AccessibleAWTContainer</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.javax.swing.JComponent">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class&nbsp;javax.swing.JComponent</h3>
<code>javax.swing.JComponent.AccessibleJComponent</code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#currentColor">currentColor</a></span></code></th>
<td class="colLast">
<div class="block">Holds the current marker color.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.awt.Stroke</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#DEFAULT_STROKE">DEFAULT_STROKE</a></span></code></th>
<td class="colLast">
<div class="block">Specifies the default stroke for the marker.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#enabled">enabled</a></span></code></th>
<td class="colLast">
<div class="block">Specifies if the marker is enabled.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../com/mxgraph/util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#eventSource">eventSource</a></span></code></th>
<td class="colLast">
<div class="block">Holds the event source.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#graphComponent">graphComponent</a></span></code></th>
<td class="colLast">
<div class="block">Holds the enclosing graph component.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#hotspot">hotspot</a></span></code></th>
<td class="colLast">
<div class="block">Specifies the portion of the width and height that should trigger
a highlight.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#hotspotEnabled">hotspotEnabled</a></span></code></th>
<td class="colLast">
<div class="block">Specifies if the hotspot is enabled.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#invalidColor">invalidColor</a></span></code></th>
<td class="colLast">
<div class="block">Specifies the valid- and invalidColor for the marker.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#KEEP_ON_TOP">KEEP_ON_TOP</a></span></code></th>
<td class="colLast">
<div class="block">Specifies if the highlights should appear on top of everything
else in the overlay pane.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#markedState">markedState</a></span></code></th>
<td class="colLast">
<div class="block">Holds the marked state.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#swimlaneContentEnabled">swimlaneContentEnabled</a></span></code></th>
<td class="colLast">
<div class="block">Specifies if the the content area of swimlane should be non-transparent
to mouse events.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#validColor">validColor</a></span></code></th>
<td class="colLast">
<div class="block">Specifies the valid- and invalidColor for the marker.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#validState">validState</a></span></code></th>
<td class="colLast">
<div class="block">Holds the marked state if it is valid.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.java.awt.Component">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;java.awt.Component</h3>
<code>accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.java.awt.image.ImageObserver">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;java.awt.image.ImageObserver</h3>
<code>ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.javax.swing.JComponent">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;javax.swing.JComponent</h3>
<code>listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#mxCellMarker-com.mxgraph.swing.mxGraphComponent-">mxCellMarker</a></span>&#8203;(<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;graphComponent)</code></th>
<td class="colLast">
<div class="block">Constructs a new marker for the given graph component.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#mxCellMarker-com.mxgraph.swing.mxGraphComponent-java.awt.Color-">mxCellMarker</a></span>&#8203;(<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;graphComponent,
java.awt.Color&nbsp;validColor)</code></th>
<td class="colLast">
<div class="block">Constructs a new marker for the given graph component.</div>
</td>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#mxCellMarker-com.mxgraph.swing.mxGraphComponent-java.awt.Color-java.awt.Color-">mxCellMarker</a></span>&#8203;(<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;graphComponent,
java.awt.Color&nbsp;validColor,
java.awt.Color&nbsp;invalidColor)</code></th>
<td class="colLast">
<div class="block">Constructs a new marker for the given graph component.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#mxCellMarker-com.mxgraph.swing.mxGraphComponent-java.awt.Color-java.awt.Color-double-">mxCellMarker</a></span>&#8203;(<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;graphComponent,
java.awt.Color&nbsp;validColor,
java.awt.Color&nbsp;invalidColor,
double&nbsp;hotspot)</code></th>
<td class="colLast">
<div class="block">Constructs a new marker for the given graph component.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#addListener-java.lang.String-com.mxgraph.util.mxEventSource.mxIEventListener-">addListener</a></span>&#8203;(java.lang.String&nbsp;eventName,
<a href="../../../../com/mxgraph/util/mxEventSource.mxIEventListener.html" title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a>&nbsp;listener)</code></th>
<td class="colLast">
<div class="block">Adds the given event listener.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getCell-java.awt.event.MouseEvent-">getCell</a></span>&#8203;(java.awt.event.MouseEvent&nbsp;e)</code></th>
<td class="colLast">
<div class="block">Returns the state at the given location.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getCurrentColor--">getCurrentColor</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the current color.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>double</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getHotspot--">getHotspot</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the hotspot.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getInvalidColor--">getInvalidColor</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the color used for invalid highlights.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getMarkedState--">getMarkedState</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the marked state.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getMarkerColor-java.awt.event.MouseEvent-com.mxgraph.view.mxCellState-boolean-">getMarkerColor</a></span>&#8203;(java.awt.event.MouseEvent&nbsp;e,
<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
boolean&nbsp;isValid)</code></th>
<td class="colLast">
<div class="block">Returns the valid- or invalidColor depending on the value of isValid.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getState-java.awt.event.MouseEvent-">getState</a></span>&#8203;(java.awt.event.MouseEvent&nbsp;e)</code></th>
<td class="colLast">
<div class="block">Uses getCell, getMarkedState and intersects to return the state for
the given event.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getStateToMark-com.mxgraph.view.mxCellState-">getStateToMark</a></span>&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</code></th>
<td class="colLast">
<div class="block">Returns the state to be marked for the given state under the mouse.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>java.awt.Color</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getValidColor--">getValidColor</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the color used for valid highlights.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#getValidState--">getValidState</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the valid state.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#hasValidState--">hasValidState</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns true if validState is not null.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#highlight-com.mxgraph.view.mxCellState-java.awt.Color-">highlight</a></span>&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
java.awt.Color&nbsp;color)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#highlight-com.mxgraph.view.mxCellState-java.awt.Color-boolean-">highlight</a></span>&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
java.awt.Color&nbsp;color,
boolean&nbsp;valid)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#intersects-com.mxgraph.view.mxCellState-java.awt.event.MouseEvent-">intersects</a></span>&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
java.awt.event.MouseEvent&nbsp;e)</code></th>
<td class="colLast">
<div class="block">Returns true if the given mouse event intersects the given state.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#isEnabled--">isEnabled</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns true if the marker is enabled, that is, if it processes events
in process.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#isHotspotEnabled--">isHotspotEnabled</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns true if hotspot is used in intersects.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#isSwimlaneContentEnabled--">isSwimlaneContentEnabled</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns true if the content area of swimlanes is non-transparent to
events.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#isValidState-com.mxgraph.view.mxCellState-">isValidState</a></span>&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</code></th>
<td class="colLast">
<div class="block">Returns true if the given state is a valid state.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#mark--">mark</a></span>()</code></th>
<td class="colLast">
<div class="block">Marks the markedState and fires a mxEvent.MARK event.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#paint-java.awt.Graphics-">paint</a></span>&#8203;(java.awt.Graphics&nbsp;g)</code></th>
<td class="colLast">
<div class="block">Paints the outline of the markedState with the currentColor.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#process-java.awt.event.MouseEvent-">process</a></span>&#8203;(java.awt.event.MouseEvent&nbsp;e)</code></th>
<td class="colLast">
<div class="block">Processes the given event and marks the state returned by getStateAt
with the color returned by getMarkerColor.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#removeListener-com.mxgraph.util.mxEventSource.mxIEventListener-">removeListener</a></span>&#8203;(<a href="../../../../com/mxgraph/util/mxEventSource.mxIEventListener.html" title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a>&nbsp;listener)</code></th>
<td class="colLast">
<div class="block">Removes the given event listener.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#removeListener-com.mxgraph.util.mxEventSource.mxIEventListener-java.lang.String-">removeListener</a></span>&#8203;(<a href="../../../../com/mxgraph/util/mxEventSource.mxIEventListener.html" title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a>&nbsp;listener,
java.lang.String&nbsp;eventName)</code></th>
<td class="colLast">
<div class="block">Removes the given event listener for the specified event name.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#reset--">reset</a></span>()</code></th>
<td class="colLast">
<div class="block">Resets the state of the cell marker.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#setCurrentColor-java.awt.Color-">setCurrentColor</a></span>&#8203;(java.awt.Color&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the current color.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#setEnabled-boolean-">setEnabled</a></span>&#8203;(boolean&nbsp;enabled)</code></th>
<td class="colLast">
<div class="block">Sets the enabled state of the marker.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#setHotspot-double-">setHotspot</a></span>&#8203;(double&nbsp;hotspot)</code></th>
<td class="colLast">
<div class="block">Sets the hotspot.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#setHotspotEnabled-boolean-">setHotspotEnabled</a></span>&#8203;(boolean&nbsp;enabled)</code></th>
<td class="colLast">
<div class="block">Specifies whether the hotspot should be used in intersects.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#setInvalidColor-java.awt.Color-">setInvalidColor</a></span>&#8203;(java.awt.Color&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the color used for invalid highlights.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#setMarkedState-com.mxgraph.view.mxCellState-">setMarkedState</a></span>&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the marked state.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#setSwimlaneContentEnabled-boolean-">setSwimlaneContentEnabled</a></span>&#8203;(boolean&nbsp;swimlaneContentEnabled)</code></th>
<td class="colLast">
<div class="block">Sets if the content area of swimlanes should not be transparent to
events.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#setValidColor-java.awt.Color-">setValidColor</a></span>&#8203;(java.awt.Color&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Sets the color used for valid highlights.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/mxgraph/swing/handler/mxCellMarker.html#unmark--">unmark</a></span>()</code></th>
<td class="colLast">
<div class="block">Hides the marker and fires a mxEvent.MARK event.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.awt.Component">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.awt.Component</h3>
<code>action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.awt.Container">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.awt.Container</h3>
<code>add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.swing.JComponent">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;javax.swing.JComponent</h3>
<code>addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="KEEP_ON_TOP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEEP_ON_TOP</h4>
<pre>public static&nbsp;boolean KEEP_ON_TOP</pre>
<div class="block">Specifies if the highlights should appear on top of everything
else in the overlay pane. Default is false.</div>
</li>
</ul>
<a name="DEFAULT_STROKE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEFAULT_STROKE</h4>
<pre>public static&nbsp;java.awt.Stroke DEFAULT_STROKE</pre>
<div class="block">Specifies the default stroke for the marker.</div>
</li>
</ul>
<a name="eventSource">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>eventSource</h4>
<pre>protected&nbsp;<a href="../../../../com/mxgraph/util/mxEventSource.html" title="class in com.mxgraph.util">mxEventSource</a> eventSource</pre>
<div class="block">Holds the event source.</div>
</li>
</ul>
<a name="graphComponent">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>graphComponent</h4>
<pre>protected&nbsp;<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a> graphComponent</pre>
<div class="block">Holds the enclosing graph component.</div>
</li>
</ul>
<a name="enabled">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>enabled</h4>
<pre>protected&nbsp;boolean enabled</pre>
<div class="block">Specifies if the marker is enabled. Default is true.</div>
</li>
</ul>
<a name="hotspot">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hotspot</h4>
<pre>protected&nbsp;double hotspot</pre>
<div class="block">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.</div>
</li>
</ul>
<a name="hotspotEnabled">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hotspotEnabled</h4>
<pre>protected&nbsp;boolean hotspotEnabled</pre>
<div class="block">Specifies if the hotspot is enabled. Default is false.</div>
</li>
</ul>
<a name="swimlaneContentEnabled">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>swimlaneContentEnabled</h4>
<pre>protected&nbsp;boolean swimlaneContentEnabled</pre>
<div class="block">Specifies if the the content area of swimlane should be non-transparent
to mouse events. Default is false.</div>
</li>
</ul>
<a name="validColor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validColor</h4>
<pre>protected&nbsp;java.awt.Color validColor</pre>
<div class="block">Specifies the valid- and invalidColor for the marker.</div>
</li>
</ul>
<a name="invalidColor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>invalidColor</h4>
<pre>protected&nbsp;java.awt.Color invalidColor</pre>
<div class="block">Specifies the valid- and invalidColor for the marker.</div>
</li>
</ul>
<a name="currentColor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>currentColor</h4>
<pre>protected transient&nbsp;java.awt.Color currentColor</pre>
<div class="block">Holds the current marker color.</div>
</li>
</ul>
<a name="validState">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validState</h4>
<pre>protected transient&nbsp;<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a> validState</pre>
<div class="block">Holds the marked state if it is valid.</div>
</li>
</ul>
<a name="markedState">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>markedState</h4>
<pre>protected transient&nbsp;<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a> markedState</pre>
<div class="block">Holds the marked state.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="mxCellMarker-com.mxgraph.swing.mxGraphComponent-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mxCellMarker</h4>
<pre>public&nbsp;mxCellMarker&#8203;(<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;graphComponent)</pre>
<div class="block">Constructs a new marker for the given graph component.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>graphComponent</code> - </dd>
</dl>
</li>
</ul>
<a name="mxCellMarker-com.mxgraph.swing.mxGraphComponent-java.awt.Color-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mxCellMarker</h4>
<pre>public&nbsp;mxCellMarker&#8203;(<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;graphComponent,
java.awt.Color&nbsp;validColor)</pre>
<div class="block">Constructs a new marker for the given graph component.</div>
</li>
</ul>
<a name="mxCellMarker-com.mxgraph.swing.mxGraphComponent-java.awt.Color-java.awt.Color-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mxCellMarker</h4>
<pre>public&nbsp;mxCellMarker&#8203;(<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;graphComponent,
java.awt.Color&nbsp;validColor,
java.awt.Color&nbsp;invalidColor)</pre>
<div class="block">Constructs a new marker for the given graph component.</div>
</li>
</ul>
<a name="mxCellMarker-com.mxgraph.swing.mxGraphComponent-java.awt.Color-java.awt.Color-double-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>mxCellMarker</h4>
<pre>public&nbsp;mxCellMarker&#8203;(<a href="../../../../com/mxgraph/swing/mxGraphComponent.html" title="class in com.mxgraph.swing">mxGraphComponent</a>&nbsp;graphComponent,
java.awt.Color&nbsp;validColor,
java.awt.Color&nbsp;invalidColor,
double&nbsp;hotspot)</pre>
<div class="block">Constructs a new marker for the given graph component.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="setEnabled-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEnabled</h4>
<pre>public&nbsp;void&nbsp;setEnabled&#8203;(boolean&nbsp;enabled)</pre>
<div class="block">Sets the enabled state of the marker.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setEnabled</code>&nbsp;in class&nbsp;<code>javax.swing.JComponent</code></dd>
</dl>
</li>
</ul>
<a name="isEnabled--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isEnabled</h4>
<pre>public&nbsp;boolean&nbsp;isEnabled()</pre>
<div class="block">Returns true if the marker is enabled, that is, if it processes events
in process.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>isEnabled</code>&nbsp;in class&nbsp;<code>java.awt.Component</code></dd>
</dl>
</li>
</ul>
<a name="setHotspot-double-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHotspot</h4>
<pre>public&nbsp;void&nbsp;setHotspot&#8203;(double&nbsp;hotspot)</pre>
<div class="block">Sets the hotspot.</div>
</li>
</ul>
<a name="getHotspot--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHotspot</h4>
<pre>public&nbsp;double&nbsp;getHotspot()</pre>
<div class="block">Returns the hotspot.</div>
</li>
</ul>
<a name="setHotspotEnabled-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHotspotEnabled</h4>
<pre>public&nbsp;void&nbsp;setHotspotEnabled&#8203;(boolean&nbsp;enabled)</pre>
<div class="block">Specifies whether the hotspot should be used in intersects.</div>
</li>
</ul>
<a name="isHotspotEnabled--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isHotspotEnabled</h4>
<pre>public&nbsp;boolean&nbsp;isHotspotEnabled()</pre>
<div class="block">Returns true if hotspot is used in intersects.</div>
</li>
</ul>
<a name="setSwimlaneContentEnabled-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSwimlaneContentEnabled</h4>
<pre>public&nbsp;void&nbsp;setSwimlaneContentEnabled&#8203;(boolean&nbsp;swimlaneContentEnabled)</pre>
<div class="block">Sets if the content area of swimlanes should not be transparent to
events.</div>
</li>
</ul>
<a name="isSwimlaneContentEnabled--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSwimlaneContentEnabled</h4>
<pre>public&nbsp;boolean&nbsp;isSwimlaneContentEnabled()</pre>
<div class="block">Returns true if the content area of swimlanes is non-transparent to
events.</div>
</li>
</ul>
<a name="setValidColor-java.awt.Color-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValidColor</h4>
<pre>public&nbsp;void&nbsp;setValidColor&#8203;(java.awt.Color&nbsp;value)</pre>
<div class="block">Sets the color used for valid highlights.</div>
</li>
</ul>
<a name="getValidColor--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValidColor</h4>
<pre>public&nbsp;java.awt.Color&nbsp;getValidColor()</pre>
<div class="block">Returns the color used for valid highlights.</div>
</li>
</ul>
<a name="setInvalidColor-java.awt.Color-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setInvalidColor</h4>
<pre>public&nbsp;void&nbsp;setInvalidColor&#8203;(java.awt.Color&nbsp;value)</pre>
<div class="block">Sets the color used for invalid highlights.</div>
</li>
</ul>
<a name="getInvalidColor--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInvalidColor</h4>
<pre>public&nbsp;java.awt.Color&nbsp;getInvalidColor()</pre>
<div class="block">Returns the color used for invalid highlights.</div>
</li>
</ul>
<a name="hasValidState--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasValidState</h4>
<pre>public&nbsp;boolean&nbsp;hasValidState()</pre>
<div class="block">Returns true if validState is not null.</div>
</li>
</ul>
<a name="getValidState--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValidState</h4>
<pre>public&nbsp;<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;getValidState()</pre>
<div class="block">Returns the valid state.</div>
</li>
</ul>
<a name="setCurrentColor-java.awt.Color-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCurrentColor</h4>
<pre>public&nbsp;void&nbsp;setCurrentColor&#8203;(java.awt.Color&nbsp;value)</pre>
<div class="block">Sets the current color.</div>
</li>
</ul>
<a name="getCurrentColor--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentColor</h4>
<pre>public&nbsp;java.awt.Color&nbsp;getCurrentColor()</pre>
<div class="block">Returns the current color.</div>
</li>
</ul>
<a name="setMarkedState-com.mxgraph.view.mxCellState-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMarkedState</h4>
<pre>public&nbsp;void&nbsp;setMarkedState&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;value)</pre>
<div class="block">Sets the marked state.</div>
</li>
</ul>
<a name="getMarkedState--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarkedState</h4>
<pre>public&nbsp;<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;getMarkedState()</pre>
<div class="block">Returns the marked state.</div>
</li>
</ul>
<a name="reset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reset</h4>
<pre>public&nbsp;void&nbsp;reset()</pre>
<div class="block">Resets the state of the cell marker.</div>
</li>
</ul>
<a name="process-java.awt.event.MouseEvent-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>process</h4>
<pre>public&nbsp;<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;process&#8203;(java.awt.event.MouseEvent&nbsp;e)</pre>
<div class="block">Processes the given event and marks the state returned by getStateAt
with the color returned by getMarkerColor. If the markerColor is not
null, then the state is stored in markedState. If isValidState returns
true, then the state is stored in validState regardless of the marker
color. The state is returned regardless of the marker color and
valid state.</div>
</li>
</ul>
<a name="highlight-com.mxgraph.view.mxCellState-java.awt.Color-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>highlight</h4>
<pre>public&nbsp;void&nbsp;highlight&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
java.awt.Color&nbsp;color)</pre>
</li>
</ul>
<a name="highlight-com.mxgraph.view.mxCellState-java.awt.Color-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>highlight</h4>
<pre>public&nbsp;void&nbsp;highlight&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
java.awt.Color&nbsp;color,
boolean&nbsp;valid)</pre>
</li>
</ul>
<a name="mark--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mark</h4>
<pre>public&nbsp;void&nbsp;mark()</pre>
<div class="block">Marks the markedState and fires a mxEvent.MARK event.</div>
</li>
</ul>
<a name="unmark--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unmark</h4>
<pre>public&nbsp;void&nbsp;unmark()</pre>
<div class="block">Hides the marker and fires a mxEvent.MARK event.</div>
</li>
</ul>
<a name="isValidState-com.mxgraph.view.mxCellState-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isValidState</h4>
<pre>protected&nbsp;boolean&nbsp;isValidState&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</pre>
<div class="block">Returns true if the given state is a valid state. If this returns true,
then the state is stored in validState. The return value of this method
is used as the argument for getMarkerColor.</div>
</li>
</ul>
<a name="getMarkerColor-java.awt.event.MouseEvent-com.mxgraph.view.mxCellState-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarkerColor</h4>
<pre>protected&nbsp;java.awt.Color&nbsp;getMarkerColor&#8203;(java.awt.event.MouseEvent&nbsp;e,
<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
boolean&nbsp;isValid)</pre>
<div class="block">Returns the valid- or invalidColor depending on the value of isValid.
The given state is ignored by this implementation.</div>
</li>
</ul>
<a name="getState-java.awt.event.MouseEvent-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getState</h4>
<pre>protected&nbsp;<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;getState&#8203;(java.awt.event.MouseEvent&nbsp;e)</pre>
<div class="block">Uses getCell, getMarkedState and intersects to return the state for
the given event.</div>
</li>
</ul>
<a name="getCell-java.awt.event.MouseEvent-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCell</h4>
<pre>protected&nbsp;java.lang.Object&nbsp;getCell&#8203;(java.awt.event.MouseEvent&nbsp;e)</pre>
<div class="block">Returns the state at the given location. This uses mxGraph.getCellAt.</div>
</li>
</ul>
<a name="getStateToMark-com.mxgraph.view.mxCellState-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStateToMark</h4>
<pre>protected&nbsp;<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;getStateToMark&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state)</pre>
<div class="block">Returns the state to be marked for the given state under the mouse. This
returns the given state.</div>
</li>
</ul>
<a name="intersects-com.mxgraph.view.mxCellState-java.awt.event.MouseEvent-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intersects</h4>
<pre>protected&nbsp;boolean&nbsp;intersects&#8203;(<a href="../../../../com/mxgraph/view/mxCellState.html" title="class in com.mxgraph.view">mxCellState</a>&nbsp;state,
java.awt.event.MouseEvent&nbsp;e)</pre>
<div class="block">Returns true if the given mouse event intersects the given state. This
returns true if the hotspot is 0 or the event is inside the hotspot for
the given cell state.</div>
</li>
</ul>
<a name="addListener-java.lang.String-com.mxgraph.util.mxEventSource.mxIEventListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addListener</h4>
<pre>public&nbsp;void&nbsp;addListener&#8203;(java.lang.String&nbsp;eventName,
<a href="../../../../com/mxgraph/util/mxEventSource.mxIEventListener.html" title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a>&nbsp;listener)</pre>
<div class="block">Adds the given event listener.</div>
</li>
</ul>
<a name="removeListener-com.mxgraph.util.mxEventSource.mxIEventListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeListener</h4>
<pre>public&nbsp;void&nbsp;removeListener&#8203;(<a href="../../../../com/mxgraph/util/mxEventSource.mxIEventListener.html" title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a>&nbsp;listener)</pre>
<div class="block">Removes the given event listener.</div>
</li>
</ul>
<a name="removeListener-com.mxgraph.util.mxEventSource.mxIEventListener-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeListener</h4>
<pre>public&nbsp;void&nbsp;removeListener&#8203;(<a href="../../../../com/mxgraph/util/mxEventSource.mxIEventListener.html" title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a>&nbsp;listener,
java.lang.String&nbsp;eventName)</pre>
<div class="block">Removes the given event listener for the specified event name.</div>
</li>
</ul>
<a name="paint-java.awt.Graphics-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>paint</h4>
<pre>public&nbsp;void&nbsp;paint&#8203;(java.awt.Graphics&nbsp;g)</pre>
<div class="block">Paints the outline of the markedState with the currentColor.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>paint</code>&nbsp;in class&nbsp;<code>javax.swing.JComponent</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/mxCellMarker.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><p><b>mxGraph 3.9.12</b></p></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/mxgraph/swing/handler/mxCellHandler.html" title="class in com.mxgraph.swing.handler"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/mxgraph/swing/handler/mxCellTracker.html" title="class in com.mxgraph.swing.handler"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/mxgraph/swing/handler/mxCellMarker.html" target="_top">Frames</a></li>
<li><a href="mxCellMarker.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.javax.swing.JComponent">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><font size=1>Copyright (c) 2010-2017 <a href="http://www.jgraph.com/"
target="_blank">Gaudenz Alder, JGraph Ltd</a>. All rights reserved.</font></small></p>
</body>
</html>