<li><ahref="../../../com/mxgraph/view/mxGraph.mxICellVisitor.html"title="interface in com.mxgraph.view"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.mxSelectionChange.html"title="class in com.mxgraph.view"><spanclass="strong">Next Class</span></a></li>
<li><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ulclass="inheritance">
<li><ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">com.mxgraph.util.mxEventSource</a></li>
<li>
<ulclass="inheritance">
<li>com.mxgraph.view.mxGraphSelectionModel</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<hr>
<br>
<pre>public class <spanclass="strong">mxGraphSelectionModel</span>
extends <ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</a></pre>
<divclass="block">Implements the selection model for a graph.
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.mxSelectionChange.html"title="class in com.mxgraph.view">mxGraphSelectionModel.mxSelectionChange</a></strong></code> </td>
<h3>Nested classes/interfaces inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</a></h3>
<code><ahref="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a></code></li>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true"title="class or interface in java.util">Set</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>></code></td>
<h3>Fields inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</a></h3>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#mxGraphSelectionModel(com.mxgraph.view.mxGraph)">mxGraphSelectionModel</a></strong>(<ahref="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</a> graph)</code>
<divclass="block">Constructs a new selection model for the specified graph.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#addCell(java.lang.Object)">addCell</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</code>
<divclass="block">Adds the given cell to the selection.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#addCells(java.lang.Object[])">addCells</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] cells)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#cellAdded(java.lang.Object)">cellAdded</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#cellRemoved(java.lang.Object)">cellRemoved</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</code> </td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#changeSelection(java.util.Collection, java.util.Collection)">changeSelection</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true"title="class or interface in java.util">Collection</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> added,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true"title="class or interface in java.util">Collection</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> removed)</code> </td>
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></code></td>
<divclass="block">Returns the first selected cell.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[]</code></td>
<divclass="block">Returns the selection cells.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#getFirstSelectableCell(java.lang.Object[])">getFirstSelectableCell</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] cells)</code>
<divclass="block">Returns the first selectable cell in the given array of cells.</div>
<divclass="block">Returns true if no cells are selected.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#isSelected(java.lang.Object)">isSelected</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</code>
<divclass="block">Returns true if the given cell is selected.</div>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#removeCell(java.lang.Object)">removeCell</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</code>
<divclass="block">Removes the given cell from the selection.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#removeCells(java.lang.Object[])">removeCells</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] cells)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#setCell(java.lang.Object)">setCell</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</code>
<divclass="block">Clears the selection and adds the given cell to the selection.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.html#setCells(java.lang.Object[])">setCells</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] cells)</code>
<divclass="block">Clears the selection and adds the given cells.</div>
<h3>Methods inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</a></h3>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</a></code></li>
<pre>protected <ahref="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</a> graph</pre>
<divclass="block">Reference to the enclosing graph.</div>
</li>
</ul>
<aname="singleSelection">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>singleSelection</h4>
<pre>protected boolean singleSelection</pre>
<divclass="block">Specifies if only one selected item at a time is allowed.
Default is false.</div>
</li>
</ul>
<aname="cells">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>cells</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Set.html?is-external=true"title="class or interface in java.util">Set</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> cells</pre>
<divclass="block">Holds the selection cells.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>singleSelection</code> - the singleSelection to set</dd></dl>
</li>
</ul>
<aname="isSelected(java.lang.Object)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>isSelected</h4>
<pre>public boolean isSelected(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</pre>
<divclass="block">Returns true if the given cell is selected.</div>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns true if the given cell is selected.</dd></dl>
</li>
</ul>
<aname="isEmpty()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>isEmpty</h4>
<pre>public boolean isEmpty()</pre>
<divclass="block">Returns true if no cells are selected.</div>
</li>
</ul>
<aname="size()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>size</h4>
<pre>public int size()</pre>
<divclass="block">Returns the number of selected cells.</div>
</li>
</ul>
<aname="clear()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>clear</h4>
<pre>public void clear()</pre>
<divclass="block">Clears the selection.</div>
</li>
</ul>
<aname="getCell()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getCell</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> getCell()</pre>
<divclass="block">Returns the first selected cell.</div>
</li>
</ul>
<aname="getCells()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getCells</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] getCells()</pre>
<divclass="block">Returns the selection cells.</div>
</li>
</ul>
<aname="setCell(java.lang.Object)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setCell</h4>
<pre>public void setCell(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</pre>
<divclass="block">Clears the selection and adds the given cell to the selection.</div>
</li>
</ul>
<aname="setCells(java.lang.Object[])">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>setCells</h4>
<pre>public void setCells(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] cells)</pre>
<divclass="block">Clears the selection and adds the given cells.</div>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> getFirstSelectableCell(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] cells)</pre>
<divclass="block">Returns the first selectable cell in the given array of cells.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>cells</code> - Array of cells to return the first selectable cell for.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>Returns the first cell that may be selected.</dd></dl>
</li>
</ul>
<aname="addCell(java.lang.Object)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>addCell</h4>
<pre>public void addCell(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</pre>
<divclass="block">Adds the given cell to the selection.</div>
</li>
</ul>
<aname="addCells(java.lang.Object[])">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>addCells</h4>
<pre>public void addCells(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] cells)</pre>
</li>
</ul>
<aname="removeCell(java.lang.Object)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>removeCell</h4>
<pre>public void removeCell(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</pre>
<divclass="block">Removes the given cell from the selection.</div>
</li>
</ul>
<aname="removeCells(java.lang.Object[])">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>removeCells</h4>
<pre>public void removeCells(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>[] cells)</pre>
<pre>protected void changeSelection(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true"title="class or interface in java.util">Collection</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> added,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true"title="class or interface in java.util">Collection</a><<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a>> removed)</pre>
</li>
</ul>
<aname="cellAdded(java.lang.Object)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>cellAdded</h4>
<pre>protected void cellAdded(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</pre>
</li>
</ul>
<aname="cellRemoved(java.lang.Object)">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>cellRemoved</h4>
<pre>protected void cellRemoved(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> cell)</pre>
<li><ahref="../../../com/mxgraph/view/mxGraph.mxICellVisitor.html"title="interface in com.mxgraph.view"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../com/mxgraph/view/mxGraphSelectionModel.mxSelectionChange.html"title="class in com.mxgraph.view"><spanclass="strong">Next Class</span></a></li>