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

Contents of /libjgraph-java/trunk/doc/api/org/jgraph/graph/DefaultGraphModel.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: 140331 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 DefaultGraphModel (JGraph v5.10.1.4 API Specification)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jgraph.graph.DefaultGraphModel 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="DefaultGraphModel (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/DefaultGraphModel.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/DefaultGraphCellEditor.EditorContainer.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphModel.EmptyIterator.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="DefaultGraphModel.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 DefaultGraphModel</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"><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html" title="class or interface in javax.swing.undo">javax.swing.undo.UndoableEditSupport</A>
91 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jgraph.graph.DefaultGraphModel</B>
92 </PRE>
93 <DL>
94 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</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>
95 </DL>
96 <HR>
97 <DL>
98 <DT>public class <B>DefaultGraphModel</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html" title="class or interface in javax.swing.undo">UndoableEditSupport</A><DT>implements <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A>, <A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></DL>
99
100 <P>
101 A simple implementation of a graph model.
102 <P>
103
104 <P>
105 <DL>
106 <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jgraph.graph.DefaultGraphModel">Serialized Form</A></DL>
107 <HR>
108
109 <P>
110 <!-- ======== NESTED CLASS SUMMARY ======== -->
111
112 <A NAME="nested_class_summary"><!-- --></A>
113 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
114 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
115 <TD COLSPAN=2><FONT SIZE="+2">
116 <B>Nested Class Summary</B></FONT></TD>
117 </TR>
118 <TR BGCOLOR="white" CLASS="TableRowColor">
119 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
120 <CODE>static&nbsp;class</CODE></FONT></TD>
121 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.EmptyIterator.html" title="class in org.jgraph.graph">DefaultGraphModel.EmptyIterator</A></B></CODE>
122
123 <BR>
124 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
125 </TR>
126 <TR BGCOLOR="white" CLASS="TableRowColor">
127 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128 <CODE>&nbsp;class</CODE></FONT></TD>
129 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelEdit.html" title="class in org.jgraph.graph">DefaultGraphModel.GraphModelEdit</A></B></CODE>
130
131 <BR>
132 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An implementation of GraphModelChange that can be added to the model
133 event.</TD>
134 </TR>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137 <CODE>&nbsp;class</CODE></FONT></TD>
138 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelLayerEdit.html" title="class in org.jgraph.graph">DefaultGraphModel.GraphModelLayerEdit</A></B></CODE>
139
140 <BR>
141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An implementation of GraphViewChange.</TD>
142 </TR>
143 </TABLE>
144 &nbsp;
145 <!-- =========== FIELD SUMMARY =========== -->
146
147 <A NAME="field_summary"><!-- --></A>
148 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
149 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
150 <TD COLSPAN=2><FONT SIZE="+2">
151 <B>Field Summary</B></FONT></TD>
152 </TR>
153 <TR BGCOLOR="white" CLASS="TableRowColor">
154 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
155 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
156 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#asksAllowsChildren">asksAllowsChildren</A></B></CODE>
157
158 <BR>
159 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates whether isLeaf is based on a node's allowsChildren value.</TD>
160 </TR>
161 <TR BGCOLOR="white" CLASS="TableRowColor">
162 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
164 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#attributes">attributes</A></B></CODE>
165
166 <BR>
167 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The model's own attributes as a map.</TD>
168 </TR>
169 <TR BGCOLOR="white" CLASS="TableRowColor">
170 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A></CODE></FONT></TD>
172 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#currentUpdate">currentUpdate</A></B></CODE>
173
174 <BR>
175 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A collection of unexecuted updates on this model</TD>
176 </TR>
177 <TR BGCOLOR="white" CLASS="TableRowColor">
178 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A></CODE></FONT></TD>
180 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#emptyIterator">emptyIterator</A></B></CODE>
181
182 <BR>
183 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default instance of an empty iterator.</TD>
184 </TR>
185 <TR BGCOLOR="white" CLASS="TableRowColor">
186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187 <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>
188 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#listenerList">listenerList</A></B></CODE>
189
190 <BR>
191 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The list of listeners that listen to the model.</TD>
192 </TR>
193 <TR BGCOLOR="white" CLASS="TableRowColor">
194 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
196 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#removeEmptyGroups">removeEmptyGroups</A></B></CODE>
197
198 <BR>
199 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether or not to remove group cells from the model when all of their
200 children are removed</TD>
201 </TR>
202 <TR BGCOLOR="white" CLASS="TableRowColor">
203 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD>
205 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#roots">roots</A></B></CODE>
206
207 <BR>
208 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set that contains all root cells of this model.</TD>
209 </TR>
210 </TABLE>
211 &nbsp;<A NAME="fields_inherited_from_class_javax.swing.undo.UndoableEditSupport"><!-- --></A>
212 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
213 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
214 <TD><B>Fields inherited from class javax.swing.undo.<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html" title="class or interface in javax.swing.undo">UndoableEditSupport</A></B></TD>
215 </TR>
216 <TR BGCOLOR="white" CLASS="TableRowColor">
217 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#compoundEdit" title="class or interface in javax.swing.undo">compoundEdit</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#listeners" title="class or interface in javax.swing.undo">listeners</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#realSource" title="class or interface in javax.swing.undo">realSource</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#updateLevel" title="class or interface in javax.swing.undo">updateLevel</A></CODE></TD>
218 </TR>
219 </TABLE>
220 &nbsp;
221 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
222
223 <A NAME="constructor_summary"><!-- --></A>
224 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
225 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
226 <TD COLSPAN=2><FONT SIZE="+2">
227 <B>Constructor Summary</B></FONT></TD>
228 </TR>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#DefaultGraphModel()">DefaultGraphModel</A></B>()</CODE>
231
232 <BR>
233 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a model that is not an attribute store.</TD>
234 </TR>
235 <TR BGCOLOR="white" CLASS="TableRowColor">
236 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#DefaultGraphModel(java.util.List, org.jgraph.graph.AttributeMap)">DefaultGraphModel</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&nbsp;roots,
237 <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A>&nbsp;attributes)</CODE>
238
239 <BR>
240 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a model that is not an attribute store.</TD>
241 </TR>
242 <TR BGCOLOR="white" CLASS="TableRowColor">
243 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#DefaultGraphModel(java.util.List, org.jgraph.graph.AttributeMap, org.jgraph.graph.ConnectionSet)">DefaultGraphModel</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&nbsp;roots,
244 <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A>&nbsp;attributes,
245 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs)</CODE>
246
247 <BR>
248 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a model using the specified information to construct the
249 cells, attributes and connection data.</TD>
250 </TR>
251 </TABLE>
252 &nbsp;
253 <!-- ========== METHOD SUMMARY =========== -->
254
255 <A NAME="method_summary"><!-- --></A>
256 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
257 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
258 <TD COLSPAN=2><FONT SIZE="+2">
259 <B>Method Summary</B></FONT></TD>
260 </TR>
261 <TR BGCOLOR="white" CLASS="TableRowColor">
262 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
263 <CODE>&nbsp;boolean</CODE></FONT></TD>
264 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#acceptsSource(java.lang.Object, java.lang.Object)">acceptsSource</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;edge,
265 <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;port)</CODE>
266
267 <BR>
268 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if <code>port</code> is a valid source for
269 <code>edge</code>.</TD>
270 </TR>
271 <TR BGCOLOR="white" CLASS="TableRowColor">
272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273 <CODE>&nbsp;boolean</CODE></FONT></TD>
274 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#acceptsTarget(java.lang.Object, java.lang.Object)">acceptsTarget</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;edge,
275 <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;port)</CODE>
276
277 <BR>
278 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if <code>port</code> is a valid target for
279 <code>edge</code>.</TD>
280 </TR>
281 <TR BGCOLOR="white" CLASS="TableRowColor">
282 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283 <CODE>&nbsp;void</CODE></FONT></TD>
284 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#addGraphModelListener(org.jgraph.event.GraphModelListener)">addGraphModelListener</A></B>(<A HREF="../../../org/jgraph/event/GraphModelListener.html" title="interface in org.jgraph.event">GraphModelListener</A>&nbsp;l)</CODE>
285
286 <BR>
287 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a listener for the GraphModelEvent posted after the graph changes.</TD>
288 </TR>
289 <TR BGCOLOR="white" CLASS="TableRowColor">
290 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
291 <CODE>&nbsp;void</CODE></FONT></TD>
292 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#beginUpdate()">beginUpdate</A></B>()</CODE>
293
294 <BR>
295 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates the start of one level of an executable change</TD>
296 </TR>
297 <TR BGCOLOR="white" CLASS="TableRowColor">
298 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
299 <CODE>&nbsp;void</CODE></FONT></TD>
300 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#cellsChanged(java.lang.Object[])">cellsChanged</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>
301
302 <BR>
303 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoke this method after you've changed how the cells are to be
304 represented in the graph.</TD>
305 </TR>
306 <TR BGCOLOR="white" CLASS="TableRowColor">
307 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
308 <CODE>static&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>
309 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#cloneCell(org.jgraph.graph.GraphModel, java.lang.Object)">cloneCell</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
310 <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>
311
312 <BR>
313 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a deep clone of the specified cell, including all children.</TD>
314 </TR>
315 <TR BGCOLOR="white" CLASS="TableRowColor">
316 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
317 <CODE>static&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>
318 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#cloneCell(org.jgraph.graph.GraphModel, java.lang.Object[])">cloneCell</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
319 <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>
320
321 <BR>
322 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a deep clone of the specified cells, including all children.</TD>
323 </TR>
324 <TR BGCOLOR="white" CLASS="TableRowColor">
325 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
326 <CODE>protected &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>
327 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#cloneCell(java.lang.Object)">cloneCell</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;cellObj)</CODE>
328
329 <BR>
330 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a shallow copy of the cell including a copy of the user object.</TD>
331 </TR>
332 <TR BGCOLOR="white" CLASS="TableRowColor">
333 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
334 <CODE>&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>
335 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#cloneCells(java.lang.Object[])">cloneCells</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>
336
337 <BR>
338 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a map of (cell, clone)-pairs for all <code>cells</code>.</TD>
339 </TR>
340 <TR BGCOLOR="white" CLASS="TableRowColor">
341 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
342 <CODE>protected &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>
343 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#cloneUserObject(java.lang.Object)">cloneUserObject</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;userObject)</CODE>
344
345 <BR>
346 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clones the user object.</TD>
347 </TR>
348 <TR BGCOLOR="white" CLASS="TableRowColor">
349 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
350 <CODE>protected &nbsp;void</CODE></FONT></TD>
351 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#connect(java.lang.Object, java.lang.Object, boolean, boolean)">connect</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;edge,
352 <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;port,
353 boolean&nbsp;isSource,
354 boolean&nbsp;insert)</CODE>
355
356 <BR>
357 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Connects or disconnects the edge and port in this model based on
358 <code>remove</code>.</TD>
359 </TR>
360 <TR BGCOLOR="white" CLASS="TableRowColor">
361 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
362 <CODE>&nbsp;boolean</CODE></FONT></TD>
363 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#contains(java.lang.Object)">contains</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;node)</CODE>
364
365 <BR>
366 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if <code>node</code> or one of its
367 ancestors is in the model.</TD>
368 </TR>
369 <TR BGCOLOR="white" CLASS="TableRowColor">
370 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
371 <CODE>static&nbsp;boolean</CODE></FONT></TD>
372 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#containsEdgeBetween(org.jgraph.graph.GraphModel, java.lang.Object, java.lang.Object)">containsEdgeBetween</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
373 <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;v1,
374 <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;v2)</CODE>
375
376 <BR>
377 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the given vertices are conntected by a single edge in
378 this document.</TD>
379 </TR>
380 <TR BGCOLOR="white" CLASS="TableRowColor">
381 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
382 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelEdit.html" title="class in org.jgraph.graph">DefaultGraphModel.GraphModelEdit</A></CODE></FONT></TD>
383 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#createEdit(java.lang.Object[], java.lang.Object[], java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])">createEdit</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;inserted,
384 <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;removed,
385 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes,
386 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs,
387 <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;pm,
388 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEdit.html" title="class or interface in javax.swing.undo">UndoableEdit</A>[]&nbsp;edits)</CODE>
389
390 <BR>
391 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
392 </TR>
393 <TR BGCOLOR="white" CLASS="TableRowColor">
394 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
395 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelLayerEdit.html" title="class in org.jgraph.graph">DefaultGraphModel.GraphModelLayerEdit</A></CODE></FONT></TD>
396 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#createLayerEdit(java.lang.Object[], int)">createLayerEdit</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,
397 int&nbsp;layer)</CODE>
398
399 <BR>
400 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
401 </TR>
402 <TR BGCOLOR="white" CLASS="TableRowColor">
403 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
404 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelEdit.html" title="class in org.jgraph.graph">DefaultGraphModel.GraphModelEdit</A></CODE></FONT></TD>
405 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#createRemoveEdit(java.lang.Object[])">createRemoveEdit</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>
406
407 <BR>
408 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an edit that represents a remove.</TD>
409 </TR>
410 <TR BGCOLOR="white" CLASS="TableRowColor">
411 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
412 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A></CODE></FONT></TD>
413 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#edges(java.lang.Object)">edges</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;port)</CODE>
414
415 <BR>
416 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an iterator of the edges connected to <code>port</code>.</TD>
417 </TR>
418 <TR BGCOLOR="white" CLASS="TableRowColor">
419 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
420 <CODE>&nbsp;void</CODE></FONT></TD>
421 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#edit(java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])">edit</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes,
422 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs,
423 <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;pm,
424 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEdit.html" title="class or interface in javax.swing.undo">UndoableEdit</A>[]&nbsp;edits)</CODE>
425
426 <BR>
427 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shortcut to the new edit method which allows inserts and removes to go
428 along with an edit.</TD>
429 </TR>
430 <TR BGCOLOR="white" CLASS="TableRowColor">
431 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
432 <CODE>&nbsp;void</CODE></FONT></TD>
433 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#edit(java.lang.Object[], java.lang.Object[], java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])">edit</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;inserted,
434 <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;removed,
435 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes,
436 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs,
437 <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;pm,
438 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEdit.html" title="class or interface in javax.swing.undo">UndoableEdit</A>[]&nbsp;edits)</CODE>
439
440 <BR>
441 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applies <code>attributes</code> and the connection changes to the
442 model.</TD>
443 </TR>
444 <TR BGCOLOR="white" CLASS="TableRowColor">
445 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
446 <CODE>&nbsp;void</CODE></FONT></TD>
447 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#endUpdate()">endUpdate</A></B>()</CODE>
448
449 <BR>
450 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates the end of the current level of an executable change</TD>
451 </TR>
452 <TR BGCOLOR="white" CLASS="TableRowColor">
453 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
454 <CODE>&nbsp;void</CODE></FONT></TD>
455 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#execute(org.jgraph.graph.ExecutableChange)">execute</A></B>(<A HREF="../../../org/jgraph/graph/ExecutableChange.html" title="class in org.jgraph.graph">ExecutableChange</A>&nbsp;change)</CODE>
456
457 <BR>
458 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Executes the specified executable change on this graph model</TD>
459 </TR>
460 <TR BGCOLOR="white" CLASS="TableRowColor">
461 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
462 <CODE>protected &nbsp;void</CODE></FONT></TD>
463 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#fireGraphChanged(java.lang.Object, org.jgraph.event.GraphModelEvent.GraphModelChange)">fireGraphChanged</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;source,
464 <A HREF="../../../org/jgraph/event/GraphModelEvent.GraphModelChange.html" title="interface in org.jgraph.event">GraphModelEvent.GraphModelChange</A>&nbsp;edit)</CODE>
465
466 <BR>
467 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
468 </TR>
469 <TR BGCOLOR="white" CLASS="TableRowColor">
470 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
471 <CODE>static&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>
472 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getAll(org.jgraph.graph.GraphModel)">getAll</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model)</CODE>
473
474 <BR>
475 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns all cells of the model in an array.</TD>
476 </TR>
477 <TR BGCOLOR="white" CLASS="TableRowColor">
478 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
479 <CODE>&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>
480 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getAttributes()">getAttributes</A></B>()</CODE>
481
482 <BR>
483 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the graph model's attribute.</TD>
484 </TR>
485 <TR BGCOLOR="white" CLASS="TableRowColor">
486 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
487 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
488 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getAttributes(java.lang.Object)">getAttributes</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;node)</CODE>
489
490 <BR>
491 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>Map</code> that represents the attributes for the
492 specified cell.</TD>
493 </TR>
494 <TR BGCOLOR="white" CLASS="TableRowColor">
495 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
496 <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>
497 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getChild(java.lang.Object, int)">getChild</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;parent,
498 int&nbsp;index)</CODE>
499
500 <BR>
501 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the child of <I>parent </I> at index <I>index </I> in the
502 parent's child array.</TD>
503 </TR>
504 <TR BGCOLOR="white" CLASS="TableRowColor">
505 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
506 <CODE>&nbsp;int</CODE></FONT></TD>
507 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getChildCount(java.lang.Object)">getChildCount</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;parent)</CODE>
508
509 <BR>
510 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of children of <I>parent </I>.</TD>
511 </TR>
512 <TR BGCOLOR="white" CLASS="TableRowColor">
513 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
514 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A></CODE></FONT></TD>
515 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getConnectionSet()">getConnectionSet</A></B>()</CODE>
516
517 <BR>
518 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A shortcut method to create a connection set that represents the
519 connections in this model.</TD>
520 </TR>
521 <TR BGCOLOR="white" CLASS="TableRowColor">
522 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
523 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD>
524 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getDescendants(org.jgraph.graph.GraphModel, java.lang.Object[])">getDescendants</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
525 <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>
526
527 <BR>
528 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flattens the given array of root cells by adding the roots and their
529 descandants.</TD>
530 </TR>
531 <TR BGCOLOR="white" CLASS="TableRowColor">
532 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
533 <CODE>static&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>
534 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getEdges(org.jgraph.graph.GraphModel, java.lang.Object[])">getEdges</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
535 <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>
536
537 <BR>
538 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the set of all connected edges to <code>cells</code> or their
539 descendants.</TD>
540 </TR>
541 <TR BGCOLOR="white" CLASS="TableRowColor">
542 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
543 <CODE>static&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>
544 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getEdges(org.jgraph.graph.GraphModel, java.lang.Object, boolean)">getEdges</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
545 <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,
546 boolean&nbsp;incoming)</CODE>
547
548 <BR>
549 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the incoming or outgoing edges for cell.</TD>
550 </TR>
551 <TR BGCOLOR="white" CLASS="TableRowColor">
552 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
553 <CODE>static&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>
554 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getEdgesBetween(org.jgraph.graph.GraphModel, java.lang.Object, java.lang.Object, boolean)">getEdgesBetween</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
555 <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;cell1,
556 <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;cell2,
557 boolean&nbsp;directed)</CODE>
558
559 <BR>
560 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the edges between two specified ports or two specified vertices.</TD>
561 </TR>
562 <TR BGCOLOR="white" CLASS="TableRowColor">
563 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
564 <CODE>&nbsp;<A HREF="../../../org/jgraph/event/GraphModelListener.html" title="interface in org.jgraph.event">GraphModelListener</A>[]</CODE></FONT></TD>
565 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getGraphModelListeners()">getGraphModelListeners</A></B>()</CODE>
566
567 <BR>
568 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of all GraphModelListeners that were added to this model.</TD>
569 </TR>
570 <TR BGCOLOR="white" CLASS="TableRowColor">
571 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
572 <CODE>static&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>
573 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getIncomingEdges(org.jgraph.graph.GraphModel, java.lang.Object)">getIncomingEdges</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
574 <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>
575
576 <BR>
577 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the incoming edges for cell.</TD>
578 </TR>
579 <TR BGCOLOR="white" CLASS="TableRowColor">
580 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
581 <CODE>&nbsp;int</CODE></FONT></TD>
582 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getIndexOfChild(java.lang.Object, java.lang.Object)">getIndexOfChild</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;parent,
583 <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;child)</CODE>
584
585 <BR>
586 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of child in parent.</TD>
587 </TR>
588 <TR BGCOLOR="white" CLASS="TableRowColor">
589 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
590 <CODE>&nbsp;int</CODE></FONT></TD>
591 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getIndexOfRoot(java.lang.Object)">getIndexOfRoot</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;root)</CODE>
592
593 <BR>
594 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of <code>root</code> in the model.</TD>
595 </TR>
596 <TR BGCOLOR="white" CLASS="TableRowColor">
597 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
598 <CODE>static&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>
599 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getOpposite(org.jgraph.graph.GraphModel, java.lang.Object, java.lang.Object)">getOpposite</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
600 <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;edge,
601 <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>
602
603 <BR>
604 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
605 </TR>
606 <TR BGCOLOR="white" CLASS="TableRowColor">
607 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
608 <CODE>static&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>
609 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getOutgoingEdges(org.jgraph.graph.GraphModel, java.lang.Object)">getOutgoingEdges</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
610 <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>
611
612 <BR>
613 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the outgoing edges for cell.</TD>
614 </TR>
615 <TR BGCOLOR="white" CLASS="TableRowColor">
616 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
617 <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>
618 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getParent(java.lang.Object)">getParent</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;child)</CODE>
619
620 <BR>
621 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the parent of <I>child </I> in the model.</TD>
622 </TR>
623 <TR BGCOLOR="white" CLASS="TableRowColor">
624 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
625 <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>
626 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getRootAt(int)">getRootAt</A></B>(int&nbsp;index)</CODE>
627
628 <BR>
629 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the root at index <I>index </I> in the model.</TD>
630 </TR>
631 <TR BGCOLOR="white" CLASS="TableRowColor">
632 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
633 <CODE>&nbsp;int</CODE></FONT></TD>
634 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getRootCount()">getRootCount</A></B>()</CODE>
635
636 <BR>
637 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of roots in the model.</TD>
638 </TR>
639 <TR BGCOLOR="white" CLASS="TableRowColor">
640 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
641 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD>
642 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getRoots()">getRoots</A></B>()</CODE>
643
644 <BR>
645 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
646 </TR>
647 <TR BGCOLOR="white" CLASS="TableRowColor">
648 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
649 <CODE>static&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>
650 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getRoots(org.jgraph.graph.GraphModel)">getRoots</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model)</CODE>
651
652 <BR>
653 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the roots of the specified model as an array.</TD>
654 </TR>
655 <TR BGCOLOR="white" CLASS="TableRowColor">
656 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
657 <CODE>static&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>
658 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getRoots(org.jgraph.graph.GraphModel, java.lang.Object[])">getRoots</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
659 <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>
660
661 <BR>
662 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the roots in <code>cells</code> by checking if their parent is
663 <code>null</code>.</TD>
664 </TR>
665 <TR BGCOLOR="white" CLASS="TableRowColor">
666 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
667 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A></CODE></FONT></TD>
668 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getRootsAsCollection(org.jgraph.graph.GraphModel)">getRootsAsCollection</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model)</CODE>
669
670 <BR>
671 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the roots of the specified model as a collection.</TD>
672 </TR>
673 <TR BGCOLOR="white" CLASS="TableRowColor">
674 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
675 <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>
676 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getSource(java.lang.Object)">getSource</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;edge)</CODE>
677
678 <BR>
679 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the source of <code>edge</code>.</TD>
680 </TR>
681 <TR BGCOLOR="white" CLASS="TableRowColor">
682 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
683 <CODE>static&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>
684 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getSourceVertex(org.jgraph.graph.GraphModel, java.lang.Object)">getSourceVertex</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
685 <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;edge)</CODE>
686
687 <BR>
688 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the source vertex of the edge by calling getParent on getSource
689 on the specified model.</TD>
690 </TR>
691 <TR BGCOLOR="white" CLASS="TableRowColor">
692 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
693 <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>
694 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getTarget(java.lang.Object)">getTarget</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;edge)</CODE>
695
696 <BR>
697 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the target of <code>edge</code>.</TD>
698 </TR>
699 <TR BGCOLOR="white" CLASS="TableRowColor">
700 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
701 <CODE>static&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>
702 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getTargetVertex(org.jgraph.graph.GraphModel, java.lang.Object)">getTargetVertex</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
703 <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;edge)</CODE>
704
705 <BR>
706 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the target vertex of the edge by calling getParent on getTarget
707 on the specified model.</TD>
708 </TR>
709 <TR BGCOLOR="white" CLASS="TableRowColor">
710 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
711 <CODE>static&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>
712 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getTopmostCells(org.jgraph.graph.GraphModel, java.lang.Object[])">getTopmostCells</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
713 <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>
714
715 <BR>
716 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
717 </TR>
718 <TR BGCOLOR="white" CLASS="TableRowColor">
719 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
720 <CODE>&nbsp;int</CODE></FONT></TD>
721 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getUpdateLevel()">getUpdateLevel</A></B>()</CODE>
722
723 <BR>
724 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
725 </TR>
726 <TR BGCOLOR="white" CLASS="TableRowColor">
727 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
728 <CODE>static&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>
729 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getUserObject(java.lang.Object)">getUserObject</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>
730
731 <BR>
732 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Use <A HREF="../../../org/jgraph/graph/GraphModel.html#getValue(java.lang.Object)"><CODE>GraphModel.getValue(Object)</CODE></A> instead.</I></TD>
733 </TR>
734 <TR BGCOLOR="white" CLASS="TableRowColor">
735 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
736 <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>
737 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#getValue(java.lang.Object)">getValue</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>
738
739 <BR>
740 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the user object for the specified cell.</TD>
741 </TR>
742 <TR BGCOLOR="white" CLASS="TableRowColor">
743 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
744 <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>
745 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#handleAttributes(java.util.Map)">handleAttributes</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes)</CODE>
746
747 <BR>
748 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applies <code>attributes</code> to the cells specified as keys.</TD>
749 </TR>
750 <TR BGCOLOR="white" CLASS="TableRowColor">
751 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
752 <CODE>protected &nbsp;void</CODE></FONT></TD>
753 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#handleConnection(org.jgraph.graph.ConnectionSet.Connection, boolean)">handleConnection</A></B>(<A HREF="../../../org/jgraph/graph/ConnectionSet.Connection.html" title="class in org.jgraph.graph">ConnectionSet.Connection</A>&nbsp;c,
754 boolean&nbsp;establish)</CODE>
755
756 <BR>
757 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the specified connection into the model.</TD>
758 </TR>
759 <TR BGCOLOR="white" CLASS="TableRowColor">
760 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
761 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A></CODE></FONT></TD>
762 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#handleConnectionSet(org.jgraph.graph.ConnectionSet)">handleConnectionSet</A></B>(<A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs)</CODE>
763
764 <BR>
765 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applies <code>connectionSet</code> to the model.</TD>
766 </TR>
767 <TR BGCOLOR="white" CLASS="TableRowColor">
768 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
769 <CODE>protected &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>
770 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#handleInsert(java.lang.Object[])">handleInsert</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>
771
772 <BR>
773 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts <code>cells</code> into the model.</TD>
774 </TR>
775 <TR BGCOLOR="white" CLASS="TableRowColor">
776 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
777 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A></CODE></FONT></TD>
778 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#handleParentMap(org.jgraph.graph.ParentMap)">handleParentMap</A></B>(<A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;parentMap)</CODE>
779
780 <BR>
781 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applies <code>cells</code> to the model.</TD>
782 </TR>
783 <TR BGCOLOR="white" CLASS="TableRowColor">
784 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
785 <CODE>protected &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>
786 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#handleRemove(java.lang.Object[])">handleRemove</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>
787
788 <BR>
789 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes <code>cells</code> from the model.</TD>
790 </TR>
791 <TR BGCOLOR="white" CLASS="TableRowColor">
792 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
793 <CODE>static&nbsp;boolean</CODE></FONT></TD>
794 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#hasAncestorIn(org.jgraph.graph.GraphModel, java.util.Set, java.lang.Object)">hasAncestorIn</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
795 <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;parents,
796 <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;child)</CODE>
797
798 <BR>
799 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the specified child has an ancestor in parents.</TD>
800 </TR>
801 <TR BGCOLOR="white" CLASS="TableRowColor">
802 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
803 <CODE>&nbsp;void</CODE></FONT></TD>
804 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#insert(java.lang.Object[], java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])">insert</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;roots,
805 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes,
806 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs,
807 <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;pm,
808 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEdit.html" title="class or interface in javax.swing.undo">UndoableEdit</A>[]&nbsp;edits)</CODE>
809
810 <BR>
811 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inserts the <code>roots</code> and connections into the model.</TD>
812 </TR>
813 <TR BGCOLOR="white" CLASS="TableRowColor">
814 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
815 <CODE>&nbsp;boolean</CODE></FONT></TD>
816 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#isEdge(java.lang.Object)">isEdge</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;edge)</CODE>
817
818 <BR>
819 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if <code>edge</code> is a valid edge.</TD>
820 </TR>
821 <TR BGCOLOR="white" CLASS="TableRowColor">
822 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
823 <CODE>static&nbsp;boolean</CODE></FONT></TD>
824 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#isGroup(org.jgraph.graph.GraphModel, java.lang.Object)">isGroup</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
825 <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>
826
827 <BR>
828 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the cell has at least one child which is not a port.</TD>
829 </TR>
830 <TR BGCOLOR="white" CLASS="TableRowColor">
831 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
832 <CODE>&nbsp;boolean</CODE></FONT></TD>
833 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#isLeaf(java.lang.Object)">isLeaf</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;node)</CODE>
834
835 <BR>
836 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the specified node is a leaf node.</TD>
837 </TR>
838 <TR BGCOLOR="white" CLASS="TableRowColor">
839 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
840 <CODE>&nbsp;boolean</CODE></FONT></TD>
841 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#isPort(java.lang.Object)">isPort</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;port)</CODE>
842
843 <BR>
844 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if <code>port</code> is a valid port,
845 possibly supporting edge connection.</TD>
846 </TR>
847 <TR BGCOLOR="white" CLASS="TableRowColor">
848 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
849 <CODE>&nbsp;boolean</CODE></FONT></TD>
850 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#isRemoveEmptyGroups()">isRemoveEmptyGroups</A></B>()</CODE>
851
852 <BR>
853 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
854 </TR>
855 <TR BGCOLOR="white" CLASS="TableRowColor">
856 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
857 <CODE>static&nbsp;boolean</CODE></FONT></TD>
858 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#isVertex(org.jgraph.graph.GraphModel, java.lang.Object)">isVertex</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
859 <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;vertex)</CODE>
860
861 <BR>
862 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if <code>vertex</code> is a valid vertex.</TD>
863 </TR>
864 <TR BGCOLOR="white" CLASS="TableRowColor">
865 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
866 <CODE>static&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>
867 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#order(org.jgraph.graph.GraphModel, java.lang.Object[])">order</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
868 <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>
869
870 <BR>
871 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Orders cells so that they reflect the model order.</TD>
872 </TR>
873 <TR BGCOLOR="white" CLASS="TableRowColor">
874 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
875 <CODE>&nbsp;void</CODE></FONT></TD>
876 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#remove(java.lang.Object[])">remove</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;roots)</CODE>
877
878 <BR>
879 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes <code>cells</code> from the model.</TD>
880 </TR>
881 <TR BGCOLOR="white" CLASS="TableRowColor">
882 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
883 <CODE>&nbsp;void</CODE></FONT></TD>
884 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#removeGraphModelListener(org.jgraph.event.GraphModelListener)">removeGraphModelListener</A></B>(<A HREF="../../../org/jgraph/event/GraphModelListener.html" title="interface in org.jgraph.event">GraphModelListener</A>&nbsp;l)</CODE>
885
886 <BR>
887 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a listener previously added with <B>addGraphModelListener() </B>.</TD>
888 </TR>
889 <TR BGCOLOR="white" CLASS="TableRowColor">
890 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
891 <CODE>protected &nbsp;void</CODE></FONT></TD>
892 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#setParent(java.lang.Object, java.lang.Object)">setParent</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;child,
893 <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;parent)</CODE>
894
895 <BR>
896 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the parent of the specified cell.</TD>
897 </TR>
898 <TR BGCOLOR="white" CLASS="TableRowColor">
899 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
900 <CODE>&nbsp;void</CODE></FONT></TD>
901 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#setRemoveEmptyGroups(boolean)">setRemoveEmptyGroups</A></B>(boolean&nbsp;removeEmptyGroups)</CODE>
902
903 <BR>
904 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
905 </TR>
906 <TR BGCOLOR="white" CLASS="TableRowColor">
907 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
908 <CODE>static&nbsp;void</CODE></FONT></TD>
909 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#setSourcePort(org.jgraph.graph.GraphModel, java.lang.Object, java.lang.Object)">setSourcePort</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
910 <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;edge,
911 <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;port)</CODE>
912
913 <BR>
914 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Helper methods that connects the source of <code>edge</code> to
915 <code>port</code> in <code>model</model>.</TD>
916 </TR>
917 <TR BGCOLOR="white" CLASS="TableRowColor">
918 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
919 <CODE>static&nbsp;void</CODE></FONT></TD>
920 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#setTargetPort(org.jgraph.graph.GraphModel, java.lang.Object, java.lang.Object)">setTargetPort</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;model,
921 <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;edge,
922 <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;port)</CODE>
923
924 <BR>
925 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Helper methods that connects the source of <code>edge</code> to
926 <code>port</code> in <code>model</model>.</TD>
927 </TR>
928 <TR BGCOLOR="white" CLASS="TableRowColor">
929 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
930 <CODE>&nbsp;void</CODE></FONT></TD>
931 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#toBack(java.lang.Object[])">toBack</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>
932
933 <BR>
934 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends <code>cells</code> to back.</TD>
935 </TR>
936 <TR BGCOLOR="white" CLASS="TableRowColor">
937 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
938 <CODE>&nbsp;void</CODE></FONT></TD>
939 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#toFront(java.lang.Object[])">toFront</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>
940
941 <BR>
942 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Brings <code>cells</code> to front.</TD>
943 </TR>
944 <TR BGCOLOR="white" CLASS="TableRowColor">
945 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
946 <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>
947 <TD><CODE><B><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#valueForCellChanged(java.lang.Object, java.lang.Object)">valueForCellChanged</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,
948 <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;newValue)</CODE>
949
950 <BR>
951 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Applies the new value to the specified cell.</TD>
952 </TR>
953 </TABLE>
954 &nbsp;<A NAME="methods_inherited_from_class_javax.swing.undo.UndoableEditSupport"><!-- --></A>
955 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
956 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
957 <TD><B>Methods inherited from class javax.swing.undo.<A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html" title="class or interface in javax.swing.undo">UndoableEditSupport</A></B></TD>
958 </TR>
959 <TR BGCOLOR="white" CLASS="TableRowColor">
960 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#_postEdit(javax.swing.undo.UndoableEdit)" title="class or interface in javax.swing.undo">_postEdit</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#addUndoableEditListener(javax.swing.event.UndoableEditListener)" title="class or interface in javax.swing.undo">addUndoableEditListener</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#createCompoundEdit()" title="class or interface in javax.swing.undo">createCompoundEdit</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#getUndoableEditListeners()" title="class or interface in javax.swing.undo">getUndoableEditListeners</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#postEdit(javax.swing.undo.UndoableEdit)" title="class or interface in javax.swing.undo">postEdit</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#removeUndoableEditListener(javax.swing.event.UndoableEditListener)" title="class or interface in javax.swing.undo">removeUndoableEditListener</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEditSupport.html#toString()" title="class or interface in javax.swing.undo">toString</A></CODE></TD>
961 </TR>
962 </TABLE>
963 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
964 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
965 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
966 <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>
967 </TR>
968 <TR BGCOLOR="white" CLASS="TableRowColor">
969 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <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#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>
970 </TR>
971 </TABLE>
972 &nbsp;<A NAME="methods_inherited_from_class_org.jgraph.graph.GraphModel"><!-- --></A>
973 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
974 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
975 <TD><B>Methods inherited from interface org.jgraph.graph.<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></B></TD>
976 </TR>
977 <TR BGCOLOR="white" CLASS="TableRowColor">
978 <TD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#addUndoableEditListener(javax.swing.event.UndoableEditListener)">addUndoableEditListener</A>, <A HREF="../../../org/jgraph/graph/GraphModel.html#removeUndoableEditListener(javax.swing.event.UndoableEditListener)">removeUndoableEditListener</A></CODE></TD>
979 </TR>
980 </TABLE>
981 &nbsp;
982 <P>
983
984 <!-- ============ FIELD DETAIL =========== -->
985
986 <A NAME="field_detail"><!-- --></A>
987 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
988 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
989 <TD COLSPAN=1><FONT SIZE="+2">
990 <B>Field Detail</B></FONT></TD>
991 </TR>
992 </TABLE>
993
994 <A NAME="listenerList"><!-- --></A><H3>
995 listenerList</H3>
996 <PRE>
997 protected transient <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>
998 <DL>
999 <DD>The list of listeners that listen to the model.
1000 <P>
1001 <DL>
1002 </DL>
1003 </DL>
1004 <HR>
1005
1006 <A NAME="emptyIterator"><!-- --></A><H3>
1007 emptyIterator</H3>
1008 <PRE>
1009 protected transient <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>emptyIterator</B></PRE>
1010 <DL>
1011 <DD>Default instance of an empty iterator.
1012 <P>
1013 <DL>
1014 </DL>
1015 </DL>
1016 <HR>
1017
1018 <A NAME="roots"><!-- --></A><H3>
1019 roots</H3>
1020 <PRE>
1021 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>roots</B></PRE>
1022 <DL>
1023 <DD>Set that contains all root cells of this model.
1024 <P>
1025 <DL>
1026 </DL>
1027 </DL>
1028 <HR>
1029
1030 <A NAME="asksAllowsChildren"><!-- --></A><H3>
1031 asksAllowsChildren</H3>
1032 <PRE>
1033 protected boolean <B>asksAllowsChildren</B></PRE>
1034 <DL>
1035 <DD>Indicates whether isLeaf is based on a node's allowsChildren value.
1036 <P>
1037 <DL>
1038 </DL>
1039 </DL>
1040 <HR>
1041
1042 <A NAME="removeEmptyGroups"><!-- --></A><H3>
1043 removeEmptyGroups</H3>
1044 <PRE>
1045 protected boolean <B>removeEmptyGroups</B></PRE>
1046 <DL>
1047 <DD>Whether or not to remove group cells from the model when all of their
1048 children are removed
1049 <P>
1050 <DL>
1051 </DL>
1052 </DL>
1053 <HR>
1054
1055 <A NAME="attributes"><!-- --></A><H3>
1056 attributes</H3>
1057 <PRE>
1058 protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>attributes</B></PRE>
1059 <DL>
1060 <DD>The model's own attributes as a map. Defaults to an empty Hashtable.
1061 <P>
1062 <DL>
1063 </DL>
1064 </DL>
1065 <HR>
1066
1067 <A NAME="currentUpdate"><!-- --></A><H3>
1068 currentUpdate</H3>
1069 <PRE>
1070 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>currentUpdate</B></PRE>
1071 <DL>
1072 <DD>A collection of unexecuted updates on this model
1073 <P>
1074 <DL>
1075 </DL>
1076 </DL>
1077
1078 <!-- ========= CONSTRUCTOR DETAIL ======== -->
1079
1080 <A NAME="constructor_detail"><!-- --></A>
1081 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1082 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1083 <TD COLSPAN=1><FONT SIZE="+2">
1084 <B>Constructor Detail</B></FONT></TD>
1085 </TR>
1086 </TABLE>
1087
1088 <A NAME="DefaultGraphModel()"><!-- --></A><H3>
1089 DefaultGraphModel</H3>
1090 <PRE>
1091 public <B>DefaultGraphModel</B>()</PRE>
1092 <DL>
1093 <DD>Constructs a model that is not an attribute store.
1094 <P>
1095 </DL>
1096 <HR>
1097
1098 <A NAME="DefaultGraphModel(java.util.List, org.jgraph.graph.AttributeMap)"><!-- --></A><H3>
1099 DefaultGraphModel</H3>
1100 <PRE>
1101 public <B>DefaultGraphModel</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&nbsp;roots,
1102 <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A>&nbsp;attributes)</PRE>
1103 <DL>
1104 <DD>Constructs a model that is not an attribute store.
1105 <P>
1106 </DL>
1107 <HR>
1108
1109 <A NAME="DefaultGraphModel(java.util.List, org.jgraph.graph.AttributeMap, org.jgraph.graph.ConnectionSet)"><!-- --></A><H3>
1110 DefaultGraphModel</H3>
1111 <PRE>
1112 public <B>DefaultGraphModel</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&nbsp;roots,
1113 <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A>&nbsp;attributes,
1114 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs)</PRE>
1115 <DL>
1116 <DD>Constructs a model using the specified information to construct the
1117 cells, attributes and connection data.
1118 <P>
1119 </DL>
1120
1121 <!-- ============ METHOD DETAIL ========== -->
1122
1123 <A NAME="method_detail"><!-- --></A>
1124 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
1125 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
1126 <TD COLSPAN=1><FONT SIZE="+2">
1127 <B>Method Detail</B></FONT></TD>
1128 </TR>
1129 </TABLE>
1130
1131 <A NAME="getRoots()"><!-- --></A><H3>
1132 getRoots</H3>
1133 <PRE>
1134 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>getRoots</B>()</PRE>
1135 <DL>
1136 <DD><DL>
1137 </DL>
1138 </DD>
1139 <DD><DL>
1140 </DL>
1141 </DD>
1142 </DL>
1143 <HR>
1144
1145 <A NAME="getRootCount()"><!-- --></A><H3>
1146 getRootCount</H3>
1147 <PRE>
1148 public int <B>getRootCount</B>()</PRE>
1149 <DL>
1150 <DD>Returns the number of roots in the model. Returns 0 if the model is
1151 empty.
1152 <P>
1153 <DD><DL>
1154 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getRootCount()">getRootCount</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1155 </DD>
1156 <DD><DL>
1157
1158 <DT><B>Returns:</B><DD>the number of roots in the model</DL>
1159 </DD>
1160 </DL>
1161 <HR>
1162
1163 <A NAME="getRootAt(int)"><!-- --></A><H3>
1164 getRootAt</H3>
1165 <PRE>
1166 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>getRootAt</B>(int&nbsp;index)</PRE>
1167 <DL>
1168 <DD>Returns the root at index <I>index </I> in the model. This should not
1169 return null if <i>index </i> is a valid index for the model (that is
1170 <i>index </i>>= 0 && <i>index </i>< getRootCount()).
1171 <P>
1172 <DD><DL>
1173 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getRootAt(int)">getRootAt</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1174 </DD>
1175 <DD><DL>
1176
1177 <DT><B>Returns:</B><DD>the root of at index <I>index </I></DL>
1178 </DD>
1179 </DL>
1180 <HR>
1181
1182 <A NAME="getIndexOfRoot(java.lang.Object)"><!-- --></A><H3>
1183 getIndexOfRoot</H3>
1184 <PRE>
1185 public int <B>getIndexOfRoot</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;root)</PRE>
1186 <DL>
1187 <DD>Returns the index of <code>root</code> in the model. If root is
1188 <code>null</code>, returns -1.
1189 <P>
1190 <DD><DL>
1191 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getIndexOfRoot(java.lang.Object)">getIndexOfRoot</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1192 </DD>
1193 <DD><DL>
1194 <DT><B>Parameters:</B><DD><CODE>root</CODE> - a root in the model, obtained from this data source
1195 <DT><B>Returns:</B><DD>the index of the root in the model, or -1 if the parent is
1196 <code>null</code></DL>
1197 </DD>
1198 </DL>
1199 <HR>
1200
1201 <A NAME="contains(java.lang.Object)"><!-- --></A><H3>
1202 contains</H3>
1203 <PRE>
1204 public boolean <B>contains</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;node)</PRE>
1205 <DL>
1206 <DD>Returns <code>true</code> if <code>node</code> or one of its
1207 ancestors is in the model.
1208 <P>
1209 <DD><DL>
1210 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#contains(java.lang.Object)">contains</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1211 </DD>
1212 <DD><DL>
1213
1214 <DT><B>Returns:</B><DD><code>true</code> if <code>node</code> is in the model</DL>
1215 </DD>
1216 </DL>
1217 <HR>
1218
1219 <A NAME="getAttributes(java.lang.Object)"><!-- --></A><H3>
1220 getAttributes</H3>
1221 <PRE>
1222 public <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>getAttributes</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;node)</PRE>
1223 <DL>
1224 <DD>Returns a <code>Map</code> that represents the attributes for the
1225 specified cell. This attributes have precedence over each view's
1226 attributes, regardless of isAttributeStore.
1227 <P>
1228 <DD><DL>
1229 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getAttributes(java.lang.Object)">getAttributes</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1230 </DD>
1231 <DD><DL>
1232
1233 <DT><B>Returns:</B><DD>attributes of <code>node</code> as a <code>Map</code></DL>
1234 </DD>
1235 </DL>
1236 <HR>
1237
1238 <A NAME="getValue(java.lang.Object)"><!-- --></A><H3>
1239 getValue</H3>
1240 <PRE>
1241 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>getValue</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>
1242 <DL>
1243 <DD><B>Description copied from interface: <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></B></DD>
1244 <DD>Returns the user object for the specified cell.
1245 <P>
1246 <DD><DL>
1247 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getValue(java.lang.Object)">getValue</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1248 </DD>
1249 <DD><DL>
1250
1251 <DT><B>Returns:</B><DD>Returns the user object of the given cell. This implementation
1252 checks if the cell is a default mutable tree node and returns
1253 it's user object.</DL>
1254 </DD>
1255 </DL>
1256 <HR>
1257
1258 <A NAME="getAttributes()"><!-- --></A><H3>
1259 getAttributes</H3>
1260 <PRE>
1261 public <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>getAttributes</B>()</PRE>
1262 <DL>
1263 <DD>Returns the graph model's attribute. Shortcut to <code>
1264 getAttributes(null)</code>.
1265 <P>
1266 <DD><DL>
1267 </DL>
1268 </DD>
1269 <DD><DL>
1270
1271 <DT><B>Returns:</B><DD>attributes of <code>node</code> as a <code>Map</code></DL>
1272 </DD>
1273 </DL>
1274 <HR>
1275
1276 <A NAME="getSource(java.lang.Object)"><!-- --></A><H3>
1277 getSource</H3>
1278 <PRE>
1279 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>getSource</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;edge)</PRE>
1280 <DL>
1281 <DD>Returns the source of <code>edge</code>. <I>edge </I> must be an
1282 object previously obtained from this data source.
1283 <P>
1284 <DD><DL>
1285 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getSource(java.lang.Object)">getSource</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1286 </DD>
1287 <DD><DL>
1288
1289 <DT><B>Returns:</B><DD><code>Object</code> that represents the source of <i>edge </i></DL>
1290 </DD>
1291 </DL>
1292 <HR>
1293
1294 <A NAME="getTarget(java.lang.Object)"><!-- --></A><H3>
1295 getTarget</H3>
1296 <PRE>
1297 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>getTarget</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;edge)</PRE>
1298 <DL>
1299 <DD>Returns the target of <code>edge</code>. <I>edge </I> must be an
1300 object previously obtained from this data source.
1301 <P>
1302 <DD><DL>
1303 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getTarget(java.lang.Object)">getTarget</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1304 </DD>
1305 <DD><DL>
1306
1307 <DT><B>Returns:</B><DD><code>Object</code> that represents the target of <i>edge </i></DL>
1308 </DD>
1309 </DL>
1310 <HR>
1311
1312 <A NAME="acceptsSource(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
1313 acceptsSource</H3>
1314 <PRE>
1315 public boolean <B>acceptsSource</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;edge,
1316 <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;port)</PRE>
1317 <DL>
1318 <DD>Returns <code>true</code> if <code>port</code> is a valid source for
1319 <code>edge</code>. <I>edge </I> and <I>port </I> must be objects
1320 previously obtained from this data source.
1321 <P>
1322 <DD><DL>
1323 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#acceptsSource(java.lang.Object, java.lang.Object)">acceptsSource</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1324 </DD>
1325 <DD><DL>
1326
1327 <DT><B>Returns:</B><DD><code>true</code> if <code>port</code> is a valid source for
1328 <code>edge</code>.</DL>
1329 </DD>
1330 </DL>
1331 <HR>
1332
1333 <A NAME="acceptsTarget(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
1334 acceptsTarget</H3>
1335 <PRE>
1336 public boolean <B>acceptsTarget</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;edge,
1337 <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;port)</PRE>
1338 <DL>
1339 <DD>Returns <code>true</code> if <code>port</code> is a valid target for
1340 <code>edge</code>. <I>edge </I> and <I>port </I> must be objects
1341 previously obtained from this data source.
1342 <P>
1343 <DD><DL>
1344 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#acceptsTarget(java.lang.Object, java.lang.Object)">acceptsTarget</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1345 </DD>
1346 <DD><DL>
1347
1348 <DT><B>Returns:</B><DD><code>true</code> if <code>port</code> is a valid target for
1349 <code>edge</code>.</DL>
1350 </DD>
1351 </DL>
1352 <HR>
1353
1354 <A NAME="edges(java.lang.Object)"><!-- --></A><H3>
1355 edges</H3>
1356 <PRE>
1357 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> <B>edges</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;port)</PRE>
1358 <DL>
1359 <DD>Returns an iterator of the edges connected to <code>port</code>.
1360 <I>port </I> must be a object previously obtained from this data source.
1361 This method never returns null.
1362 <P>
1363 <DD><DL>
1364 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#edges(java.lang.Object)">edges</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1365 </DD>
1366 <DD><DL>
1367 <DT><B>Parameters:</B><DD><CODE>port</CODE> - a port in the graph, obtained from this data source
1368 <DT><B>Returns:</B><DD><code>Iterator</code> that represents the connected edges</DL>
1369 </DD>
1370 </DL>
1371 <HR>
1372
1373 <A NAME="isEdge(java.lang.Object)"><!-- --></A><H3>
1374 isEdge</H3>
1375 <PRE>
1376 public boolean <B>isEdge</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;edge)</PRE>
1377 <DL>
1378 <DD>Returns <code>true</code> if <code>edge</code> is a valid edge.
1379 <P>
1380 <DD><DL>
1381 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#isEdge(java.lang.Object)">isEdge</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1382 </DD>
1383 <DD><DL>
1384
1385 <DT><B>Returns:</B><DD><code>true</code> if <code>edge</code> is a valid edge.</DL>
1386 </DD>
1387 </DL>
1388 <HR>
1389
1390 <A NAME="isPort(java.lang.Object)"><!-- --></A><H3>
1391 isPort</H3>
1392 <PRE>
1393 public boolean <B>isPort</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;port)</PRE>
1394 <DL>
1395 <DD>Returns <code>true</code> if <code>port</code> is a valid port,
1396 possibly supporting edge connection.
1397 <P>
1398 <DD><DL>
1399 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#isPort(java.lang.Object)">isPort</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1400 </DD>
1401 <DD><DL>
1402
1403 <DT><B>Returns:</B><DD><code>true</code> if <code>port</code> is a valid port.</DL>
1404 </DD>
1405 </DL>
1406 <HR>
1407
1408 <A NAME="getConnectionSet()"><!-- --></A><H3>
1409 getConnectionSet</H3>
1410 <PRE>
1411 public <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A> <B>getConnectionSet</B>()</PRE>
1412 <DL>
1413 <DD>A shortcut method to create a connection set that represents the
1414 connections in this model. Useful for encoding to avoid writing redundant
1415 connection data stored in the cells.
1416 <P>
1417 <DD><DL>
1418 </DL>
1419 </DD>
1420 <DD><DL>
1421 </DL>
1422 </DD>
1423 </DL>
1424 <HR>
1425
1426 <A NAME="cloneCells(java.lang.Object[])"><!-- --></A><H3>
1427 cloneCells</H3>
1428 <PRE>
1429 public <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>cloneCells</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>
1430 <DL>
1431 <DD>Returns a map of (cell, clone)-pairs for all <code>cells</code>. In
1432 the new array, all references are replaced with references to the cloned
1433 cells (ie parent or anchor). This method does only include children which
1434 are in <code>cells</code>. Use JGraph.getDescendants to get a complete
1435 list of all children.
1436 <P>
1437 <DD><DL>
1438 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#cloneCells(java.lang.Object[])">cloneCells</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1439 </DD>
1440 <DD><DL>
1441 </DL>
1442 </DD>
1443 </DL>
1444 <HR>
1445
1446 <A NAME="setParent(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
1447 setParent</H3>
1448 <PRE>
1449 protected void <B>setParent</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;child,
1450 <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;parent)</PRE>
1451 <DL>
1452 <DD>Sets the parent of the specified cell.
1453 <P>
1454 <DD><DL>
1455 </DL>
1456 </DD>
1457 <DD><DL>
1458 </DL>
1459 </DD>
1460 </DL>
1461 <HR>
1462
1463 <A NAME="cloneCell(java.lang.Object)"><!-- --></A><H3>
1464 cloneCell</H3>
1465 <PRE>
1466 protected <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>cloneCell</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;cellObj)</PRE>
1467 <DL>
1468 <DD>Creates a shallow copy of the cell including a copy of the user object.
1469 Subclassers can override the cloneUserObject to provide a custom user
1470 object cloning mechanism.
1471 <P>
1472 <DD><DL>
1473 </DL>
1474 </DD>
1475 <DD><DL>
1476 </DL>
1477 </DD>
1478 </DL>
1479 <HR>
1480
1481 <A NAME="cloneUserObject(java.lang.Object)"><!-- --></A><H3>
1482 cloneUserObject</H3>
1483 <PRE>
1484 protected <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>cloneUserObject</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;userObject)</PRE>
1485 <DL>
1486 <DD>Clones the user object. Helper method that is invoked from cloneCells.
1487 You must use cloneCells (or cloneCell for single cells) to get a deep
1488 copy of a clone. Subclassers must override this and valueForCellChanged
1489 to implement custom user objects. This implementation returns
1490 <code>object</code>.
1491 <P>
1492 <DD><DL>
1493 </DL>
1494 </DD>
1495 <DD><DL>
1496 </DL>
1497 </DD>
1498 </DL>
1499 <HR>
1500
1501 <A NAME="getParent(java.lang.Object)"><!-- --></A><H3>
1502 getParent</H3>
1503 <PRE>
1504 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>getParent</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;child)</PRE>
1505 <DL>
1506 <DD>Returns the parent of <I>child </I> in the model. <I>child </I> must be a
1507 node previously obtained from this data source. This returns null if
1508 <i>child </i> is a root in the model.
1509 <P>
1510 <DD><DL>
1511 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getParent(java.lang.Object)">getParent</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1512 </DD>
1513 <DD><DL>
1514 <DT><B>Parameters:</B><DD><CODE>child</CODE> - a node in the graph, obtained from this data source
1515 <DT><B>Returns:</B><DD>the parent of <I>child </I></DL>
1516 </DD>
1517 </DL>
1518 <HR>
1519
1520 <A NAME="getIndexOfChild(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
1521 getIndexOfChild</H3>
1522 <PRE>
1523 public int <B>getIndexOfChild</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;parent,
1524 <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;child)</PRE>
1525 <DL>
1526 <DD>Returns the index of child in parent. If either the parent or child is
1527 <code>null</code>, returns -1.
1528 <P>
1529 <DD><DL>
1530 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getIndexOfChild(java.lang.Object, java.lang.Object)">getIndexOfChild</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1531 </DD>
1532 <DD><DL>
1533 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - a note in the tree, obtained from this data source<DD><CODE>child</CODE> - the node we are interested in
1534 <DT><B>Returns:</B><DD>the index of the child in the parent, or -1 if either the parent
1535 or the child is <code>null</code></DL>
1536 </DD>
1537 </DL>
1538 <HR>
1539
1540 <A NAME="getChild(java.lang.Object, int)"><!-- --></A><H3>
1541 getChild</H3>
1542 <PRE>
1543 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>getChild</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;parent,
1544 int&nbsp;index)</PRE>
1545 <DL>
1546 <DD>Returns the child of <I>parent </I> at index <I>index </I> in the
1547 parent's child array. <I>parent </I> must be a node previously obtained
1548 from this data source. This should not return null if <i>index </i> is a
1549 valid index for <i>parent </i> (that is <i>index </i>>= 0 && <i>index
1550 </i>< getChildCount( <i>parent </i>)).
1551 <P>
1552 <DD><DL>
1553 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getChild(java.lang.Object, int)">getChild</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1554 </DD>
1555 <DD><DL>
1556 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - a node in the tree, obtained from this data source
1557 <DT><B>Returns:</B><DD>the child of <I>parent </I> at index <I>index </I></DL>
1558 </DD>
1559 </DL>
1560 <HR>
1561
1562 <A NAME="getChildCount(java.lang.Object)"><!-- --></A><H3>
1563 getChildCount</H3>
1564 <PRE>
1565 public int <B>getChildCount</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;parent)</PRE>
1566 <DL>
1567 <DD>Returns the number of children of <I>parent </I>. Returns 0 if the node
1568 is a leaf or if it has no children. <I>parent </I> must be a node
1569 previously obtained from this data source.
1570 <P>
1571 <DD><DL>
1572 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#getChildCount(java.lang.Object)">getChildCount</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1573 </DD>
1574 <DD><DL>
1575 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - a node in the tree, obtained from this data source
1576 <DT><B>Returns:</B><DD>the number of children of the node <I>parent </I></DL>
1577 </DD>
1578 </DL>
1579 <HR>
1580
1581 <A NAME="isLeaf(java.lang.Object)"><!-- --></A><H3>
1582 isLeaf</H3>
1583 <PRE>
1584 public boolean <B>isLeaf</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;node)</PRE>
1585 <DL>
1586 <DD>Returns whether the specified node is a leaf node. The way the test is
1587 performed depends on the.
1588 <P>
1589 <DD><DL>
1590 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#isLeaf(java.lang.Object)">isLeaf</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1591 </DD>
1592 <DD><DL>
1593 <DT><B>Parameters:</B><DD><CODE>node</CODE> - the node to check
1594 <DT><B>Returns:</B><DD>true if the node is a leaf node</DL>
1595 </DD>
1596 </DL>
1597 <HR>
1598
1599 <A NAME="insert(java.lang.Object[], java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])"><!-- --></A><H3>
1600 insert</H3>
1601 <PRE>
1602 public void <B>insert</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;roots,
1603 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes,
1604 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs,
1605 <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;pm,
1606 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEdit.html" title="class or interface in javax.swing.undo">UndoableEdit</A>[]&nbsp;edits)</PRE>
1607 <DL>
1608 <DD>Inserts the <code>roots</code> and connections into the model. Notifies
1609 the model- and undo listeners of the change. The passed-in edits are
1610 executed if they implement the
1611 <code>GraphModelEvent.ExecutableGraphChange</code> interface in
1612 ascending array-order, after execution of the model change. Note: The
1613 passed-in propertyMap may contain <code>PortView</code> s which must be
1614 turned into <code>Point</code> s when stored in the model.
1615 <P>
1616 <DD><DL>
1617 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#insert(java.lang.Object[], java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])">insert</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1618 </DD>
1619 <DD><DL>
1620 </DL>
1621 </DD>
1622 </DL>
1623 <HR>
1624
1625 <A NAME="remove(java.lang.Object[])"><!-- --></A><H3>
1626 remove</H3>
1627 <PRE>
1628 public void <B>remove</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;roots)</PRE>
1629 <DL>
1630 <DD>Removes <code>cells</code> from the model. Notifies the model- and undo
1631 listeners of the change.
1632 <P>
1633 <DD><DL>
1634 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#remove(java.lang.Object[])">remove</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1635 </DD>
1636 <DD><DL>
1637 </DL>
1638 </DD>
1639 </DL>
1640 <HR>
1641
1642 <A NAME="edit(java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])"><!-- --></A><H3>
1643 edit</H3>
1644 <PRE>
1645 public void <B>edit</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes,
1646 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs,
1647 <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;pm,
1648 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEdit.html" title="class or interface in javax.swing.undo">UndoableEdit</A>[]&nbsp;edits)</PRE>
1649 <DL>
1650 <DD>Shortcut to the new edit method which allows inserts and removes to go
1651 along with an edit.
1652 <P>
1653 <DD><DL>
1654 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#edit(java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])">edit</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1655 </DD>
1656 <DD><DL>
1657 </DL>
1658 </DD>
1659 </DL>
1660 <HR>
1661
1662 <A NAME="edit(java.lang.Object[], java.lang.Object[], java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])"><!-- --></A><H3>
1663 edit</H3>
1664 <PRE>
1665 public void <B>edit</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;inserted,
1666 <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;removed,
1667 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes,
1668 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs,
1669 <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;pm,
1670 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEdit.html" title="class or interface in javax.swing.undo">UndoableEdit</A>[]&nbsp;edits)</PRE>
1671 <DL>
1672 <DD>Applies <code>attributes</code> and the connection changes to the
1673 model. The initial <code>edits</code> that triggered the call are
1674 considered to be part of this transaction. The passed-in edits are
1675 executed if they implement the
1676 <code>GraphModelEvent.ExecutableGraphChange</code> interface in
1677 ascending array-order, after execution of the model change. Notifies the
1678 model- and undo listeners of the change. <strong>Note: </strong> If only
1679 <code>edits</code> is non-null, the edits are directly passed to the
1680 UndoableEditListeners. Note: The passed-in propertyMap may contains
1681 PortViews which must be turned into Points when stored in the model.
1682 <P>
1683 <DD><DL>
1684 </DL>
1685 </DD>
1686 <DD><DL>
1687 </DL>
1688 </DD>
1689 </DL>
1690 <HR>
1691
1692 <A NAME="execute(org.jgraph.graph.ExecutableChange)"><!-- --></A><H3>
1693 execute</H3>
1694 <PRE>
1695 public void <B>execute</B>(<A HREF="../../../org/jgraph/graph/ExecutableChange.html" title="class in org.jgraph.graph">ExecutableChange</A>&nbsp;change)</PRE>
1696 <DL>
1697 <DD><B>Description copied from interface: <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></B></DD>
1698 <DD>Executes the specified executable change on this graph model
1699 <P>
1700 <DD><DL>
1701 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#execute(org.jgraph.graph.ExecutableChange)">execute</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1702 </DD>
1703 <DD><DL>
1704 <DT><B>Parameters:</B><DD><CODE>change</CODE> - the change to be executed</DL>
1705 </DD>
1706 </DL>
1707 <HR>
1708
1709 <A NAME="getUpdateLevel()"><!-- --></A><H3>
1710 getUpdateLevel</H3>
1711 <PRE>
1712 public int <B>getUpdateLevel</B>()</PRE>
1713 <DL>
1714 <DD><DL>
1715 </DL>
1716 </DD>
1717 <DD><DL>
1718 </DL>
1719 </DD>
1720 </DL>
1721 <HR>
1722
1723 <A NAME="beginUpdate()"><!-- --></A><H3>
1724 beginUpdate</H3>
1725 <PRE>
1726 public void <B>beginUpdate</B>()</PRE>
1727 <DL>
1728 <DD><B>Description copied from interface: <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></B></DD>
1729 <DD>Indicates the start of one level of an executable change
1730 <P>
1731 <DD><DL>
1732 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#beginUpdate()">beginUpdate</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1733 </DD>
1734 <DD><DL>
1735 </DL>
1736 </DD>
1737 </DL>
1738 <HR>
1739
1740 <A NAME="endUpdate()"><!-- --></A><H3>
1741 endUpdate</H3>
1742 <PRE>
1743 public void <B>endUpdate</B>()</PRE>
1744 <DL>
1745 <DD><B>Description copied from interface: <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></B></DD>
1746 <DD>Indicates the end of the current level of an executable change
1747 <P>
1748 <DD><DL>
1749 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#endUpdate()">endUpdate</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1750 </DD>
1751 <DD><DL>
1752 </DL>
1753 </DD>
1754 </DL>
1755 <HR>
1756
1757 <A NAME="toBack(java.lang.Object[])"><!-- --></A><H3>
1758 toBack</H3>
1759 <PRE>
1760 public void <B>toBack</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>
1761 <DL>
1762 <DD>Sends <code>cells</code> to back.
1763 <P>
1764 <DD><DL>
1765 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#toBack(java.lang.Object[])">toBack</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1766 </DD>
1767 <DD><DL>
1768 </DL>
1769 </DD>
1770 </DL>
1771 <HR>
1772
1773 <A NAME="toFront(java.lang.Object[])"><!-- --></A><H3>
1774 toFront</H3>
1775 <PRE>
1776 public void <B>toFront</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>
1777 <DL>
1778 <DD>Brings <code>cells</code> to front.
1779 <P>
1780 <DD><DL>
1781 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#toFront(java.lang.Object[])">toFront</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1782 </DD>
1783 <DD><DL>
1784 </DL>
1785 </DD>
1786 </DL>
1787 <HR>
1788
1789 <A NAME="createLayerEdit(java.lang.Object[], int)"><!-- --></A><H3>
1790 createLayerEdit</H3>
1791 <PRE>
1792 protected <A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelLayerEdit.html" title="class in org.jgraph.graph">DefaultGraphModel.GraphModelLayerEdit</A> <B>createLayerEdit</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,
1793 int&nbsp;layer)</PRE>
1794 <DL>
1795 <DD><DL>
1796 </DL>
1797 </DD>
1798 <DD><DL>
1799 </DL>
1800 </DD>
1801 </DL>
1802 <HR>
1803
1804 <A NAME="createRemoveEdit(java.lang.Object[])"><!-- --></A><H3>
1805 createRemoveEdit</H3>
1806 <PRE>
1807 protected <A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelEdit.html" title="class in org.jgraph.graph">DefaultGraphModel.GraphModelEdit</A> <B>createRemoveEdit</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>
1808 <DL>
1809 <DD>Returns an edit that represents a remove.
1810 <P>
1811 <DD><DL>
1812 </DL>
1813 </DD>
1814 <DD><DL>
1815 </DL>
1816 </DD>
1817 </DL>
1818 <HR>
1819
1820 <A NAME="createEdit(java.lang.Object[], java.lang.Object[], java.util.Map, org.jgraph.graph.ConnectionSet, org.jgraph.graph.ParentMap, javax.swing.undo.UndoableEdit[])"><!-- --></A><H3>
1821 createEdit</H3>
1822 <PRE>
1823 protected <A HREF="../../../org/jgraph/graph/DefaultGraphModel.GraphModelEdit.html" title="class in org.jgraph.graph">DefaultGraphModel.GraphModelEdit</A> <B>createEdit</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;inserted,
1824 <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;removed,
1825 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes,
1826 <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs,
1827 <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;pm,
1828 <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/undo/UndoableEdit.html" title="class or interface in javax.swing.undo">UndoableEdit</A>[]&nbsp;edits)</PRE>
1829 <DL>
1830 <DD><DL>
1831 </DL>
1832 </DD>
1833 <DD><DL>
1834 </DL>
1835 </DD>
1836 </DL>
1837 <HR>
1838
1839 <A NAME="handleInsert(java.lang.Object[])"><!-- --></A><H3>
1840 handleInsert</H3>
1841 <PRE>
1842 protected <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>handleInsert</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>
1843 <DL>
1844 <DD>Inserts <code>cells</code> into the model. Returns the cells that were
1845 inserted (including descendants).
1846 <P>
1847 <DD><DL>
1848 </DL>
1849 </DD>
1850 <DD><DL>
1851 </DL>
1852 </DD>
1853 </DL>
1854 <HR>
1855
1856 <A NAME="handleRemove(java.lang.Object[])"><!-- --></A><H3>
1857 handleRemove</H3>
1858 <PRE>
1859 protected <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>handleRemove</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>
1860 <DL>
1861 <DD>Removes <code>cells</code> from the model. Returns the cells that were
1862 removed as roots.
1863 <P>
1864 <DD><DL>
1865 </DL>
1866 </DD>
1867 <DD><DL>
1868 </DL>
1869 </DD>
1870 </DL>
1871 <HR>
1872
1873 <A NAME="handleParentMap(org.jgraph.graph.ParentMap)"><!-- --></A><H3>
1874 handleParentMap</H3>
1875 <PRE>
1876 protected <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A> <B>handleParentMap</B>(<A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A>&nbsp;parentMap)</PRE>
1877 <DL>
1878 <DD>Applies <code>cells</code> to the model. Returns a parent map that may
1879 be used to undo this change.
1880 <P>
1881 <DD><DL>
1882 </DL>
1883 </DD>
1884 <DD><DL>
1885 </DL>
1886 </DD>
1887 </DL>
1888 <HR>
1889
1890 <A NAME="handleAttributes(java.util.Map)"><!-- --></A><H3>
1891 handleAttributes</H3>
1892 <PRE>
1893 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>handleAttributes</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;attributes)</PRE>
1894 <DL>
1895 <DD>Applies <code>attributes</code> to the cells specified as keys. Returns
1896 the <code>attributes</code> to undo the change.
1897 <P>
1898 <DD><DL>
1899 </DL>
1900 </DD>
1901 <DD><DL>
1902 </DL>
1903 </DD>
1904 </DL>
1905 <HR>
1906
1907 <A NAME="valueForCellChanged(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
1908 valueForCellChanged</H3>
1909 <PRE>
1910 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>valueForCellChanged</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,
1911 <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;newValue)</PRE>
1912 <DL>
1913 <DD>Applies the new value to the specified cell. Unfortunately for cloning
1914 the user object you must still override the attribute map and provide a
1915 custom cloneUserObject method. This is because the cloning of a cell is
1916 local to the cell, which in turn has a reference to its attribute map.
1917 <P>
1918 <DD><DL>
1919 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#valueForCellChanged(java.lang.Object, java.lang.Object)">valueForCellChanged</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1920 </DD>
1921 <DD><DL>
1922 <DT><B>Parameters:</B><DD><CODE>cell</CODE> - <DD><CODE>newValue</CODE> -
1923 <DT><B>Returns:</B><DD>the old value for the cell, if any</DL>
1924 </DD>
1925 </DL>
1926 <HR>
1927
1928 <A NAME="handleConnectionSet(org.jgraph.graph.ConnectionSet)"><!-- --></A><H3>
1929 handleConnectionSet</H3>
1930 <PRE>
1931 protected <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A> <B>handleConnectionSet</B>(<A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A>&nbsp;cs)</PRE>
1932 <DL>
1933 <DD>Applies <code>connectionSet</code> to the model. Returns a connection
1934 set that may be used to undo this change.
1935 <P>
1936 <DD><DL>
1937 </DL>
1938 </DD>
1939 <DD><DL>
1940 </DL>
1941 </DD>
1942 </DL>
1943 <HR>
1944
1945 <A NAME="handleConnection(org.jgraph.graph.ConnectionSet.Connection, boolean)"><!-- --></A><H3>
1946 handleConnection</H3>
1947 <PRE>
1948 protected void <B>handleConnection</B>(<A HREF="../../../org/jgraph/graph/ConnectionSet.Connection.html" title="class in org.jgraph.graph">ConnectionSet.Connection</A>&nbsp;c,
1949 boolean&nbsp;establish)</PRE>
1950 <DL>
1951 <DD>Inserts the specified connection into the model.
1952 <P>
1953 <DD><DL>
1954 </DL>
1955 </DD>
1956 <DD><DL>
1957 </DL>
1958 </DD>
1959 </DL>
1960 <HR>
1961
1962 <A NAME="connect(java.lang.Object, java.lang.Object, boolean, boolean)"><!-- --></A><H3>
1963 connect</H3>
1964 <PRE>
1965 protected void <B>connect</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;edge,
1966 <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;port,
1967 boolean&nbsp;isSource,
1968 boolean&nbsp;insert)</PRE>
1969 <DL>
1970 <DD>Connects or disconnects the edge and port in this model based on
1971 <code>remove</code>. Subclassers should override this to update
1972 connectivity datastructures.
1973 <P>
1974 <DD><DL>
1975 </DL>
1976 </DD>
1977 <DD><DL>
1978 </DL>
1979 </DD>
1980 </DL>
1981 <HR>
1982
1983 <A NAME="addGraphModelListener(org.jgraph.event.GraphModelListener)"><!-- --></A><H3>
1984 addGraphModelListener</H3>
1985 <PRE>
1986 public void <B>addGraphModelListener</B>(<A HREF="../../../org/jgraph/event/GraphModelListener.html" title="interface in org.jgraph.event">GraphModelListener</A>&nbsp;l)</PRE>
1987 <DL>
1988 <DD>Adds a listener for the GraphModelEvent posted after the graph changes.
1989 <P>
1990 <DD><DL>
1991 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#addGraphModelListener(org.jgraph.event.GraphModelListener)">addGraphModelListener</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
1992 </DD>
1993 <DD><DL>
1994 <DT><B>Parameters:</B><DD><CODE>l</CODE> - the listener to add<DT><B>See Also:</B><DD><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#removeGraphModelListener(org.jgraph.event.GraphModelListener)"><CODE>removeGraphModelListener(org.jgraph.event.GraphModelListener)</CODE></A></DL>
1995 </DD>
1996 </DL>
1997 <HR>
1998
1999 <A NAME="removeGraphModelListener(org.jgraph.event.GraphModelListener)"><!-- --></A><H3>
2000 removeGraphModelListener</H3>
2001 <PRE>
2002 public void <B>removeGraphModelListener</B>(<A HREF="../../../org/jgraph/event/GraphModelListener.html" title="interface in org.jgraph.event">GraphModelListener</A>&nbsp;l)</PRE>
2003 <DL>
2004 <DD>Removes a listener previously added with <B>addGraphModelListener() </B>.
2005 <P>
2006 <DD><DL>
2007 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/GraphModel.html#removeGraphModelListener(org.jgraph.event.GraphModelListener)">removeGraphModelListener</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A></CODE></DL>
2008 </DD>
2009 <DD><DL>
2010 <DT><B>Parameters:</B><DD><CODE>l</CODE> - the listener to remove<DT><B>See Also:</B><DD><A HREF="../../../org/jgraph/graph/DefaultGraphModel.html#addGraphModelListener(org.jgraph.event.GraphModelListener)"><CODE>addGraphModelListener(org.jgraph.event.GraphModelListener)</CODE></A></DL>
2011 </DD>
2012 </DL>
2013 <HR>
2014
2015 <A NAME="cellsChanged(java.lang.Object[])"><!-- --></A><H3>
2016 cellsChanged</H3>
2017 <PRE>
2018 public void <B>cellsChanged</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>
2019 <DL>
2020 <DD>Invoke this method after you've changed how the cells are to be
2021 represented in the graph.
2022 <P>
2023 <DD><DL>
2024 </DL>
2025 </DD>
2026 <DD><DL>
2027 </DL>
2028 </DD>
2029 </DL>
2030 <HR>
2031
2032 <A NAME="fireGraphChanged(java.lang.Object, org.jgraph.event.GraphModelEvent.GraphModelChange)"><!-- --></A><H3>
2033 fireGraphChanged</H3>
2034 <PRE>
2035 protected void <B>fireGraphChanged</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;source,
2036 <A HREF="../../../org/jgraph/event/GraphModelEvent.GraphModelChange.html" title="interface in org.jgraph.event">GraphModelEvent.GraphModelChange</A>&nbsp;edit)</PRE>
2037 <DL>
2038 <DD><DL>
2039 </DL>
2040 </DD>
2041 <DD><DL>
2042 </DL>
2043 </DD>
2044 </DL>
2045 <HR>
2046
2047 <A NAME="getGraphModelListeners()"><!-- --></A><H3>
2048 getGraphModelListeners</H3>
2049 <PRE>
2050 public <A HREF="../../../org/jgraph/event/GraphModelListener.html" title="interface in org.jgraph.event">GraphModelListener</A>[] <B>getGraphModelListeners</B>()</PRE>
2051 <DL>
2052 <DD>Return an array of all GraphModelListeners that were added to this model.
2053 <P>
2054 <DD><DL>
2055 </DL>
2056 </DD>
2057 <DD><DL>
2058 </DL>
2059 </DD>
2060 </DL>
2061 <HR>
2062
2063 <A NAME="cloneCell(org.jgraph.graph.GraphModel, java.lang.Object)">