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

Contents of /libjgraph-java/trunk/doc/api/org/jgraph/graph/GraphContext.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: 32187 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 GraphContext (JGraph v5.10.1.4 API Specification)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jgraph.graph.GraphContext 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="GraphContext (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/GraphContext.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/GraphConstants.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../org/jgraph/graph/GraphLayoutCache.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="GraphContext.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;NESTED&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 GraphContext</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.GraphContext</B>
91 </PRE>
92 <DL>
93 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/jgraph/graph/CellMapper.html" title="interface in org.jgraph.graph">CellMapper</A></DD>
94 </DL>
95 <HR>
96 <DL>
97 <DT>public class <B>GraphContext</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../org/jgraph/graph/CellMapper.html" title="interface in org.jgraph.graph">CellMapper</A></DL>
98
99 <P>
100 <HR>
101
102 <P>
103 <!-- ======== NESTED CLASS SUMMARY ======== -->
104
105
106 <!-- =========== FIELD SUMMARY =========== -->
107
108 <A NAME="field_summary"><!-- --></A>
109 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
110 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
111 <TD COLSPAN=2><FONT SIZE="+2">
112 <B>Field Summary</B></FONT></TD>
113 </TR>
114 <TR BGCOLOR="white" CLASS="TableRowColor">
115 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
116 <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>
117 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#allCells">allCells</A></B></CODE>
118
119 <BR>
120 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set of all cells including all descendants.</TD>
121 </TR>
122 <TR BGCOLOR="white" CLASS="TableRowColor">
123 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
124 <CODE>protected &nbsp;int</CODE></FONT></TD>
125 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#cellCount">cellCount</A></B></CODE>
126
127 <BR>
128 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Number of all descendants without ports.</TD>
129 </TR>
130 <TR BGCOLOR="white" CLASS="TableRowColor">
131 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132 <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>
133 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#cells">cells</A></B></CODE>
134
135 <BR>
136 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reference to the cells.</TD>
137 </TR>
138 <TR BGCOLOR="white" CLASS="TableRowColor">
139 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140 <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A></CODE></FONT></TD>
141 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#cellSet">cellSet</A></B></CODE>
142
143 <BR>
144 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set of all cells including all descendants.</TD>
145 </TR>
146 <TR BGCOLOR="white" CLASS="TableRowColor">
147 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A></CODE></FONT></TD>
149 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#graph">graph</A></B></CODE>
150
151 <BR>
152 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reference to the parent graph.</TD>
153 </TR>
154 <TR BGCOLOR="white" CLASS="TableRowColor">
155 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/GraphLayoutCache.html" title="class in org.jgraph.graph">GraphLayoutCache</A></CODE></FONT></TD>
157 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#graphLayoutCache">graphLayoutCache</A></B></CODE>
158
159 <BR>
160 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reference to the graphs GraphLayoutCache.</TD>
161 </TR>
162 <TR BGCOLOR="white" CLASS="TableRowColor">
163 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164 <CODE>static&nbsp;boolean</CODE></FONT></TD>
165 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#PREVIEW_EDGE_GROUPS">PREVIEW_EDGE_GROUPS</A></B></CODE>
166
167 <BR>
168 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Switch to enable the preview of edge groups, that is, edges that 1 or
169 more children, as part of the context cells.</TD>
170 </TR>
171 <TR BGCOLOR="white" CLASS="TableRowColor">
172 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173 <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>
174 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#views">views</A></B></CODE>
175
176 <BR>
177 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Map of (cell, view) pairs including ports.</TD>
178 </TR>
179 </TABLE>
180 &nbsp;
181 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
182
183 <A NAME="constructor_summary"><!-- --></A>
184 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
185 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
186 <TD COLSPAN=2><FONT SIZE="+2">
187 <B>Constructor Summary</B></FONT></TD>
188 </TR>
189 <TR BGCOLOR="white" CLASS="TableRowColor">
190 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#GraphContext(org.jgraph.JGraph, java.lang.Object[])">GraphContext</A></B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;graph,
191 <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>
192
193 <BR>
194 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a graph context for <code>cells</code> with respect to the
195 connections defined in the model, and the views in the view of
196 <code>graph</code>.</TD>
197 </TR>
198 </TABLE>
199 &nbsp;
200 <!-- ========== METHOD SUMMARY =========== -->
201
202 <A NAME="method_summary"><!-- --></A>
203 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
204 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
205 <TD COLSPAN=2><FONT SIZE="+2">
206 <B>Method Summary</B></FONT></TD>
207 </TR>
208 <TR BGCOLOR="white" CLASS="TableRowColor">
209 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
210 <CODE>&nbsp;boolean</CODE></FONT></TD>
211 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.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>
212
213 <BR>
214 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if <code>node</code> or one of its
215 ancestors is contained in this object and visible in the original graph.</TD>
216 </TR>
217 <TR BGCOLOR="white" CLASS="TableRowColor">
218 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
219 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></FONT></TD>
220 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#createMapping(java.lang.Object)">createMapping</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>
221
222 <BR>
223 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
224 </TR>
225 <TR BGCOLOR="white" CLASS="TableRowColor">
226 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[]</CODE></FONT></TD>
228 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#createTemporaryCellViews()">createTemporaryCellViews</A></B>()</CODE>
229
230 <BR>
231 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an new consistent array of views for <code>cells</code>.</TD>
232 </TR>
233 <TR BGCOLOR="white" CLASS="TableRowColor">
234 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
235 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[]</CODE></FONT></TD>
236 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#createTemporaryContextViews()">createTemporaryContextViews</A></B>()</CODE>
237
238 <BR>
239 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an new consistent array of views for the edges that are connected
240 to and not contained in <code>cells</code>.</TD>
241 </TR>
242 <TR BGCOLOR="white" CLASS="TableRowColor">
243 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
244 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[]</CODE></FONT></TD>
245 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#createTemporaryContextViews(java.util.Set)">createTemporaryContextViews</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A>&nbsp;cellSet)</CODE>
246
247 <BR>
248 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an new consistent array of views for the edges that are connected
249 to and not contained in <code>cellSet</code>.</TD>
250 </TR>
251 <TR BGCOLOR="white" CLASS="TableRowColor">
252 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
253 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[]</CODE></FONT></TD>
254 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#createTemporaryPortViews()">createTemporaryPortViews</A></B>()</CODE>
255
256 <BR>
257 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an new consistent array of views for the ports.</TD>
258 </TR>
259 <TR BGCOLOR="white" CLASS="TableRowColor">
260 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
261 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A></CODE></FONT></TD>
262 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#disconnect(org.jgraph.graph.CellView[])">disconnect</A></B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[]&nbsp;cells)</CODE>
263
264 <BR>
265 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disconnects the edges in <code>cells</code> from the sources and
266 targets that are not in this context and returns a ConnectionSet that
267 defines the disconnection.</TD>
268 </TR>
269 <TR BGCOLOR="white" CLASS="TableRowColor">
270 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
271 <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>
272 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#getCells()">getCells</A></B>()</CODE>
273
274 <BR>
275 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the array that was passed to the constructor.</TD>
276 </TR>
277 <TR BGCOLOR="white" CLASS="TableRowColor">
278 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
279 <CODE>&nbsp;int</CODE></FONT></TD>
280 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#getDescendantCount()">getDescendantCount</A></B>()</CODE>
281
282 <BR>
283 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of all objects (cells and children) in this object.</TD>
284 </TR>
285 <TR BGCOLOR="white" CLASS="TableRowColor">
286 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
287 <CODE>&nbsp;<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A></CODE></FONT></TD>
288 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#getGraph()">getGraph</A></B>()</CODE>
289
290 <BR>
291 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the graph that was passed to the constructor.</TD>
292 </TR>
293 <TR BGCOLOR="white" CLASS="TableRowColor">
294 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
295 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></FONT></TD>
296 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#getMapping(java.lang.Object, boolean)">getMapping</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,
297 boolean&nbsp;create)</CODE>
298
299 <BR>
300 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>CellView</code> that is mapped to <code>cell</code>
301 in the graph context.</TD>
302 </TR>
303 <TR BGCOLOR="white" CLASS="TableRowColor">
304 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
305 <CODE>&nbsp;boolean</CODE></FONT></TD>
306 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#isEmpty()">isEmpty</A></B>()</CODE>
307
308 <BR>
309 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>true</code> if this object contains no cells.</TD>
310 </TR>
311 <TR BGCOLOR="white" CLASS="TableRowColor">
312 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
313 <CODE>&nbsp;void</CODE></FONT></TD>
314 <TD><CODE><B><A HREF="../../../org/jgraph/graph/GraphContext.html#putMapping(java.lang.Object, org.jgraph.graph.CellView)">putMapping</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,
315 <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>&nbsp;view)</CODE>
316
317 <BR>
318 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Associates <code>cell</code> with <code>view</code> in the graph
319 context.</TD>
320 </TR>
321 </TABLE>
322 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
323 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
324 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
325 <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>
326 </TR>
327 <TR BGCOLOR="white" CLASS="TableRowColor">
328 <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#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
329 </TR>
330 </TABLE>
331 &nbsp;
332 <P>
333
334 <!-- ============ FIELD DETAIL =========== -->
335
336 <A NAME="field_detail"><!-- --></A>
337 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
338 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
339 <TD COLSPAN=1><FONT SIZE="+2">
340 <B>Field Detail</B></FONT></TD>
341 </TR>
342 </TABLE>
343
344 <A NAME="PREVIEW_EDGE_GROUPS"><!-- --></A><H3>
345 PREVIEW_EDGE_GROUPS</H3>
346 <PRE>
347 public static boolean <B>PREVIEW_EDGE_GROUPS</B></PRE>
348 <DL>
349 <DD>Switch to enable the preview of edge groups, that is, edges that 1 or
350 more children, as part of the context cells.
351 <P>
352 <DL>
353 </DL>
354 </DL>
355 <HR>
356
357 <A NAME="graph"><!-- --></A><H3>
358 graph</H3>
359 <PRE>
360 protected <A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A> <B>graph</B></PRE>
361 <DL>
362 <DD>Reference to the parent graph.
363 <P>
364 <DL>
365 </DL>
366 </DL>
367 <HR>
368
369 <A NAME="graphLayoutCache"><!-- --></A><H3>
370 graphLayoutCache</H3>
371 <PRE>
372 protected transient <A HREF="../../../org/jgraph/graph/GraphLayoutCache.html" title="class in org.jgraph.graph">GraphLayoutCache</A> <B>graphLayoutCache</B></PRE>
373 <DL>
374 <DD>Reference to the graphs GraphLayoutCache.
375 <P>
376 <DL>
377 </DL>
378 </DL>
379 <HR>
380
381 <A NAME="cells"><!-- --></A><H3>
382 cells</H3>
383 <PRE>
384 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>cells</B></PRE>
385 <DL>
386 <DD>Reference to the cells.
387 <P>
388 <DL>
389 </DL>
390 </DL>
391 <HR>
392
393 <A NAME="allCells"><!-- --></A><H3>
394 allCells</H3>
395 <PRE>
396 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>allCells</B></PRE>
397 <DL>
398 <DD>Set of all cells including all descendants.
399 <P>
400 <DL>
401 </DL>
402 </DL>
403 <HR>
404
405 <A NAME="cellSet"><!-- --></A><H3>
406 cellSet</H3>
407 <PRE>
408 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>cellSet</B></PRE>
409 <DL>
410 <DD>Set of all cells including all descendants.
411 <P>
412 <DL>
413 </DL>
414 </DL>
415 <HR>
416
417 <A NAME="cellCount"><!-- --></A><H3>
418 cellCount</H3>
419 <PRE>
420 protected int <B>cellCount</B></PRE>
421 <DL>
422 <DD>Number of all descendants without ports.
423 <P>
424 <DL>
425 </DL>
426 </DL>
427 <HR>
428
429 <A NAME="views"><!-- --></A><H3>
430 views</H3>
431 <PRE>
432 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>views</B></PRE>
433 <DL>
434 <DD>Map of (cell, view) pairs including ports.
435 <P>
436 <DL>
437 </DL>
438 </DL>
439
440 <!-- ========= CONSTRUCTOR DETAIL ======== -->
441
442 <A NAME="constructor_detail"><!-- --></A>
443 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
444 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
445 <TD COLSPAN=1><FONT SIZE="+2">
446 <B>Constructor Detail</B></FONT></TD>
447 </TR>
448 </TABLE>
449
450 <A NAME="GraphContext(org.jgraph.JGraph, java.lang.Object[])"><!-- --></A><H3>
451 GraphContext</H3>
452 <PRE>
453 public <B>GraphContext</B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A>&nbsp;graph,
454 <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>
455 <DL>
456 <DD>Constructs a graph context for <code>cells</code> with respect to the
457 connections defined in the model, and the views in the view of
458 <code>graph</code>.
459 <P>
460 </DL>
461
462 <!-- ============ METHOD DETAIL ========== -->
463
464 <A NAME="method_detail"><!-- --></A>
465 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
466 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
467 <TD COLSPAN=1><FONT SIZE="+2">
468 <B>Method Detail</B></FONT></TD>
469 </TR>
470 </TABLE>
471
472 <A NAME="isEmpty()"><!-- --></A><H3>
473 isEmpty</H3>
474 <PRE>
475 public boolean <B>isEmpty</B>()</PRE>
476 <DL>
477 <DD>Returns <code>true</code> if this object contains no cells.
478 <P>
479 <DD><DL>
480 </DL>
481 </DD>
482 <DD><DL>
483 </DL>
484 </DD>
485 </DL>
486 <HR>
487
488 <A NAME="getDescendantCount()"><!-- --></A><H3>
489 getDescendantCount</H3>
490 <PRE>
491 public int <B>getDescendantCount</B>()</PRE>
492 <DL>
493 <DD>Returns the number of all objects (cells and children) in this object.
494 <P>
495 <DD><DL>
496 </DL>
497 </DD>
498 <DD><DL>
499 </DL>
500 </DD>
501 </DL>
502 <HR>
503
504 <A NAME="getGraph()"><!-- --></A><H3>
505 getGraph</H3>
506 <PRE>
507 public <A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A> <B>getGraph</B>()</PRE>
508 <DL>
509 <DD>Returns the graph that was passed to the constructor.
510 <P>
511 <DD><DL>
512 </DL>
513 </DD>
514 <DD><DL>
515 </DL>
516 </DD>
517 </DL>
518 <HR>
519
520 <A NAME="getCells()"><!-- --></A><H3>
521 getCells</H3>
522 <PRE>
523 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>getCells</B>()</PRE>
524 <DL>
525 <DD>Returns the array that was passed to the constructor.
526 <P>
527 <DD><DL>
528 </DL>
529 </DD>
530 <DD><DL>
531 </DL>
532 </DD>
533 </DL>
534 <HR>
535
536 <A NAME="contains(java.lang.Object)"><!-- --></A><H3>
537 contains</H3>
538 <PRE>
539 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>
540 <DL>
541 <DD>Returns <code>true</code> if <code>node</code> or one of its
542 ancestors is contained in this object and visible in the original graph.
543 <P>
544 <DD><DL>
545 </DL>
546 </DD>
547 <DD><DL>
548 </DL>
549 </DD>
550 </DL>
551 <HR>
552
553 <A NAME="createTemporaryCellViews()"><!-- --></A><H3>
554 createTemporaryCellViews</H3>
555 <PRE>
556 public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] <B>createTemporaryCellViews</B>()</PRE>
557 <DL>
558 <DD>Returns an new consistent array of views for <code>cells</code>.
559 <P>
560 <DD><DL>
561 </DL>
562 </DD>
563 <DD><DL>
564 </DL>
565 </DD>
566 </DL>
567 <HR>
568
569 <A NAME="createTemporaryPortViews()"><!-- --></A><H3>
570 createTemporaryPortViews</H3>
571 <PRE>
572 public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] <B>createTemporaryPortViews</B>()</PRE>
573 <DL>
574 <DD>Returns an new consistent array of views for the ports.
575 <P>
576 <DD><DL>
577 </DL>
578 </DD>
579 <DD><DL>
580 </DL>
581 </DD>
582 </DL>
583 <HR>
584
585 <A NAME="createTemporaryContextViews()"><!-- --></A><H3>
586 createTemporaryContextViews</H3>
587 <PRE>
588 public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] <B>createTemporaryContextViews</B>()</PRE>
589 <DL>
590 <DD>Returns an new consistent array of views for the edges that are connected
591 to and not contained in <code>cells</code>.
592 <P>
593 <DD><DL>
594 </DL>
595 </DD>
596 <DD><DL>
597 </DL>
598 </DD>
599 </DL>
600 <HR>
601
602 <A NAME="createTemporaryContextViews(java.util.Set)"><!-- --></A><H3>
603 createTemporaryContextViews</H3>
604 <PRE>
605 public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] <B>createTemporaryContextViews</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A>&nbsp;cellSet)</PRE>
606 <DL>
607 <DD>Returns an new consistent array of views for the edges that are connected
608 to and not contained in <code>cellSet</code>.
609 <P>
610 <DD><DL>
611 </DL>
612 </DD>
613 <DD><DL>
614 </DL>
615 </DD>
616 </DL>
617 <HR>
618
619 <A NAME="getMapping(java.lang.Object, boolean)"><!-- --></A><H3>
620 getMapping</H3>
621 <PRE>
622 public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> <B>getMapping</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,
623 boolean&nbsp;create)</PRE>
624 <DL>
625 <DD>Returns the <code>CellView</code> that is mapped to <code>cell</code>
626 in the graph context. New views are created based on whether cell is
627 contained in the context. The <code>create</code>-flag is ignored.
628 <P>
629 <DD><DL>
630 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellMapper.html#getMapping(java.lang.Object, boolean)">getMapping</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellMapper.html" title="interface in org.jgraph.graph">CellMapper</A></CODE></DL>
631 </DD>
632 <DD><DL>
633 <DT><B>Parameters:</B><DD><CODE>create</CODE> - whether a new view should created if a view does not already
634 exist</DL>
635 </DD>
636 </DL>
637 <HR>
638
639 <A NAME="createMapping(java.lang.Object)"><!-- --></A><H3>
640 createMapping</H3>
641 <PRE>
642 public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> <B>createMapping</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>
643 <DL>
644 <DD><DL>
645 </DL>
646 </DD>
647 <DD><DL>
648 </DL>
649 </DD>
650 </DL>
651 <HR>
652
653 <A NAME="disconnect(org.jgraph.graph.CellView[])"><!-- --></A><H3>
654 disconnect</H3>
655 <PRE>
656 public <A HREF="../../../org/jgraph/graph/ConnectionSet.html" title="class in org.jgraph.graph">ConnectionSet</A> <B>disconnect</B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[]&nbsp;cells)</PRE>
657 <DL>
658 <DD>Disconnects the edges in <code>cells</code> from the sources and
659 targets that are not in this context and returns a ConnectionSet that
660 defines the disconnection.
661 <P>
662 <DD><DL>
663 </DL>
664 </DD>
665 <DD><DL>
666 </DL>
667 </DD>
668 </DL>
669 <HR>
670
671 <A NAME="putMapping(java.lang.Object, org.jgraph.graph.CellView)"><!-- --></A><H3>
672 putMapping</H3>
673 <PRE>
674 public void <B>putMapping</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,
675 <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>&nbsp;view)</PRE>
676 <DL>
677 <DD>Associates <code>cell</code> with <code>view</code> in the graph
678 context.
679 <P>
680 <DD><DL>
681 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellMapper.html#putMapping(java.lang.Object, org.jgraph.graph.CellView)">putMapping</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellMapper.html" title="interface in org.jgraph.graph">CellMapper</A></CODE></DL>
682 </DD>
683 <DD><DL>
684 <DT><B>Parameters:</B><DD><CODE>cell</CODE> - the cell that constitutes the model element<DD><CODE>view</CODE> - the view that constitutes the view element</DL>
685 </DD>
686 </DL>
687 <!-- ========= END OF CLASS DATA ========= -->
688 <HR>
689
690
691 <!-- ======= START OF BOTTOM NAVBAR ====== -->
692 <A NAME="navbar_bottom"><!-- --></A>
693 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
694 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
695 <TR>
696 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
697 <A NAME="navbar_bottom_firstrow"><!-- --></A>
698 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
699 <TR ALIGN="center" VALIGN="top">
700 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
701 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
702 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
703 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/GraphContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
704 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
705 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
706 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
707 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
708 </TR>
709 </TABLE>
710 </TD>
711 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
712 <p><b>JGraph</b><br>v5.10.1.4</p></EM>
713 </TD>
714 </TR>
715
716 <TR>
717 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
718 &nbsp;<A HREF="../../../org/jgraph/graph/GraphConstants.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
719 &nbsp;<A HREF="../../../org/jgraph/graph/GraphLayoutCache.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
720 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
721 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
722 &nbsp;<A HREF="GraphContext.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
723 &nbsp;<SCRIPT type="text/javascript">
724 <!--
725 if(window==top) {
726 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
727 }
728 //-->
729 </SCRIPT>
730 <NOSCRIPT>
731 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
732 </NOSCRIPT>
733
734 </FONT></TD>
735 </TR>
736 <TR>
737 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
738 SUMMARY:&nbsp;NESTED&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>
739 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
740 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>
741 </TR>
742 </TABLE>
743 <A NAME="skip-navbar_bottom"></A>
744 <!-- ======== END OF BOTTOM NAVBAR ======= -->
745
746 <HR>
747 <font size=1>Copyright (C) 2001-2006 <a href="http://www.jgraph.com/"
748 target="_blank">Gaudenz Alder</a>. All rights reserved.</font>
749 </BODY>
750 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26