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

Contents of /libjgraph-java/trunk/doc/api/org/jgraph/graph/ParentMap.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: 25333 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:32 BST 2007 -->
6 <TITLE>
7 ParentMap (JGraph v5.10.1.4 API Specification)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jgraph.graph.ParentMap 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="ParentMap (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/ParentMap.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/GraphUndoManager.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../org/jgraph/graph/ParentMap.Entry.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="ParentMap.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 ParentMap</H2>
88 <PRE>
89 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
90 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jgraph.graph.ParentMap</B>
91 </PRE>
92 <DL>
93 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD>
94 </DL>
95 <HR>
96 <DL>
97 <DT>public class <B>ParentMap</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DL>
98
99 <P>
100 An object that describes relations between childs and parents.
101 <P>
102
103 <P>
104 <DL>
105 <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jgraph.graph.ParentMap">Serialized Form</A></DL>
106 <HR>
107
108 <P>
109 <!-- ======== NESTED CLASS SUMMARY ======== -->
110
111 <A NAME="nested_class_summary"><!-- --></A>
112 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
113 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
114 <TD COLSPAN=2><FONT SIZE="+2">
115 <B>Nested Class Summary</B></FONT></TD>
116 </TR>
117 <TR BGCOLOR="white" CLASS="TableRowColor">
118 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
119 <CODE>&nbsp;class</CODE></FONT></TD>
120 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.Entry.html" title="class in org.jgraph.graph">ParentMap.Entry</A></B></CODE>
121
122 <BR>
123 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Object that represents the relation between a child an a parent.</TD>
124 </TR>
125 </TABLE>
126 &nbsp;
127 <!-- =========== FIELD SUMMARY =========== -->
128
129 <A NAME="field_summary"><!-- --></A>
130 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
131 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
132 <TD COLSPAN=2><FONT SIZE="+2">
133 <B>Field Summary</B></FONT></TD>
134 </TR>
135 <TR BGCOLOR="white" CLASS="TableRowColor">
136 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
137 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A></CODE></FONT></TD>
138 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#changedNodes">changedNodes</A></B></CODE>
139
140 <BR>
141 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set of changed changedNodes for the parent map.</TD>
142 </TR>
143 <TR BGCOLOR="white" CLASS="TableRowColor">
144 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
145 <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>
146 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#childCount">childCount</A></B></CODE>
147
148 <BR>
149 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Maps parents to integers with the future number of childs.</TD>
150 </TR>
151 <TR BGCOLOR="white" CLASS="TableRowColor">
152 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
153 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html" title="class or interface in java.util">ArrayList</A></CODE></FONT></TD>
154 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#entries">entries</A></B></CODE>
155
156 <BR>
157 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contents of the parent map.</TD>
158 </TR>
159 </TABLE>
160 &nbsp;
161 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
162
163 <A NAME="constructor_summary"><!-- --></A>
164 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
165 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
166 <TD COLSPAN=2><FONT SIZE="+2">
167 <B>Constructor Summary</B></FONT></TD>
168 </TR>
169 <TR BGCOLOR="white" CLASS="TableRowColor">
170 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#ParentMap()">ParentMap</A></B>()</CODE>
171
172 <BR>
173 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <code>ParentMap</code> object.</TD>
174 </TR>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#ParentMap(java.lang.Object[], java.lang.Object)">ParentMap</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;children,
177 <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>
178
179 <BR>
180 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a <code>ParentMap</code> object.</TD>
181 </TR>
182 </TABLE>
183 &nbsp;
184 <!-- ========== METHOD SUMMARY =========== -->
185
186 <A NAME="method_summary"><!-- --></A>
187 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
188 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
189 <TD COLSPAN=2><FONT SIZE="+2">
190 <B>Method Summary</B></FONT></TD>
191 </TR>
192 <TR BGCOLOR="white" CLASS="TableRowColor">
193 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194 <CODE>&nbsp;void</CODE></FONT></TD>
195 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#addEntries(java.lang.Object[], java.lang.Object)">addEntries</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;children,
196 <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>
197
198 <BR>
199 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds all child parent pairs using addEntry.</TD>
200 </TR>
201 <TR BGCOLOR="white" CLASS="TableRowColor">
202 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
203 <CODE>&nbsp;void</CODE></FONT></TD>
204 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#addEntry(java.lang.Object, java.lang.Object)">addEntry</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,
205 <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>
206
207 <BR>
208 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a new entry for this child, parent pair to the parent map.</TD>
209 </TR>
210 <TR BGCOLOR="white" CLASS="TableRowColor">
211 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
212 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A></CODE></FONT></TD>
213 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#clone(java.util.Map)">clone</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;map)</CODE>
214
215 <BR>
216 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new parent map based on this parent map, where the child and
217 parents are mapped using <code>map</code>.</TD>
218 </TR>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE>static&nbsp;<A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A></CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#create(org.jgraph.graph.GraphModel, java.lang.Object[], boolean, boolean)">create</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;m,
223 <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;c,
224 boolean&nbsp;remove,
225 boolean&nbsp;onlyUsePassedInCells)</CODE>
226
227 <BR>
228 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a parent map that represents the insertion or removal of
229 <code>cells</code> in <code>model</code> based on <code>remove</code>.</TD>
230 </TR>
231 <TR BGCOLOR="white" CLASS="TableRowColor">
232 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233 <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>
234 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#entries()">entries</A></B>()</CODE>
235
236 <BR>
237 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an <code>Iterator</code> for the entries in the map.</TD>
238 </TR>
239 <TR BGCOLOR="white" CLASS="TableRowColor">
240 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241 <CODE>&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>
242 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#getChangedNodes()">getChangedNodes</A></B>()</CODE>
243
244 <BR>
245 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a <code>Set</code> for the nodes, childs and parents, in this
246 parent map.</TD>
247 </TR>
248 <TR BGCOLOR="white" CLASS="TableRowColor">
249 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250 <CODE>&nbsp;int</CODE></FONT></TD>
251 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#size()">size</A></B>()</CODE>
252
253 <BR>
254 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of entries.</TD>
255 </TR>
256 <TR BGCOLOR="white" CLASS="TableRowColor">
257 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
259 <TD><CODE><B><A HREF="../../../org/jgraph/graph/ParentMap.html#toString()">toString</A></B>()</CODE>
260
261 <BR>
262 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
263 </TR>
264 </TABLE>
265 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
266 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
267 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
268 <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>
269 </TR>
270 <TR BGCOLOR="white" CLASS="TableRowColor">
271 <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>
272 </TR>
273 </TABLE>
274 &nbsp;
275 <P>
276
277 <!-- ============ FIELD DETAIL =========== -->
278
279 <A NAME="field_detail"><!-- --></A>
280 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
281 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
282 <TD COLSPAN=1><FONT SIZE="+2">
283 <B>Field Detail</B></FONT></TD>
284 </TR>
285 </TABLE>
286
287 <A NAME="entries"><!-- --></A><H3>
288 entries</H3>
289 <PRE>
290 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html" title="class or interface in java.util">ArrayList</A> <B>entries</B></PRE>
291 <DL>
292 <DD>Contents of the parent map.
293 <P>
294 <DL>
295 </DL>
296 </DL>
297 <HR>
298
299 <A NAME="changedNodes"><!-- --></A><H3>
300 changedNodes</H3>
301 <PRE>
302 protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>changedNodes</B></PRE>
303 <DL>
304 <DD>Set of changed changedNodes for the parent map. Includes childs and
305 parents.
306 <P>
307 <DL>
308 </DL>
309 </DL>
310 <HR>
311
312 <A NAME="childCount"><!-- --></A><H3>
313 childCount</H3>
314 <PRE>
315 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>childCount</B></PRE>
316 <DL>
317 <DD>Maps parents to integers with the future number of childs.
318 <P>
319 <DL>
320 </DL>
321 </DL>
322
323 <!-- ========= CONSTRUCTOR DETAIL ======== -->
324
325 <A NAME="constructor_detail"><!-- --></A>
326 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
327 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
328 <TD COLSPAN=1><FONT SIZE="+2">
329 <B>Constructor Detail</B></FONT></TD>
330 </TR>
331 </TABLE>
332
333 <A NAME="ParentMap()"><!-- --></A><H3>
334 ParentMap</H3>
335 <PRE>
336 public <B>ParentMap</B>()</PRE>
337 <DL>
338 <DD>Constructs a <code>ParentMap</code> object.
339 <P>
340 </DL>
341 <HR>
342
343 <A NAME="ParentMap(java.lang.Object[], java.lang.Object)"><!-- --></A><H3>
344 ParentMap</H3>
345 <PRE>
346 public <B>ParentMap</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;children,
347 <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>
348 <DL>
349 <DD>Constructs a <code>ParentMap</code> object.
350 <P>
351 </DL>
352
353 <!-- ============ METHOD DETAIL ========== -->
354
355 <A NAME="method_detail"><!-- --></A>
356 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
357 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
358 <TD COLSPAN=1><FONT SIZE="+2">
359 <B>Method Detail</B></FONT></TD>
360 </TR>
361 </TABLE>
362
363 <A NAME="create(org.jgraph.graph.GraphModel, java.lang.Object[], boolean, boolean)"><!-- --></A><H3>
364 create</H3>
365 <PRE>
366 public static <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A> <B>create</B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A>&nbsp;m,
367 <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;c,
368 boolean&nbsp;remove,
369 boolean&nbsp;onlyUsePassedInCells)</PRE>
370 <DL>
371 <DD>Returns a parent map that represents the insertion or removal of
372 <code>cells</code> in <code>model</code> based on <code>remove</code>.
373 Unselected childs of selected nodes are moved to the first unselected
374 parent of that node.
375 <p>
376 <strong>Note:</strong> Consequently, cells "move up" one level when
377 their parent is removed. <strong>Note:</strong> onlyUsePassedInCells can
378 be used to indicate if only cells from the passed-in cell array are
379 allowed parents. This is only used if remove is not true.
380 <P>
381 <DD><DL>
382 </DL>
383 </DD>
384 <DD><DL>
385 </DL>
386 </DD>
387 </DL>
388 <HR>
389
390 <A NAME="addEntry(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
391 addEntry</H3>
392 <PRE>
393 public void <B>addEntry</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,
394 <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>
395 <DL>
396 <DD>Add a new entry for this child, parent pair to the parent map. The child
397 and parent are added to the set of changed nodes. Note: The previous
398 parent is changed on execution of this parent map and must be added by
399 the GraphModel and reflected by the GraphChange.getChanged method. TODO:
400 In general, the GraphModel should be in charge of computing the set of
401 changed cells.
402 <P>
403 <DD><DL>
404 </DL>
405 </DD>
406 <DD><DL>
407 </DL>
408 </DD>
409 </DL>
410 <HR>
411
412 <A NAME="addEntries(java.lang.Object[], java.lang.Object)"><!-- --></A><H3>
413 addEntries</H3>
414 <PRE>
415 public void <B>addEntries</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;children,
416 <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>
417 <DL>
418 <DD>Adds all child parent pairs using addEntry.
419 <P>
420 <DD><DL>
421 </DL>
422 </DD>
423 <DD><DL>
424 </DL>
425 </DD>
426 </DL>
427 <HR>
428
429 <A NAME="size()"><!-- --></A><H3>
430 size</H3>
431 <PRE>
432 public int <B>size</B>()</PRE>
433 <DL>
434 <DD>Returns the number of entries.
435 <P>
436 <DD><DL>
437 </DL>
438 </DD>
439 <DD><DL>
440 </DL>
441 </DD>
442 </DL>
443 <HR>
444
445 <A NAME="entries()"><!-- --></A><H3>
446 entries</H3>
447 <PRE>
448 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>entries</B>()</PRE>
449 <DL>
450 <DD>Returns an <code>Iterator</code> for the entries in the map.
451 <P>
452 <DD><DL>
453 </DL>
454 </DD>
455 <DD><DL>
456 </DL>
457 </DD>
458 </DL>
459 <HR>
460
461 <A NAME="getChangedNodes()"><!-- --></A><H3>
462 getChangedNodes</H3>
463 <PRE>
464 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>getChangedNodes</B>()</PRE>
465 <DL>
466 <DD>Returns a <code>Set</code> for the nodes, childs and parents, in this
467 parent map.
468 <P>
469 <DD><DL>
470 </DL>
471 </DD>
472 <DD><DL>
473 </DL>
474 </DD>
475 </DL>
476 <HR>
477
478 <A NAME="clone(java.util.Map)"><!-- --></A><H3>
479 clone</H3>
480 <PRE>
481 public <A HREF="../../../org/jgraph/graph/ParentMap.html" title="class in org.jgraph.graph">ParentMap</A> <B>clone</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;map)</PRE>
482 <DL>
483 <DD>Creates a new parent map based on this parent map, where the child and
484 parents are mapped using <code>map</code>. If one the cells is not in
485 <code>map</code>, then the original cell is used instead.
486 <p>
487 <P>
488 <DD><DL>
489 </DL>
490 </DD>
491 <DD><DL>
492 </DL>
493 </DD>
494 </DL>
495 <HR>
496
497 <A NAME="toString()"><!-- --></A><H3>
498 toString</H3>
499 <PRE>
500 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
501 <DL>
502 <DD><DL>
503 </DL>
504 </DD>
505 <DD><DL>
506 </DL>
507 </DD>
508 </DL>
509 <!-- ========= END OF CLASS DATA ========= -->
510 <HR>
511
512
513 <!-- ======= START OF BOTTOM NAVBAR ====== -->
514 <A NAME="navbar_bottom"><!-- --></A>
515 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
516 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
517 <TR>
518 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
519 <A NAME="navbar_bottom_firstrow"><!-- --></A>
520 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
521 <TR ALIGN="center" VALIGN="top">
522 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
523 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
524 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
525 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ParentMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
526 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
527 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
528 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
529 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
530 </TR>
531 </TABLE>
532 </TD>
533 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
534 <p><b>JGraph</b><br>v5.10.1.4</p></EM>
535 </TD>
536 </TR>
537
538 <TR>
539 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
540 &nbsp;<A HREF="../../../org/jgraph/graph/GraphUndoManager.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
541 &nbsp;<A HREF="../../../org/jgraph/graph/ParentMap.Entry.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
542 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
543 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
544 &nbsp;<A HREF="ParentMap.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
545 &nbsp;<SCRIPT type="text/javascript">
546 <!--
547 if(window==top) {
548 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
549 }
550 //-->
551 </SCRIPT>
552 <NOSCRIPT>
553 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
554 </NOSCRIPT>
555
556 </FONT></TD>
557 </TR>
558 <TR>
559 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
560 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>
561 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
562 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>
563 </TR>
564 </TABLE>
565 <A NAME="skip-navbar_bottom"></A>
566 <!-- ======== END OF BOTTOM NAVBAR ======= -->
567
568 <HR>
569 <font size=1>Copyright (C) 2001-2006 <a href="http://www.jgraph.com/"
570 target="_blank">Gaudenz Alder</a>. All rights reserved.</font>
571 </BODY>
572 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26