1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.4.2_11) on Thu Aug 03 14:18:23 BST 2006 -->
7
AbstractCellView (JGraph v5.10.0.1 API Specification)
10
<META NAME="keywords" CONTENT="org.jgraph.graph.AbstractCellView class">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
parent.document.title="AbstractCellView (JGraph v5.10.0.1 API Specification)";
23
<BODY BGCOLOR="white" onload="windowTitle();">
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="">
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> </TD>
36
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
37
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
38
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractCellView.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
39
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
40
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
42
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
46
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47
<p><b>JGraph</b><br>v5.10.0.1</p></EM>
52
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53
PREV CLASS
54
<A HREF="../../../org/jgraph/graph/AttributeMap.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>
57
<A HREF="AbstractCellView.html" target="_top"><B>NO FRAMES</B></A>
58
<SCRIPT type="text/javascript">
61
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
66
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
72
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
74
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
78
<A NAME="skip-navbar_top"></A>
79
<!-- ========= END OF TOP NAVBAR ========= -->
82
<!-- ======== START OF CLASS DATA ======== -->
85
org.jgraph.graph</FONT>
87
Class AbstractCellView</H2>
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.AbstractCellView</B>
93
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</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>
96
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A>, <A HREF="../../../org/jgraph/graph/PortView.html" title="class in org.jgraph.graph">PortView</A>, <A HREF="../../../org/jgraph/graph/VertexView.html" title="class in org.jgraph.graph">VertexView</A></DD>
100
<DT>public abstract class <B>AbstractCellView</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/CellView.html" title="interface in org.jgraph.graph">CellView</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DL>
103
The abstract base class for all cell views.
108
<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jgraph.graph.AbstractCellView">Serialized Form</A></DL>
112
<!-- ======== NESTED CLASS SUMMARY ======== -->
115
<!-- =========== FIELD SUMMARY =========== -->
117
<A NAME="field_summary"><!-- --></A>
118
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
119
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
120
<TD COLSPAN=2><FONT SIZE="+2">
121
<B>Field Summary</B></FONT></TD>
123
<TR BGCOLOR="white" CLASS="TableRowColor">
124
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
125
<CODE>protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
126
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#allAttributes">allAttributes</A></B></CODE>
129
Contains the complete set of attributes, including the cell's attributes.</TD>
131
<TR BGCOLOR="white" CLASS="TableRowColor">
132
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
133
<CODE>protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
134
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#attributes">attributes</A></B></CODE>
137
Hashtable for attributes.</TD>
139
<TR BGCOLOR="white" CLASS="TableRowColor">
140
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
141
<CODE>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></CODE></FONT></TD>
142
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#cell">cell</A></B></CODE>
145
Reference to the cell for this view</TD>
147
<TR BGCOLOR="white" CLASS="TableRowColor">
148
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
149
<CODE>static <A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A></CODE></FONT></TD>
150
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#cellEditor">cellEditor</A></B></CODE>
153
Editor for the cell.</TD>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
157
<CODE>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></CODE></FONT></TD>
158
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#childViews">childViews</A></B></CODE>
161
Cached child views.</TD>
163
<TR BGCOLOR="white" CLASS="TableRowColor">
164
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
165
<CODE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A></CODE></FONT></TD>
166
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#groupBounds">groupBounds</A></B></CODE>
169
Cached bounds of all children if vertex is a group</TD>
171
<TR BGCOLOR="white" CLASS="TableRowColor">
172
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
173
<CODE>protected <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></FONT></TD>
174
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#parent">parent</A></B></CODE>
177
Cached parent view</TD>
181
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
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>
189
<TR BGCOLOR="white" CLASS="TableRowColor">
190
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#AbstractCellView()">AbstractCellView</A></B>()</CODE>
193
Constructs an empty abstract cell view.</TD>
195
<TR BGCOLOR="white" CLASS="TableRowColor">
196
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#AbstractCellView(java.lang.Object)">AbstractCellView</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> cell)</CODE>
199
Constructs a view for the specified model object, and invokes update on
200
the new instance.</TD>
204
<!-- ========== METHOD SUMMARY =========== -->
206
<A NAME="method_summary"><!-- --></A>
207
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
208
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
209
<TD COLSPAN=2><FONT SIZE="+2">
210
<B>Method Summary</B></FONT></TD>
212
<TR BGCOLOR="white" CLASS="TableRowColor">
213
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214
<CODE> <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>
215
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#changeAttributes(java.util.Map)">changeAttributes</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> change)</CODE>
218
Applies <code>change</code> to the attributes of the view and calls
221
<TR BGCOLOR="white" CLASS="TableRowColor">
222
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223
<CODE> void</CODE></FONT></TD>
224
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#childUpdated()">childUpdated</A></B>()</CODE>
227
Indicates to parent, if any, that this child has been updated.</TD>
229
<TR BGCOLOR="white" CLASS="TableRowColor">
230
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231
<CODE>protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
232
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#createAttributeMap()">createAttributeMap</A></B>()</CODE>
235
Hook for subclassers to avoid creating an empty AttributeMap during
236
construction of the instance.</TD>
238
<TR BGCOLOR="white" CLASS="TableRowColor">
239
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240
<CODE> <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
241
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getAllAttributes()">getAllAttributes</A></B>()</CODE>
244
Returns the attributes of the view combined with the attributes of the
245
corresponding cell.</TD>
247
<TR BGCOLOR="white" CLASS="TableRowColor">
248
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249
<CODE> <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
250
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getAttributes()">getAttributes</A></B>()</CODE>
253
Return the attributes of the view.</TD>
255
<TR BGCOLOR="white" CLASS="TableRowColor">
256
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
257
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A></CODE></FONT></TD>
258
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getBounds()">getBounds</A></B>()</CODE>
261
Returns the cached bounds for the group if isleaf is false</TD>
263
<TR BGCOLOR="white" CLASS="TableRowColor">
264
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265
<CODE>static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A></CODE></FONT></TD>
266
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getBounds(org.jgraph.graph.CellView[])">getBounds</A></B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] views)</CODE>
269
Returns the bounding box for the specified views.</TD>
271
<TR BGCOLOR="white" CLASS="TableRowColor">
272
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273
<CODE> <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>
274
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getCell()">getCell</A></B>()</CODE>
277
Returns the model object that this view represents.</TD>
279
<TR BGCOLOR="white" CLASS="TableRowColor">
280
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281
<CODE>protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
282
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getCellAttributes(org.jgraph.graph.GraphModel)">getCellAttributes</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A> model)</CODE>
285
Hook for subclassers to avoid cloning the cell's attributes.</TD>
287
<TR BGCOLOR="white" CLASS="TableRowColor">
288
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289
<CODE>static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A></CODE></FONT></TD>
290
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getCenterPoint(org.jgraph.graph.CellView)">getCenterPoint</A></B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> vertex)</CODE>
293
</TD>
295
<TR BGCOLOR="white" CLASS="TableRowColor">
296
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
297
<CODE> <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[]</CODE></FONT></TD>
298
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getChildViews()">getChildViews</A></B>()</CODE>
301
Returns the child views of this view.</TD>
303
<TR BGCOLOR="white" CLASS="TableRowColor">
304
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
305
<CODE>static <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[]</CODE></FONT></TD>
306
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getDescendantViews(org.jgraph.graph.CellView[])">getDescendantViews</A></B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] views)</CODE>
309
Returns all views, including descendants that have a parent in
310
<code>views</code> without the PortViews.</TD>
312
<TR BGCOLOR="white" CLASS="TableRowColor">
313
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
314
<CODE> <A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A></CODE></FONT></TD>
315
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getEditor()">getEditor</A></B>()</CODE>
318
Returns a cell editor for the view.</TD>
320
<TR BGCOLOR="white" CLASS="TableRowColor">
321
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
322
<CODE>abstract <A HREF="../../../org/jgraph/graph/CellHandle.html" title="interface in org.jgraph.graph">CellHandle</A></CODE></FONT></TD>
323
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getHandle(org.jgraph.graph.GraphContext)">getHandle</A></B>(<A HREF="../../../org/jgraph/graph/GraphContext.html" title="class in org.jgraph.graph">GraphContext</A> context)</CODE>
326
Returns a cell handle for the view.</TD>
328
<TR BGCOLOR="white" CLASS="TableRowColor">
329
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
330
<CODE> <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></FONT></TD>
331
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getParentView()">getParentView</A></B>()</CODE>
334
Returns the parent view for this view.</TD>
336
<TR BGCOLOR="white" CLASS="TableRowColor">
337
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
338
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A></CODE></FONT></TD>
339
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getPerimeterPoint(org.jgraph.graph.EdgeView, java.awt.geom.Point2D, java.awt.geom.Point2D)">getPerimeterPoint</A></B>(<A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A> edge,
340
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> source,
341
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> p)</CODE>
344
Returns the intersection of the bounding rectangle and the straight line
345
between the source and the specified point p.</TD>
347
<TR BGCOLOR="white" CLASS="TableRowColor">
348
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
349
<CODE>abstract <A HREF="../../../org/jgraph/graph/CellViewRenderer.html" title="interface in org.jgraph.graph">CellViewRenderer</A></CODE></FONT></TD>
350
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getRenderer()">getRenderer</A></B>()</CODE>
353
Obtains the renderer instance for this view</TD>
355
<TR BGCOLOR="white" CLASS="TableRowColor">
356
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
357
<CODE> <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A></CODE></FONT></TD>
358
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getRendererComponent(org.jgraph.JGraph, boolean, boolean, boolean)">getRendererComponent</A></B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A> graph,
359
boolean selected,
361
boolean preview)</CODE>
364
Returns a renderer component, configured for the view.</TD>
366
<TR BGCOLOR="white" CLASS="TableRowColor">
367
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
368
<CODE>protected boolean</CODE></FONT></TD>
369
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#includeInGroupBounds(org.jgraph.graph.CellView)">includeInGroupBounds</A></B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> view)</CODE>
372
This is used to exclude certain cell views from the group bounds
375
<TR BGCOLOR="white" CLASS="TableRowColor">
376
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
377
<CODE> boolean</CODE></FONT></TD>
378
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#intersects(org.jgraph.JGraph, java.awt.geom.Rectangle2D)">intersects</A></B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A> graph,
379
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> rect)</CODE>
382
Returns true if the view intersects the given rectangle.</TD>
384
<TR BGCOLOR="white" CLASS="TableRowColor">
385
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
386
<CODE> boolean</CODE></FONT></TD>
387
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#isLeaf()">isLeaf</A></B>()</CODE>
390
Returns <code>true</code> if the view is a leaf.</TD>
392
<TR BGCOLOR="white" CLASS="TableRowColor">
393
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
394
<CODE>protected void</CODE></FONT></TD>
395
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#mergeAttributes()">mergeAttributes</A></B>()</CODE>
398
Implements the merging of the cell's attributes, initially stored in
399
allAttributes, and the location attributes.</TD>
401
<TR BGCOLOR="white" CLASS="TableRowColor">
402
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
403
<CODE> void</CODE></FONT></TD>
404
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#refresh(org.jgraph.graph.GraphModel, org.jgraph.graph.CellMapper, boolean)">refresh</A></B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A> model,
405
<A HREF="../../../org/jgraph/graph/CellMapper.html" title="interface in org.jgraph.graph">CellMapper</A> mapper,
406
boolean createDependentViews)</CODE>
409
Create child views and reload properties for this view.</TD>
411
<TR BGCOLOR="white" CLASS="TableRowColor">
412
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
413
<CODE> void</CODE></FONT></TD>
414
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#removeFromParent()">removeFromParent</A></B>()</CODE>
417
Removes this view from the list of children of the parent.</TD>
419
<TR BGCOLOR="white" CLASS="TableRowColor">
420
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
421
<CODE> void</CODE></FONT></TD>
422
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#scale(double, double, java.awt.geom.Point2D)">scale</A></B>(double sx,
424
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> origin)</CODE>
427
Scale <code>view</code> (group) by <code>sx, sy</code>.</TD>
429
<TR BGCOLOR="white" CLASS="TableRowColor">
430
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
431
<CODE> void</CODE></FONT></TD>
432
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#setAttributes(org.jgraph.graph.AttributeMap)">setAttributes</A></B>(<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> attributes)</CODE>
435
Sets the attributes of this view to the specified value</TD>
437
<TR BGCOLOR="white" CLASS="TableRowColor">
438
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
439
<CODE> void</CODE></FONT></TD>
440
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#setBounds(java.awt.geom.Rectangle2D)">setBounds</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> bounds)</CODE>
443
Sets the bounds of this <code>view</code>.</TD>
445
<TR BGCOLOR="white" CLASS="TableRowColor">
446
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
447
<CODE> void</CODE></FONT></TD>
448
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#setCell(java.lang.Object)">setCell</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> cell)</CODE>
451
Sets the model object that this view represents to the specified cell</TD>
453
<TR BGCOLOR="white" CLASS="TableRowColor">
454
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
455
<CODE> void</CODE></FONT></TD>
456
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#translate(double, double)">translate</A></B>(double dx,
457
double dy)</CODE>
460
Translates <code>view</code> (group) by <code>dx, dy</code>.</TD>
462
<TR BGCOLOR="white" CLASS="TableRowColor">
463
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
464
<CODE> void</CODE></FONT></TD>
465
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#update()">update</A></B>()</CODE>
468
Update attributes for this view and indicate to the parent this child has
471
<TR BGCOLOR="white" CLASS="TableRowColor">
472
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
473
<CODE>protected void</CODE></FONT></TD>
474
<TD><CODE><B><A HREF="../../../org/jgraph/graph/AbstractCellView.html#updateGroupBounds()">updateGroupBounds</A></B>()</CODE>
477
Updates the bounds of this view and its children</TD>
480
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
481
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
482
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
483
<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>
485
<TR BGCOLOR="white" CLASS="TableRowColor">
486
<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>
492
<!-- ============ FIELD DETAIL =========== -->
494
<A NAME="field_detail"><!-- --></A>
495
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
496
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
497
<TD COLSPAN=1><FONT SIZE="+2">
498
<B>Field Detail</B></FONT></TD>
502
<A NAME="cellEditor"><!-- --></A><H3>
505
public static transient <A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A> <B>cellEditor</B></PRE>
507
<DD>Editor for the cell.
514
<A NAME="cell"><!-- --></A><H3>
517
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>cell</B></PRE>
519
<DD>Reference to the cell for this view
526
<A NAME="parent"><!-- --></A><H3>
529
protected <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> <B>parent</B></PRE>
531
<DD>Cached parent view
538
<A NAME="childViews"><!-- --></A><H3>
541
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>childViews</B></PRE>
543
<DD>Cached child views. Default is a ArrayList with allocation size 0.
550
<A NAME="allAttributes"><!-- --></A><H3>
553
protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>allAttributes</B></PRE>
555
<DD>Contains the complete set of attributes, including the cell's attributes.
556
The values in this map are overriden by the corresponding values in
557
<code>attributes</code>.
564
<A NAME="attributes"><!-- --></A><H3>
567
protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>attributes</B></PRE>
569
<DD>Hashtable for attributes. Value in this map override the values in
570
<code>allAttributes</code>.
577
<A NAME="groupBounds"><!-- --></A><H3>
580
protected transient <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> <B>groupBounds</B></PRE>
582
<DD>Cached bounds of all children if vertex is a group
588
<!-- ========= CONSTRUCTOR DETAIL ======== -->
590
<A NAME="constructor_detail"><!-- --></A>
591
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
592
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
593
<TD COLSPAN=1><FONT SIZE="+2">
594
<B>Constructor Detail</B></FONT></TD>
598
<A NAME="AbstractCellView()"><!-- --></A><H3>
599
AbstractCellView</H3>
601
public <B>AbstractCellView</B>()</PRE>
603
<DD>Constructs an empty abstract cell view. You should set a cell on this
604
view using setCell before doing anything. Optionally you can also set a
605
different attribute map using setAttributeMap. Note: To change the
606
attribute map you should now use the changeAttributes method.
611
<A NAME="AbstractCellView(java.lang.Object)"><!-- --></A><H3>
612
AbstractCellView</H3>
614
public <B>AbstractCellView</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> cell)</PRE>
616
<DD>Constructs a view for the specified model object, and invokes update on
619
<DT><B>Parameters:</B><DD><CODE>cell</CODE> - reference to the model object</DL>
621
<!-- ============ METHOD DETAIL ========== -->
623
<A NAME="method_detail"><!-- --></A>
624
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
625
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
626
<TD COLSPAN=1><FONT SIZE="+2">
627
<B>Method Detail</B></FONT></TD>
631
<A NAME="createAttributeMap()"><!-- --></A><H3>
632
createAttributeMap</H3>
634
protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>createAttributeMap</B>()</PRE>
636
<DD>Hook for subclassers to avoid creating an empty AttributeMap during
637
construction of the instance. Override this and return null if you want
638
to avoid creation of an attribute map at construction time.
649
<A NAME="getCell()"><!-- --></A><H3>
652
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>getCell</B>()</PRE>
654
<DD>Returns the model object that this view represents.
657
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getCell()">getCell</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
661
<DT><B>Returns:</B><DD>the model object that this view represents</DL>
666
<A NAME="setCell(java.lang.Object)"><!-- --></A><H3>
669
public void <B>setCell</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> cell)</PRE>
671
<DD>Sets the model object that this view represents to the specified cell
677
<DT><B>Parameters:</B><DD><CODE>cell</CODE> - the model object this view will represent</DL>
682
<A NAME="refresh(org.jgraph.graph.GraphModel, org.jgraph.graph.CellMapper, boolean)"><!-- --></A><H3>
685
public void <B>refresh</B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A> model,
686
<A HREF="../../../org/jgraph/graph/CellMapper.html" title="interface in org.jgraph.graph">CellMapper</A> mapper,
687
boolean createDependentViews)</PRE>
689
<DD>Create child views and reload properties for this view. Invokes update
693
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#refresh(org.jgraph.graph.GraphModel, org.jgraph.graph.CellMapper, boolean)">refresh</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
696
<DT><B>Parameters:</B><DD><CODE>model</CODE> - the graph model to be used<DD><CODE>mapper</CODE> - the cell mapper to be used<DD><CODE>createDependentViews</CODE> - whether or not to create a view if one does not already exist</DL>
701
<A NAME="getCellAttributes(org.jgraph.graph.GraphModel)"><!-- --></A><H3>
702
getCellAttributes</H3>
704
protected <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>getCellAttributes</B>(<A HREF="../../../org/jgraph/graph/GraphModel.html" title="interface in org.jgraph.graph">GraphModel</A> model)</PRE>
706
<DD>Hook for subclassers to avoid cloning the cell's attributes. Return
707
model.getAttributes(cell) to avoid cloning.
718
<A NAME="update()"><!-- --></A><H3>
721
public void <B>update</B>()</PRE>
723
<DD>Update attributes for this view and indicate to the parent this child has
727
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#update()">update</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
735
<A NAME="mergeAttributes()"><!-- --></A><H3>
738
protected void <B>mergeAttributes</B>()</PRE>
740
<DD>Implements the merging of the cell's attributes, initially stored in
741
allAttributes, and the location attributes. The result should be stored
742
in allAttributes. This hook is for subclassers to change the merging
754
<A NAME="childUpdated()"><!-- --></A><H3>
757
public void <B>childUpdated</B>()</PRE>
759
<DD>Indicates to parent, if any, that this child has been updated.
762
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#childUpdated()">childUpdated</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
770
<A NAME="getParentView()"><!-- --></A><H3>
773
public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> <B>getParentView</B>()</PRE>
775
<DD>Returns the parent view for this view.
778
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getParentView()">getParentView</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
782
<DT><B>Returns:</B><DD>the parent view for this view</DL>
787
<A NAME="getChildViews()"><!-- --></A><H3>
790
public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] <B>getChildViews</B>()</PRE>
792
<DD>Returns the child views of this view.
795
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getChildViews()">getChildViews</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
799
<DT><B>Returns:</B><DD>the child views of this view</DL>
804
<A NAME="getDescendantViews(org.jgraph.graph.CellView[])"><!-- --></A><H3>
805
getDescendantViews</H3>
807
public static <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] <B>getDescendantViews</B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] views)</PRE>
809
<DD>Returns all views, including descendants that have a parent in
810
<code>views</code> without the PortViews. Note: Iterative
811
Implementation using view.getChildViews. This returns the array in
812
inverse order, ie with the top most cell view at index 0.
818
<DT><B>Parameters:</B><DD><CODE>views</CODE> - the cell views whose descendants are to be returned
819
<DT><B>Returns:</B><DD>the specified views and all their descendant views</DL>
824
<A NAME="removeFromParent()"><!-- --></A><H3>
825
removeFromParent</H3>
827
public void <B>removeFromParent</B>()</PRE>
829
<DD>Removes this view from the list of children of the parent.
832
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#removeFromParent()">removeFromParent</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
840
<A NAME="isLeaf()"><!-- --></A><H3>
843
public boolean <B>isLeaf</B>()</PRE>
845
<DD>Returns <code>true</code> if the view is a leaf.
848
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#isLeaf()">isLeaf</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
852
<DT><B>Returns:</B><DD><code>true</code> if the view is a leaf</DL>
857
<A NAME="getAttributes()"><!-- --></A><H3>
860
public <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>getAttributes</B>()</PRE>
862
<DD>Return the attributes of the view.
865
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getAttributes()">getAttributes</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
869
<DT><B>Returns:</B><DD>the <code>attributes</code> of this view</DL>
874
<A NAME="setAttributes(org.jgraph.graph.AttributeMap)"><!-- --></A><H3>
877
public void <B>setAttributes</B>(<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> attributes)</PRE>
879
<DD>Sets the attributes of this view to the specified value
885
<DT><B>Parameters:</B><DD><CODE>attributes</CODE> - the new attributes to set</DL>
890
<A NAME="getAllAttributes()"><!-- --></A><H3>
891
getAllAttributes</H3>
893
public <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>getAllAttributes</B>()</PRE>
895
<DD>Returns the attributes of the view combined with the attributes of the
896
corresponding cell. The view's attributes override the cell's attributes
900
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getAllAttributes()">getAllAttributes</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
908
<A NAME="changeAttributes(java.util.Map)"><!-- --></A><H3>
909
changeAttributes</H3>
911
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>changeAttributes</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> change)</PRE>
913
<DD>Applies <code>change</code> to the attributes of the view and calls
917
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#changeAttributes(java.util.Map)">changeAttributes</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
920
<DT><B>Parameters:</B><DD><CODE>change</CODE> - a map of attribute changes to apply
921
<DT><B>Returns:</B><DD>the undo map that reverses this change</DL>
926
<A NAME="getBounds()"><!-- --></A><H3>
929
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> <B>getBounds</B>()</PRE>
931
<DD>Returns the cached bounds for the group if isleaf is false
934
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getBounds()">getBounds</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
942
<A NAME="getBounds(org.jgraph.graph.CellView[])"><!-- --></A><H3>
945
public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> <B>getBounds</B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A>[] views)</PRE>
947
<DD>Returns the bounding box for the specified views.
953
<DT><B>Parameters:</B><DD><CODE>views</CODE> - the views for whom the bounding box is to be determined
954
<DT><B>Returns:</B><DD>the bounding box of the specified views</DL>
959
<A NAME="setBounds(java.awt.geom.Rectangle2D)"><!-- --></A><H3>
962
public void <B>setBounds</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> bounds)</PRE>
964
<DD>Sets the bounds of this <code>view</code>. Calls translateView and
971
<DT><B>Parameters:</B><DD><CODE>bounds</CODE> - the new bounds for this cell view</DL>
976
<A NAME="updateGroupBounds()"><!-- --></A><H3>
977
updateGroupBounds</H3>
979
protected void <B>updateGroupBounds</B>()</PRE>
981
<DD>Updates the bounds of this view and its children
992
<A NAME="includeInGroupBounds(org.jgraph.graph.CellView)"><!-- --></A><H3>
993
includeInGroupBounds</H3>
995
protected boolean <B>includeInGroupBounds</B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> view)</PRE>
997
<DD>This is used to exclude certain cell views from the group bounds
998
computation. This implementation returns false for edges that connect to
999
one of their ancestor groups (eg. parent).
1005
<DT><B>Parameters:</B><DD><CODE>view</CODE> - the cell view to be included in the group bounds or not
1006
<DT><B>Returns:</B><DD>whether or not to include the specified cell in the group bounds</DL>
1011
<A NAME="translate(double, double)"><!-- --></A><H3>
1014
public void <B>translate</B>(double dx,
1015
double dy)</PRE>
1017
<DD>Translates <code>view</code> (group) by <code>dx, dy</code>.
1023
<DT><B>Parameters:</B><DD><CODE>dx</CODE> - the x-coordinate amount to translate by<DD><CODE>dy</CODE> - the y-coordinate amount to translate by</DL>
1028
<A NAME="scale(double, double, java.awt.geom.Point2D)"><!-- --></A><H3>
1031
public void <B>scale</B>(double sx,
1033
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> origin)</PRE>
1035
<DD>Scale <code>view</code> (group) by <code>sx, sy</code>.
1041
<DT><B>Parameters:</B><DD><CODE>sx</CODE> - the multiple by which the x coordinate position of the cell
1042
view is to be scaled<DD><CODE>sy</CODE> - the multiple by which the y coordinate position of the cell
1043
view is to be scaled<DD><CODE>origin</CODE> - the origin point from which the scaling will calculate</DL>
1048
<A NAME="intersects(org.jgraph.JGraph, java.awt.geom.Rectangle2D)"><!-- --></A><H3>
1051
public boolean <B>intersects</B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A> graph,
1052
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A> rect)</PRE>
1054
<DD>Returns true if the view intersects the given rectangle.
1057
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#intersects(org.jgraph.JGraph, java.awt.geom.Rectangle2D)">intersects</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
1060
<DT><B>Parameters:</B><DD><CODE>graph</CODE> - the <code>JGraph</code> instance of the view<DD><CODE>rect</CODE> - the rectangle within which intersection is being checked for
1061
<DT><B>Returns:</B><DD>whether or not the rectangle specified intersects the view</DL>
1066
<A NAME="getRendererComponent(org.jgraph.JGraph, boolean, boolean, boolean)"><!-- --></A><H3>
1067
getRendererComponent</H3>
1069
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> <B>getRendererComponent</B>(<A HREF="../../../org/jgraph/JGraph.html" title="class in org.jgraph">JGraph</A> graph,
1070
boolean selected,
1072
boolean preview)</PRE>
1074
<DD>Returns a renderer component, configured for the view. The method used to
1075
obtain the renderer instance must install the necessary attributes from
1079
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getRendererComponent(org.jgraph.JGraph, boolean, boolean, boolean)">getRendererComponent</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
1082
<DT><B>Parameters:</B><DD><CODE>graph</CODE> - the <code>JGraph</code> instance of the view<DD><CODE>selected</CODE> - whether or not this view is selected<DD><CODE>focus</CODE> - whether or not this view is the focus<DD><CODE>preview</CODE> - whether or not it is a preview of the view
1083
<DT><B>Returns:</B><DD>the renderer component for this view with this views attributes
1089
<A NAME="getRenderer()"><!-- --></A><H3>
1092
public abstract <A HREF="../../../org/jgraph/graph/CellViewRenderer.html" title="interface in org.jgraph.graph">CellViewRenderer</A> <B>getRenderer</B>()</PRE>
1094
<DD>Obtains the renderer instance for this view
1101
<DT><B>Returns:</B><DD>the renderer instance for this view</DL>
1106
<A NAME="getHandle(org.jgraph.graph.GraphContext)"><!-- --></A><H3>
1109
public abstract <A HREF="../../../org/jgraph/graph/CellHandle.html" title="interface in org.jgraph.graph">CellHandle</A> <B>getHandle</B>(<A HREF="../../../org/jgraph/graph/GraphContext.html" title="class in org.jgraph.graph">GraphContext</A> context)</PRE>
1111
<DD>Returns a cell handle for the view.
1114
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getHandle(org.jgraph.graph.GraphContext)">getHandle</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
1117
<DT><B>Parameters:</B><DD><CODE>context</CODE> - the context of this cell view (cells indirectly affected by
1119
<DT><B>Returns:</B><DD>the cell handle for this view</DL>
1124
<A NAME="getEditor()"><!-- --></A><H3>
1127
public <A HREF="../../../org/jgraph/graph/GraphCellEditor.html" title="interface in org.jgraph.graph">GraphCellEditor</A> <B>getEditor</B>()</PRE>
1129
<DD>Returns a cell editor for the view.
1132
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getEditor()">getEditor</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
1136
<DT><B>Returns:</B><DD>the cell editor for this view</DL>
1141
<A NAME="getCenterPoint(org.jgraph.graph.CellView)"><!-- --></A><H3>
1144
public static <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> <B>getCenterPoint</B>(<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> vertex)</PRE>
1155
<A NAME="getPerimeterPoint(org.jgraph.graph.EdgeView, java.awt.geom.Point2D, java.awt.geom.Point2D)"><!-- --></A><H3>
1156
getPerimeterPoint</H3>
1158
public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> <B>getPerimeterPoint</B>(<A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A> edge,
1159
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> source,
1160
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A> p)</PRE>
1162
<DD>Returns the intersection of the bounding rectangle and the straight line
1163
between the source and the specified point p. The specified point is
1164
expected not to intersect the bounds. Note: You must override this method
1165
if you use a different renderer. This is because this method relies on
1166
the VertexRenderer interface, which can not be safely assumed for
1170
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/CellView.html#getPerimeterPoint(org.jgraph.graph.EdgeView, java.awt.geom.Point2D, java.awt.geom.Point2D)">getPerimeterPoint</A></CODE> in interface <CODE><A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></DL>
1176
<!-- ========= END OF CLASS DATA ========= -->
1180
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1181
<A NAME="navbar_bottom"><!-- --></A>
1182
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1183
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1185
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1186
<A NAME="navbar_bottom_firstrow"><!-- --></A>
1187
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1188
<TR ALIGN="center" VALIGN="top">
1189
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
1190
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
1191
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
1192
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractCellView.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
1193
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
1194
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
1195
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
1196
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
1200
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1201
<p><b>JGraph</b><br>v5.10.0.1</p></EM>
1206
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1207
PREV CLASS
1208
<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
1209
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1210
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>
1211
<A HREF="AbstractCellView.html" target="_top"><B>NO FRAMES</B></A>
1212
<SCRIPT type="text/javascript">
1215
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
1220
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
1226
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1227
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
1228
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1229
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
1232
<A NAME="skip-navbar_bottom"></A>
1233
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1236
<font size=1>Copyright (C) 2001-2006 <a href="http://www.jgraph.com/"
1237
target="_blank">Gaudenz Alder</a>. All rights reserved.</font>