/[debian]/libjgraph-java/trunk/doc/api/org/jgraph/graph/DefaultGraphSelectionModel.html
ViewVC logotype

Contents of /libjgraph-java/trunk/doc/api/org/jgraph/graph/DefaultGraphSelectionModel.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 816 - (show annotations)
Fri Aug 3 13:14:15 2007 UTC (13 years, 10 months ago) by gregoa
File MIME type: text/html
File size: 61121 byte(s)
* New upstream release.
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.4.2_11) on Mon Jul 30 10:14:31 BST 2007 -->
6 <TITLE>
7 DefaultGraphSelectionModel (JGraph v5.10.1.4 API Specification)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jgraph.graph.DefaultGraphSelectionModel class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="DefaultGraphSelectionModel (JGraph v5.10.1.4 API Specification)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultGraphSelectionModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 <p><b>JGraph</b><br>v5.10.1.4</p></EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelLayerEdit.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.CellPlaceHolder.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="DefaultGraphSelectionModel.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 org.jgraph.graph</FONT>
86 <BR>
87 Class DefaultGraphSelectionModel</H2>
88 <PRE>
89 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
90 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jgraph.graph.DefaultGraphSelectionModel</B>
91 </PRE>
92 <DL>
93 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Cloneable.html" title="class or interface in java.lang">Cloneable</A>, <A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD>
94 </DL>
95 <DL>
96 <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/jgraph/JGraph.EmptySelectionModel.html" title="class in org.jgraph">JGraph.EmptySelectionModel</A></DD>
97 </DL>
98 <HR>
99 <DL>
100 <DT>public class <B>DefaultGraphSelectionModel</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Cloneable.html" title="class or interface in java.lang">Cloneable</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DL>
101
102 <P>
103 Default implementation of GraphSelectionModel. Listeners are notified
104 <P>
105
106 <P>
107 <DL>
108 <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jgraph.graph.DefaultGraphSelectionModel">Serialized Form</A></DL>
109 <HR>
110
111 <P>
112 <!-- ======== NESTED CLASS SUMMARY ======== -->
113
114 <A NAME="nested_class_summary"><!-- --></A>
115 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
116 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117 <TD COLSPAN=2><FONT SIZE="+2">
118 <B>Nested Class Summary</B></FONT></TD>
119 </TR>
120 <TR BGCOLOR="white" CLASS="TableRowColor">
121 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
122 <CODE>protected &nbsp;class</CODE></FONT></TD>
123 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.CellPlaceHolder.html" title="class in org.jgraph.graph">DefaultGraphSelectionModel.CellPlaceHolder</A></B></CODE>
124
125 <BR>
126 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Holds a path and whether or not it is new.</TD>
127 </TR>
128 </TABLE>
129 &nbsp;
130 <!-- =========== FIELD SUMMARY =========== -->
131
132 <A NAME="field_summary"><!-- --></A>
133 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135 <TD COLSPAN=2><FONT SIZE="+2">
136 <B>Field Summary</B></FONT></TD>
137 </TR>
138 <TR BGCOLOR="white" CLASS="TableRowColor">
139 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A></CODE></FONT></TD>
141 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#cellStates">cellStates</A></B></CODE>
142
143 <BR>
144 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maps the cells to their selection state.</TD>
145 </TR>
146 <TR BGCOLOR="white" CLASS="TableRowColor">
147 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/SwingPropertyChangeSupport.html" title="class or interface in javax.swing.event">SwingPropertyChangeSupport</A></CODE></FONT></TD>
149 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#changeSupport">changeSupport</A></B></CODE>
150
151 <BR>
152 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used to message registered listeners.</TD>
153 </TR>
154 <TR BGCOLOR="white" CLASS="TableRowColor">
155 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
157 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#childrenSelectable">childrenSelectable</A></B></CODE>
158
159 <BR>
160 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Boolean that indicates if the model allows stepping-into groups.</TD>
161 </TR>
162 <TR BGCOLOR="white" CLASS="TableRowColor">
163 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A></CODE></FONT></TD>
165 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#graph">graph</A></B></CODE>
166
167 <BR>
168 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reference to the parent graph.</TD>
169 </TR>
170 <TR BGCOLOR="white" CLASS="TableRowColor">
171 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/EventListenerList.html" title="class or interface in javax.swing.event">EventListenerList</A></CODE></FONT></TD>
173 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#listenerList">listenerList</A></B></CODE>
174
175 <BR>
176 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Event listener list.</TD>
177 </TR>
178 <TR BGCOLOR="white" CLASS="TableRowColor">
179 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180 <CODE>static&nbsp;int</CODE></FONT></TD>
181 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#SELECTED">SELECTED</A></B></CODE>
182
183 <BR>
184 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Value that represents selected state in cellStates.</TD>
185 </TR>
186 <TR BGCOLOR="white" CLASS="TableRowColor">
187 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A></CODE></FONT></TD>
189 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#selection">selection</A></B></CODE>
190
191 <BR>
192 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List that contains the selected items.</TD>
193 </TR>
194 <TR BGCOLOR="white" CLASS="TableRowColor">
195 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
197 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#SELECTION_MODE_PROPERTY">SELECTION_MODE_PROPERTY</A></B></CODE>
198
199 <BR>
200 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Property name for selectionMode.</TD>
201 </TR>
202 <TR BGCOLOR="white" CLASS="TableRowColor">
203 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204 <CODE>protected &nbsp;int</CODE></FONT></TD>
205 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#selectionMode">selectionMode</A></B></CODE>
206
207 <BR>
208 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mode for the selection, will be either SINGLE_TREE_SELECTION,
209 CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION.</TD>
210 </TR>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A></CODE></FONT></TD>
214 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#UNSELECTED">UNSELECTED</A></B></CODE>
215
216 <BR>
217 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Object value that represents the unselected state in cellStates.</TD>
218 </TR>
219 </TABLE>
220 &nbsp;<A NAME="fields_inherited_from_class_org.jgraph.graph.GraphSelectionModel"><!-- --></A>
221 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
222 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
223 <TD><B>Fields inherited from interface org.jgraph.graph.<A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></B></TD>
224 </TR>
225 <TR BGCOLOR="white" CLASS="TableRowColor">
226 <TD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#MULTIPLE_GRAPH_SELECTION">MULTIPLE_GRAPH_SELECTION</A>, <A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#SINGLE_GRAPH_SELECTION">SINGLE_GRAPH_SELECTION</A></CODE></TD>
227 </TR>
228 </TABLE>
229 &nbsp;
230 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
231
232 <A NAME="constructor_summary"><!-- --></A>
233 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
234 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
235 <TD COLSPAN=2><FONT SIZE="+2">
236 <B>Constructor Summary</B></FONT></TD>
237 </TR>
238 <TR BGCOLOR="white" CLASS="TableRowColor">
239 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#DefaultGraphSelectionModel(org.jgraph.JGraph)">DefaultGraphSelectionModel</A></B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;graph)</CODE>
240
241 <BR>
242 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a DefaultGraphSelectionModel for the specified graph.</TD>
243 </TR>
244 </TABLE>
245 &nbsp;
246 <!-- ========== METHOD SUMMARY =========== -->
247
248 <A NAME="method_summary"><!-- --></A>
249 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
250 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
251 <TD COLSPAN=2><FONT SIZE="+2">
252 <B>Method Summary</B></FONT></TD>
253 </TR>
254 <TR BGCOLOR="white" CLASS="TableRowColor">
255 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256 <CODE>&nbsp;void</CODE></FONT></TD>
257 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#addGraphSelectionListener(org.jgraph.event.GraphSelectionListener)">addGraphSelectionListener</A></B>(<A HREF="../../../org/jgraph/event/GraphSelectionListener.html" title="interface in org.jgraph.event">GraphSelectionListener</A>&nbsp;x)</CODE>
258
259 <BR>
260 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds x to the list of listeners that are notified each time the set of
261 selected TreePaths changes.</TD>
262 </TR>
263 <TR BGCOLOR="white" CLASS="TableRowColor">
264 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265 <CODE>&nbsp;void</CODE></FONT></TD>
266 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A>&nbsp;listener)</CODE>
267
268 <BR>
269 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a PropertyChangeListener to the listener list.</TD>
270 </TR>
271 <TR BGCOLOR="white" CLASS="TableRowColor">
272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273 <CODE>&nbsp;void</CODE></FONT></TD>
274 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#addSelectionCell(java.lang.Object)">addSelectionCell</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
275
276 <BR>
277 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the specified cell to the current selection</TD>
278 </TR>
279 <TR BGCOLOR="white" CLASS="TableRowColor">
280 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281 <CODE>&nbsp;void</CODE></FONT></TD>
282 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#addSelectionCells(java.lang.Object[])">addSelectionCells</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;cells)</CODE>
283
284 <BR>
285 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds cells to the current selection.</TD>
286 </TR>
287 <TR BGCOLOR="white" CLASS="TableRowColor">
288 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289 <CODE>&nbsp;void</CODE></FONT></TD>
290 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#clearSelection()">clearSelection</A></B>()</CODE>
291
292 <BR>
293 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Empties the current selection.</TD>
294 </TR>
295 <TR BGCOLOR="white" CLASS="TableRowColor">
296 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
297 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
298 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#clone()">clone</A></B>()</CODE>
299
300 <BR>
301 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a clone of this object with the same selection.</TD>
302 </TR>
303 <TR BGCOLOR="white" CLASS="TableRowColor">
304 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
305 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
306 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#deselect(java.lang.Object)">deselect</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
307
308 <BR>
309 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Deselects a single cell and updates all datastructures.</TD>
310 </TR>
311 <TR BGCOLOR="white" CLASS="TableRowColor">
312 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
313 <CODE>protected &nbsp;void</CODE></FONT></TD>
314 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#fireValueChanged(org.jgraph.event.GraphSelectionEvent)">fireValueChanged</A></B>(<A HREF="../../../org/jgraph/event/GraphSelectionEvent.html" title="class in org.jgraph.event">GraphSelectionEvent</A>&nbsp;e)</CODE>
315
316 <BR>
317 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Notifies all listeners that are registered for tree selection events on
318 this object.</TD>
319 </TR>
320 <TR BGCOLOR="white" CLASS="TableRowColor">
321 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
322 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventListener.html" title="class or interface in java.util">EventListener</A>[]</CODE></FONT></TD>
323 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#getListeners(java.lang.Class)">getListeners</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;listenerType)</CODE>
324
325 <BR>
326 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of all the listeners of the given type that were added
327 to this model.</TD>
328 </TR>
329 <TR BGCOLOR="white" CLASS="TableRowColor">
330 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
331 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD>
332 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#getSelectables()">getSelectables</A></B>()</CODE>
333
334 <BR>
335 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cells that are currently selectable.</TD>
336 </TR>
337 <TR BGCOLOR="white" CLASS="TableRowColor">
338 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
339 <CODE>protected &nbsp;int</CODE></FONT></TD>
340 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#getSelectedChildCount(java.lang.Object)">getSelectedChildCount</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
341
342 <BR>
343 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of selected childs for <code>cell</code>.</TD>
344 </TR>
345 <TR BGCOLOR="white" CLASS="TableRowColor">
346 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
347 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
348 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#getSelectionCell()">getSelectionCell</A></B>()</CODE>
349
350 <BR>
351 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the first cell in the selection.</TD>
352 </TR>
353 <TR BGCOLOR="white" CLASS="TableRowColor">
354 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
355 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]</CODE></FONT></TD>
356 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#getSelectionCells()">getSelectionCells</A></B>()</CODE>
357
358 <BR>
359 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the cells in the selection.</TD>
360 </TR>
361 <TR BGCOLOR="white" CLASS="TableRowColor">
362 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
363 <CODE>&nbsp;int</CODE></FONT></TD>
364 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#getSelectionCount()">getSelectionCount</A></B>()</CODE>
365
366 <BR>
367 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of paths that are selected.</TD>
368 </TR>
369 <TR BGCOLOR="white" CLASS="TableRowColor">
370 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
371 <CODE>&nbsp;int</CODE></FONT></TD>
372 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#getSelectionMode()">getSelectionMode</A></B>()</CODE>
373
374 <BR>
375 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the selection mode, one of <code>SINGLE_TREE_SELECTION</code>,
376 <code>DISCONTIGUOUS_TREE_SELECTION</code> or
377 <code>CONTIGUOUS_TREE_SELECTION</code>.</TD>
378 </TR>
379 <TR BGCOLOR="white" CLASS="TableRowColor">
380 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
381 <CODE>&nbsp;boolean</CODE></FONT></TD>
382 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#isCellSelected(java.lang.Object)">isCellSelected</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
383
384 <BR>
385 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cell, <code>cell</code>, is in the current
386 selection.</TD>
387 </TR>
388 <TR BGCOLOR="white" CLASS="TableRowColor">
389 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
390 <CODE>&nbsp;boolean</CODE></FONT></TD>
391 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#isChildrenSelectable()">isChildrenSelectable</A></B>()</CODE>
392
393 <BR>
394 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the selection model allows the selection of children.</TD>
395 </TR>
396 <TR BGCOLOR="white" CLASS="TableRowColor">
397 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
398 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
399 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#isChildrenSelectable(java.lang.Object)">isChildrenSelectable</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
400
401 <BR>
402 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hook for subclassers for fine-grained control over stepping-into cells.</TD>
403 </TR>
404 <TR BGCOLOR="white" CLASS="TableRowColor">
405 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
406 <CODE>&nbsp;boolean</CODE></FONT></TD>
407 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#isChildrenSelected(java.lang.Object)">isChildrenSelected</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
408
409 <BR>
410 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the cell, <code>cell</code>, has selected children.</TD>
411 </TR>
412 <TR BGCOLOR="white" CLASS="TableRowColor">
413 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
414 <CODE>&nbsp;boolean</CODE></FONT></TD>
415 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#isSelectionEmpty()">isSelectionEmpty</A></B>()</CODE>
416
417 <BR>
418 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the selection is currently empty.</TD>
419 </TR>
420 <TR BGCOLOR="white" CLASS="TableRowColor">
421 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
422 <CODE>protected &nbsp;void</CODE></FONT></TD>
423 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#notifyCellChange(java.util.Vector)">notifyCellChange</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Vector.html" title="class or interface in java.util">Vector</A>&nbsp;changedCells)</CODE>
424
425 <BR>
426 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Notifies listeners of a change in path.</TD>
427 </TR>
428 <TR BGCOLOR="white" CLASS="TableRowColor">
429 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
430 <CODE>&nbsp;void</CODE></FONT></TD>
431 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#removeGraphSelectionListener(org.jgraph.event.GraphSelectionListener)">removeGraphSelectionListener</A></B>(<A HREF="../../../org/jgraph/event/GraphSelectionListener.html" title="interface in org.jgraph.event">GraphSelectionListener</A>&nbsp;x)</CODE>
432
433 <BR>
434 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes x from the list of listeners that are notified each time the set
435 of selected TreePaths changes.</TD>
436 </TR>
437 <TR BGCOLOR="white" CLASS="TableRowColor">
438 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
439 <CODE>&nbsp;void</CODE></FONT></TD>
440 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A>&nbsp;listener)</CODE>
441
442 <BR>
443 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a PropertyChangeListener from the listener list.</TD>
444 </TR>
445 <TR BGCOLOR="white" CLASS="TableRowColor">
446 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
447 <CODE>&nbsp;void</CODE></FONT></TD>
448 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#removeSelectionCell(java.lang.Object)">removeSelectionCell</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
449
450 <BR>
451 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the specified cell from the selection.</TD>
452 </TR>
453 <TR BGCOLOR="white" CLASS="TableRowColor">
454 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
455 <CODE>&nbsp;void</CODE></FONT></TD>
456 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#removeSelectionCells(java.lang.Object[])">removeSelectionCells</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;cells)</CODE>
457
458 <BR>
459 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the specified cells from the selection.</TD>
460 </TR>
461 <TR BGCOLOR="white" CLASS="TableRowColor">
462 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
463 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
464 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#select(java.util.Set, java.lang.Object)">select</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A>&nbsp;set,
465 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
466
467 <BR>
468 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selects a single cell and updates all datastructures.</TD>
469 </TR>
470 <TR BGCOLOR="white" CLASS="TableRowColor">
471 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
472 <CODE>&nbsp;void</CODE></FONT></TD>
473 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#setChildrenSelectable(boolean)">setChildrenSelectable</A></B>(boolean&nbsp;flag)</CODE>
474
475 <BR>
476 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets if the selection model allows the selection of children.</TD>
477 </TR>
478 <TR BGCOLOR="white" CLASS="TableRowColor">
479 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
480 <CODE>protected &nbsp;void</CODE></FONT></TD>
481 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#setSelectedChildCount(java.lang.Object, int)">setSelectedChildCount</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell,
482 int&nbsp;count)</CODE>
483
484 <BR>
485 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the number of selected childs for <code>cell</code> to
486 <code>count</code>.</TD>
487 </TR>
488 <TR BGCOLOR="white" CLASS="TableRowColor">
489 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
490 <CODE>&nbsp;void</CODE></FONT></TD>
491 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#setSelectionCell(java.lang.Object)">setSelectionCell</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</CODE>
492
493 <BR>
494 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selects the specified cell.</TD>
495 </TR>
496 <TR BGCOLOR="white" CLASS="TableRowColor">
497 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
498 <CODE>&nbsp;void</CODE></FONT></TD>
499 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#setSelectionCells(java.lang.Object[])">setSelectionCells</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;cells)</CODE>
500
501 <BR>
502 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the selection to <code>cells</code>.</TD>
503 </TR>
504 <TR BGCOLOR="white" CLASS="TableRowColor">
505 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
506 <CODE>&nbsp;void</CODE></FONT></TD>
507 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#setSelectionMode(int)">setSelectionMode</A></B>(int&nbsp;mode)</CODE>
508
509 <BR>
510 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the selection mode, which must be one of SINGLE_TREE_SELECTION,</TD>
511 </TR>
512 </TABLE>
513 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
514 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
515 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
516 <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
517 </TR>
518 <TR BGCOLOR="white" CLASS="TableRowColor">
519 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
520 </TR>
521 </TABLE>
522 &nbsp;
523 <P>
524
525 <!-- ============ FIELD DETAIL =========== -->
526
527 <A NAME="field_detail"><!-- --></A>
528 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
529 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
530 <TD COLSPAN=1><FONT SIZE="+2">
531 <B>Field Detail</B></FONT></TD>
532 </TR>
533 </TABLE>
534
535 <A NAME="SELECTION_MODE_PROPERTY"><!-- --></A><H3>
536 SELECTION_MODE_PROPERTY</H3>
537 <PRE>
538 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SELECTION_MODE_PROPERTY</B></PRE>
539 <DL>
540 <DD>Property name for selectionMode.
541 <P>
542 <DL>
543 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jgraph.graph.DefaultGraphSelectionModel.SELECTION_MODE_PROPERTY">Constant Field Values</A></DL>
544 </DL>
545 <HR>
546
547 <A NAME="SELECTED"><!-- --></A><H3>
548 SELECTED</H3>
549 <PRE>
550 public static final int <B>SELECTED</B></PRE>
551 <DL>
552 <DD>Value that represents selected state in cellStates.
553 <P>
554 <DL>
555 <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#org.jgraph.graph.DefaultGraphSelectionModel.SELECTED">Constant Field Values</A></DL>
556 </DL>
557 <HR>
558
559 <A NAME="UNSELECTED"><!-- --></A><H3>
560 UNSELECTED</H3>
561 <PRE>
562 public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> <B>UNSELECTED</B></PRE>
563 <DL>
564 <DD>Object value that represents the unselected state in cellStates.
565 <P>
566 <DL>
567 </DL>
568 </DL>
569 <HR>
570
571 <A NAME="graph"><!-- --></A><H3>
572 graph</H3>
573 <PRE>
574 protected <A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A> <B>graph</B></PRE>
575 <DL>
576 <DD>Reference to the parent graph. Used to find parents and childs.
577 <P>
578 <DL>
579 </DL>
580 </DL>
581 <HR>
582
583 <A NAME="changeSupport"><!-- --></A><H3>
584 changeSupport</H3>
585 <PRE>
586 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/SwingPropertyChangeSupport.html" title="class or interface in javax.swing.event">SwingPropertyChangeSupport</A> <B>changeSupport</B></PRE>
587 <DL>
588 <DD>Used to message registered listeners.
589 <P>
590 <DL>
591 </DL>
592 </DL>
593 <HR>
594
595 <A NAME="listenerList"><!-- --></A><H3>
596 listenerList</H3>
597 <PRE>
598 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/EventListenerList.html" title="class or interface in javax.swing.event">EventListenerList</A> <B>listenerList</B></PRE>
599 <DL>
600 <DD>Event listener list.
601 <P>
602 <DL>
603 </DL>
604 </DL>
605 <HR>
606
607 <A NAME="selectionMode"><!-- --></A><H3>
608 selectionMode</H3>
609 <PRE>
610 protected int <B>selectionMode</B></PRE>
611 <DL>
612 <DD>Mode for the selection, will be either SINGLE_TREE_SELECTION,
613 CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION.
614 <P>
615 <DL>
616 </DL>
617 </DL>
618 <HR>
619
620 <A NAME="childrenSelectable"><!-- --></A><H3>
621 childrenSelectable</H3>
622 <PRE>
623 protected boolean <B>childrenSelectable</B></PRE>
624 <DL>
625 <DD>Boolean that indicates if the model allows stepping-into groups.
626 <P>
627 <DL>
628 </DL>
629 </DL>
630 <HR>
631
632 <A NAME="cellStates"><!-- --></A><H3>
633 cellStates</H3>
634 <PRE>
635 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A> <B>cellStates</B></PRE>
636 <DL>
637 <DD>Maps the cells to their selection state.
638 <P>
639 <DL>
640 </DL>
641 </DL>
642 <HR>
643
644 <A NAME="selection"><!-- --></A><H3>
645 selection</H3>
646 <PRE>
647 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>selection</B></PRE>
648 <DL>
649 <DD>List that contains the selected items.
650 <P>
651 <DL>
652 </DL>
653 </DL>
654
655 <!-- ========= CONSTRUCTOR DETAIL ======== -->
656
657 <A NAME="constructor_detail"><!-- --></A>
658 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
659 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
660 <TD COLSPAN=1><FONT SIZE="+2">
661 <B>Constructor Detail</B></FONT></TD>
662 </TR>
663 </TABLE>
664
665 <A NAME="DefaultGraphSelectionModel(org.jgraph.JGraph)"><!-- --></A><H3>
666 DefaultGraphSelectionModel</H3>
667 <PRE>
668 public <B>DefaultGraphSelectionModel</B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;graph)</PRE>
669 <DL>
670 <DD>Constructs a DefaultGraphSelectionModel for the specified graph.
671 <P>
672 </DL>
673
674 <!-- ============ METHOD DETAIL ========== -->
675
676 <A NAME="method_detail"><!-- --></A>
677 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
678 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
679 <TD COLSPAN=1><FONT SIZE="+2">
680 <B>Method Detail</B></FONT></TD>
681 </TR>
682 </TABLE>
683
684 <A NAME="setSelectionMode(int)"><!-- --></A><H3>
685 setSelectionMode</H3>
686 <PRE>
687 public void <B>setSelectionMode</B>(int&nbsp;mode)</PRE>
688 <DL>
689 <DD>Sets the selection mode, which must be one of SINGLE_TREE_SELECTION,
690 <P>
691 <DD><DL>
692 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#setSelectionMode(int)">setSelectionMode</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
693 </DD>
694 <DD><DL>
695 </DL>
696 </DD>
697 </DL>
698 <HR>
699
700 <A NAME="getSelectionMode()"><!-- --></A><H3>
701 getSelectionMode</H3>
702 <PRE>
703 public int <B>getSelectionMode</B>()</PRE>
704 <DL>
705 <DD>Returns the selection mode, one of <code>SINGLE_TREE_SELECTION</code>,
706 <code>DISCONTIGUOUS_TREE_SELECTION</code> or
707 <code>CONTIGUOUS_TREE_SELECTION</code>.
708 <P>
709 <DD><DL>
710 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#getSelectionMode()">getSelectionMode</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
711 </DD>
712 <DD><DL>
713 </DL>
714 </DD>
715 </DL>
716 <HR>
717
718 <A NAME="setChildrenSelectable(boolean)"><!-- --></A><H3>
719 setChildrenSelectable</H3>
720 <PRE>
721 public void <B>setChildrenSelectable</B>(boolean&nbsp;flag)</PRE>
722 <DL>
723 <DD>Sets if the selection model allows the selection of children.
724 <P>
725 <DD><DL>
726 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#setChildrenSelectable(boolean)">setChildrenSelectable</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
727 </DD>
728 <DD><DL>
729 </DL>
730 </DD>
731 </DL>
732 <HR>
733
734 <A NAME="isChildrenSelectable()"><!-- --></A><H3>
735 isChildrenSelectable</H3>
736 <PRE>
737 public boolean <B>isChildrenSelectable</B>()</PRE>
738 <DL>
739 <DD>Returns true if the selection model allows the selection of children.
740 <P>
741 <DD><DL>
742 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#isChildrenSelectable()">isChildrenSelectable</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
743 </DD>
744 <DD><DL>
745 </DL>
746 </DD>
747 </DL>
748 <HR>
749
750 <A NAME="isChildrenSelectable(java.lang.Object)"><!-- --></A><H3>
751 isChildrenSelectable</H3>
752 <PRE>
753 protected boolean <B>isChildrenSelectable</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
754 <DL>
755 <DD>Hook for subclassers for fine-grained control over stepping-into cells.
756 This implementation returns <code>childrenSelectable</code>&&
757 isCellSelected.
758 <P>
759 <DD><DL>
760 </DL>
761 </DD>
762 <DD><DL>
763 </DL>
764 </DD>
765 </DL>
766 <HR>
767
768 <A NAME="setSelectionCell(java.lang.Object)"><!-- --></A><H3>
769 setSelectionCell</H3>
770 <PRE>
771 public void <B>setSelectionCell</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
772 <DL>
773 <DD>Selects the specified cell.
774 <P>
775 <DD><DL>
776 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#setSelectionCell(java.lang.Object)">setSelectionCell</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
777 </DD>
778 <DD><DL>
779 <DT><B>Parameters:</B><DD><CODE>cell</CODE> - the cell to select</DL>
780 </DD>
781 </DL>
782 <HR>
783
784 <A NAME="setSelectionCells(java.lang.Object[])"><!-- --></A><H3>
785 setSelectionCells</H3>
786 <PRE>
787 public void <B>setSelectionCells</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;cells)</PRE>
788 <DL>
789 <DD>Sets the selection to <code>cells</code>. If this represents a change
790 the GraphSelectionListeners are notified. Potentially paths will be held
791 by this object; in other words don't change any of the objects in the
792 array once passed in.
793 <P>
794 <DD><DL>
795 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#setSelectionCells(java.lang.Object[])">setSelectionCells</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
796 </DD>
797 <DD><DL>
798 <DT><B>Parameters:</B><DD><CODE>cells</CODE> - new selection</DL>
799 </DD>
800 </DL>
801 <HR>
802
803 <A NAME="addSelectionCell(java.lang.Object)"><!-- --></A><H3>
804 addSelectionCell</H3>
805 <PRE>
806 public void <B>addSelectionCell</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
807 <DL>
808 <DD>Adds the specified cell to the current selection
809 <P>
810 <DD><DL>
811 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#addSelectionCell(java.lang.Object)">addSelectionCell</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
812 </DD>
813 <DD><DL>
814 <DT><B>Parameters:</B><DD><CODE>cell</CODE> - the cell to add to the current selection</DL>
815 </DD>
816 </DL>
817 <HR>
818
819 <A NAME="addSelectionCells(java.lang.Object[])"><!-- --></A><H3>
820 addSelectionCells</H3>
821 <PRE>
822 public void <B>addSelectionCells</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;cells)</PRE>
823 <DL>
824 <DD>Adds cells to the current selection.
825 <P>
826 <DD><DL>
827 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#addSelectionCells(java.lang.Object[])">addSelectionCells</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
828 </DD>
829 <DD><DL>
830 <DT><B>Parameters:</B><DD><CODE>cells</CODE> - the cells to be added to the current selection</DL>
831 </DD>
832 </DL>
833 <HR>
834
835 <A NAME="removeSelectionCell(java.lang.Object)"><!-- --></A><H3>
836 removeSelectionCell</H3>
837 <PRE>
838 public void <B>removeSelectionCell</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
839 <DL>
840 <DD>Removes the specified cell from the selection.
841 <P>
842 <DD><DL>
843 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#removeSelectionCell(java.lang.Object)">removeSelectionCell</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
844 </DD>
845 <DD><DL>
846 <DT><B>Parameters:</B><DD><CODE>cell</CODE> - the cell to remove from the current selection</DL>
847 </DD>
848 </DL>
849 <HR>
850
851 <A NAME="removeSelectionCells(java.lang.Object[])"><!-- --></A><H3>
852 removeSelectionCells</H3>
853 <PRE>
854 public void <B>removeSelectionCells</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;cells)</PRE>
855 <DL>
856 <DD>Removes the specified cells from the selection.
857 <P>
858 <DD><DL>
859 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#removeSelectionCells(java.lang.Object[])">removeSelectionCells</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
860 </DD>
861 <DD><DL>
862 <DT><B>Parameters:</B><DD><CODE>cells</CODE> - the cells to remove from the current selection</DL>
863 </DD>
864 </DL>
865 <HR>
866
867 <A NAME="getSelectables()"><!-- --></A><H3>
868 getSelectables</H3>
869 <PRE>
870 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] <B>getSelectables</B>()</PRE>
871 <DL>
872 <DD>Returns the cells that are currently selectable. The array is ordered so
873 that the top-most cell appears first. <br>
874 <P>
875 <DD><DL>
876 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#getSelectables()">getSelectables</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
877 </DD>
878 <DD><DL>
879 </DL>
880 </DD>
881 </DL>
882 <HR>
883
884 <A NAME="getSelectionCell()"><!-- --></A><H3>
885 getSelectionCell</H3>
886 <PRE>
887 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getSelectionCell</B>()</PRE>
888 <DL>
889 <DD>Returns the first cell in the selection. This is useful if there if only
890 one item currently selected.
891 <P>
892 <DD><DL>
893 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#getSelectionCell()">getSelectionCell</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
894 </DD>
895 <DD><DL>
896 </DL>
897 </DD>
898 </DL>
899 <HR>
900
901 <A NAME="getSelectionCells()"><!-- --></A><H3>
902 getSelectionCells</H3>
903 <PRE>
904 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] <B>getSelectionCells</B>()</PRE>
905 <DL>
906 <DD>Returns the cells in the selection. This will return null (or an empty
907 array) if nothing is currently selected.
908 <P>
909 <DD><DL>
910 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#getSelectionCells()">getSelectionCells</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
911 </DD>
912 <DD><DL>
913 </DL>
914 </DD>
915 </DL>
916 <HR>
917
918 <A NAME="getSelectionCount()"><!-- --></A><H3>
919 getSelectionCount</H3>
920 <PRE>
921 public int <B>getSelectionCount</B>()</PRE>
922 <DL>
923 <DD>Returns the number of paths that are selected.
924 <P>
925 <DD><DL>
926 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#getSelectionCount()">getSelectionCount</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
927 </DD>
928 <DD><DL>
929 </DL>
930 </DD>
931 </DL>
932 <HR>
933
934 <A NAME="isCellSelected(java.lang.Object)"><!-- --></A><H3>
935 isCellSelected</H3>
936 <PRE>
937 public boolean <B>isCellSelected</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
938 <DL>
939 <DD>Returns true if the cell, <code>cell</code>, is in the current
940 selection.
941 <P>
942 <DD><DL>
943 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#isCellSelected(java.lang.Object)">isCellSelected</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
944 </DD>
945 <DD><DL>
946 </DL>
947 </DD>
948 </DL>
949 <HR>
950
951 <A NAME="isChildrenSelected(java.lang.Object)"><!-- --></A><H3>
952 isChildrenSelected</H3>
953 <PRE>
954 public boolean <B>isChildrenSelected</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
955 <DL>
956 <DD>Returns true if the cell, <code>cell</code>, has selected children.
957 <P>
958 <DD><DL>
959 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#isChildrenSelected(java.lang.Object)">isChildrenSelected</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
960 </DD>
961 <DD><DL>
962 </DL>
963 </DD>
964 </DL>
965 <HR>
966
967 <A NAME="isSelectionEmpty()"><!-- --></A><H3>
968 isSelectionEmpty</H3>
969 <PRE>
970 public boolean <B>isSelectionEmpty</B>()</PRE>
971 <DL>
972 <DD>Returns true if the selection is currently empty.
973 <P>
974 <DD><DL>
975 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#isSelectionEmpty()">isSelectionEmpty</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
976 </DD>
977 <DD><DL>
978 </DL>
979 </DD>
980 </DL>
981 <HR>
982
983 <A NAME="clearSelection()"><!-- --></A><H3>
984 clearSelection</H3>
985 <PRE>
986 public void <B>clearSelection</B>()</PRE>
987 <DL>
988 <DD>Empties the current selection. If this represents a change in the current
989 selection, the selection listeners are notified.
990 <P>
991 <DD><DL>
992 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#clearSelection()">clearSelection</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
993 </DD>
994 <DD><DL>
995 </DL>
996 </DD>
997 </DL>
998 <HR>
999
1000 <A NAME="getSelectedChildCount(java.lang.Object)"><!-- --></A><H3>
1001 getSelectedChildCount</H3>
1002 <PRE>
1003 protected int <B>getSelectedChildCount</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
1004 <DL>
1005 <DD>Returns the number of selected childs for <code>cell</code>.
1006 <P>
1007 <DD><DL>
1008 </DL>
1009 </DD>
1010 <DD><DL>
1011 </DL>
1012 </DD>
1013 </DL>
1014 <HR>
1015
1016 <A NAME="setSelectedChildCount(java.lang.Object, int)"><!-- --></A><H3>
1017 setSelectedChildCount</H3>
1018 <PRE>
1019 protected void <B>setSelectedChildCount</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell,
1020 int&nbsp;count)</PRE>
1021 <DL>
1022 <DD>Sets the number of selected childs for <code>cell</code> to
1023 <code>count</code>.
1024 <P>
1025 <DD><DL>
1026 </DL>
1027 </DD>
1028 <DD><DL>
1029 </DL>
1030 </DD>
1031 </DL>
1032 <HR>
1033
1034 <A NAME="select(java.util.Set, java.lang.Object)"><!-- --></A><H3>
1035 select</H3>
1036 <PRE>
1037 protected boolean <B>select</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A>&nbsp;set,
1038 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
1039 <DL>
1040 <DD>Selects a single cell and updates all datastructures. No listeners are
1041 notified. Override this method to control individual cell selection.
1042 <P>
1043 <DD><DL>
1044 </DL>
1045 </DD>
1046 <DD><DL>
1047 </DL>
1048 </DD>
1049 </DL>
1050 <HR>
1051
1052 <A NAME="deselect(java.lang.Object)"><!-- --></A><H3>
1053 deselect</H3>
1054 <PRE>
1055 protected boolean <B>deselect</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;cell)</PRE>
1056 <DL>
1057 <DD>Deselects a single cell and updates all datastructures. No listeners are
1058 notified.
1059 <P>
1060 <DD><DL>
1061 </DL>
1062 </DD>
1063 <DD><DL>
1064 </DL>
1065 </DD>
1066 </DL>
1067 <HR>
1068
1069 <A NAME="addGraphSelectionListener(org.jgraph.event.GraphSelectionListener)"><!-- --></A><H3>
1070 addGraphSelectionListener</H3>
1071 <PRE>
1072 public void <B>addGraphSelectionListener</B>(<A HREF="../../../org/jgraph/event/GraphSelectionListener.html" title="interface in org.jgraph.event">GraphSelectionListener</A>&nbsp;x)</PRE>
1073 <DL>
1074 <DD>Adds x to the list of listeners that are notified each time the set of
1075 selected TreePaths changes.
1076 <P>
1077 <DD><DL>
1078 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#addGraphSelectionListener(org.jgraph.event.GraphSelectionListener)">addGraphSelectionListener</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
1079 </DD>
1080 <DD><DL>
1081 <DT><B>Parameters:</B><DD><CODE>x</CODE> - the new listener to be added</DL>
1082 </DD>
1083 </DL>
1084 <HR>
1085
1086 <A NAME="removeGraphSelectionListener(org.jgraph.event.GraphSelectionListener)"><!-- --></A><H3>
1087 removeGraphSelectionListener</H3>
1088 <PRE>
1089 public void <B>removeGraphSelectionListener</B>(<A HREF="../../../org/jgraph/event/GraphSelectionListener.html" title="interface in org.jgraph.event">GraphSelectionListener</A>&nbsp;x)</PRE>
1090 <DL>
1091 <DD>Removes x from the list of listeners that are notified each time the set
1092 of selected TreePaths changes.
1093 <P>
1094 <DD><DL>
1095 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#removeGraphSelectionListener(org.jgraph.event.GraphSelectionListener)">removeGraphSelectionListener</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
1096 </DD>
1097 <DD><DL>
1098 <DT><B>Parameters:</B><DD><CODE>x</CODE> - the listener to remove</DL>
1099 </DD>
1100 </DL>
1101 <HR>
1102
1103 <A NAME="fireValueChanged(org.jgraph.event.GraphSelectionEvent)"><!-- --></A><H3>
1104 fireValueChanged</H3>
1105 <PRE>
1106 protected void <B>fireValueChanged</B>(<A HREF="../../../org/jgraph/event/GraphSelectionEvent.html" title="class in org.jgraph.event">GraphSelectionEvent</A>&nbsp;e)</PRE>
1107 <DL>
1108 <DD>Notifies all listeners that are registered for tree selection events on
1109 this object.
1110 <P>
1111 <DD><DL>
1112 </DL>
1113 </DD>
1114 <DD><DL>
1115 <DT><B>See Also:</B><DD><A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.html#addGraphSelectionListener(org.jgraph.event.GraphSelectionListener)"><CODE>addGraphSelectionListener(org.jgraph.event.GraphSelectionListener)</CODE></A>,
1116 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/event/EventListenerList.html" title="class or interface in javax.swing.event"><CODE>EventListenerList</CODE></A></DL>
1117 </DD>
1118 </DL>
1119 <HR>
1120
1121 <A NAME="getListeners(java.lang.Class)"><!-- --></A><H3>
1122 getListeners</H3>
1123 <PRE>
1124 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/EventListener.html" title="class or interface in java.util">EventListener</A>[] <B>getListeners</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;listenerType)</PRE>
1125 <DL>
1126 <DD>Returns an array of all the listeners of the given type that were added
1127 to this model.
1128 <P>
1129 <DD><DL>
1130 </DL>
1131 </DD>
1132 <DD><DL>
1133
1134 <DT><B>Returns:</B><DD>all of the objects receiving <em>listenerType</em>
1135 notifications from this model<DT><B>Since:</B></DT>
1136 <DD>1.3</DD>
1137 </DL>
1138 </DD>
1139 </DL>
1140 <HR>
1141
1142 <A NAME="addPropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>
1143 addPropertyChangeListener</H3>
1144 <PRE>
1145 public void <B>addPropertyChangeListener</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A>&nbsp;listener)</PRE>
1146 <DL>
1147 <DD>Adds a PropertyChangeListener to the listener list. The listener is
1148 registered for all properties.
1149 <p>
1150 A PropertyChangeEvent will get fired when the selection mode changes.
1151 <P>
1152 <DD><DL>
1153 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
1154 </DD>
1155 <DD><DL>
1156 <DT><B>Parameters:</B><DD><CODE>listener</CODE> - the PropertyChangeListener to be added</DL>
1157 </DD>
1158 </DL>
1159 <HR>
1160
1161 <A NAME="removePropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>
1162 removePropertyChangeListener</H3>
1163 <PRE>
1164 public void <B>removePropertyChangeListener</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/beans/PropertyChangeListener.html" title="class or interface in java.beans">PropertyChangeListener</A>&nbsp;listener)</PRE>
1165 <DL>
1166 <DD>Removes a PropertyChangeListener from the listener list. This removes a
1167 PropertyChangeListener that was registered for all properties.
1168 <P>
1169 <DD><DL>
1170 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphSelectionModel.html" title="interface in org.jgraph.graph">GraphSelectionModel</A></CODE></DL>
1171 </DD>
1172 <DD><DL>
1173 <DT><B>Parameters:</B><DD><CODE>listener</CODE> - the PropertyChangeListener to be removed</DL>
1174 </DD>
1175 </DL>
1176 <HR>
1177
1178 <A NAME="notifyCellChange(java.util.Vector)"><!-- --></A><H3>
1179 notifyCellChange</H3>
1180 <PRE>
1181 protected void <B>notifyCellChange</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Vector.html" title="class or interface in java.util">Vector</A>&nbsp;changedCells)</PRE>
1182 <DL>
1183 <DD>Notifies listeners of a change in path. <code>changePaths</code> should
1184 contain instances of PathPlaceHolder.
1185 <P>
1186 <DD><DL>
1187 </DL>
1188 </DD>
1189 <DD><DL>
1190 </DL>
1191 </DD>
1192 </DL>
1193 <HR>
1194
1195 <A NAME="clone()"><!-- --></A><H3>
1196 clone</H3>
1197 <PRE>
1198 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>clone</B>()
1199 throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CloneNotSupportedException.html" title="class or interface in java.lang">CloneNotSupportedException</A></PRE>
1200 <DL>
1201 <DD>Returns a clone of this object with the same selection. This method does
1202 not duplicate selection listeners and property listeners.
1203 <P>
1204 <DD><DL>
1205 </DL>
1206 </DD>
1207 <DD><DL>
1208
1209 <DT><B>Throws:</B>
1210 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/CloneNotSupportedException.html" title="class or interface in java.lang">CloneNotSupportedException</A></CODE> - never thrown by instances of this class</DL>
1211 </DD>
1212 </DL>
1213 <!-- ========= END OF CLASS DATA ========= -->
1214 <HR>
1215
1216
1217 <!-- ======= START OF BOTTOM NAVBAR ====== -->
1218 <A NAME="navbar_bottom"><!-- --></A>
1219 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1220 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1221 <TR>
1222 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1223 <A NAME="navbar_bottom_firstrow"><!-- --></A>
1224 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1225 <TR ALIGN="center" VALIGN="top">
1226 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1227 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1228 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1229 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DefaultGraphSelectionModel.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
1230 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1231 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1232 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1233 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1234 </TR>
1235 </TABLE>
1236 </TD>
1237 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1238 <p><b>JGraph</b><br>v5.10.1.4</p></EM>
1239 </TD>
1240 </TR>
1241
1242 <TR>
1243 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1244 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelLayerEdit.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
1245 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphSelectionModel.CellPlaceHolder.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
1246 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1247 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
1248 &nbsp;<A HREF="DefaultGraphSelectionModel.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
1249 &nbsp;<SCRIPT type="text/javascript">
1250 <!--
1251 if(window==top) {
1252 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
1253 }
1254 //-->
1255 </SCRIPT>
1256 <NOSCRIPT>
1257 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
1258 </NOSCRIPT>
1259
1260 </FONT></TD>
1261 </TR>
1262 <TR>
1263 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1264 SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1265 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1266 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1267 </TR>
1268 </TABLE>
1269 <A NAME="skip-navbar_bottom"></A>
1270 <!-- ======== END OF BOTTOM NAVBAR ======= -->
1271
1272 <HR>
1273 <font size=1>Copyright (C) 2001-2006 <a href="http://www.jgraph.com/"
1274 target="_blank">Gaudenz Alder</a>. All rights reserved.</font>
1275 </BODY>
1276 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26