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

Contents of /libjgraph-java/trunk/doc/api/org/jgraph/graph/PortView.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: 31933 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 PortView (JGraph v5.10.1.4 API Specification)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jgraph.graph.PortView 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="PortView (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/PortView.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/PortRenderer.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../org/jgraph/graph/VertexRenderer.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="PortView.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 PortView</H2>
88 <PRE>
89 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
90 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph">org.jgraph.graph.AbstractCellView</A>
91 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jgraph.graph.PortView</B>
92 </PRE>
93 <DL>
94 <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>
95 </DL>
96 <HR>
97 <DL>
98 <DT>public class <B>PortView</B><DT>extends <A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph">AbstractCellView</A></DL>
99
100 <P>
101 The default implementation of a port view.
102 <P>
103
104 <P>
105 <DL>
106 <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jgraph.graph.PortView">Serialized Form</A></DL>
107 <HR>
108
109 <P>
110 <!-- ======== NESTED CLASS SUMMARY ======== -->
111
112
113 <!-- =========== FIELD SUMMARY =========== -->
114
115 <A NAME="field_summary"><!-- --></A>
116 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
118 <TD COLSPAN=2><FONT SIZE="+2">
119 <B>Field Summary</B></FONT></TD>
120 </TR>
121 <TR BGCOLOR="white" CLASS="TableRowColor">
122 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
123 <CODE>static&nbsp;boolean</CODE></FONT></TD>
124 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#allowPortMagic">allowPortMagic</A></B></CODE>
125
126 <BR>
127 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Controls if port magic should be allowed.</TD>
128 </TR>
129 <TR BGCOLOR="white" CLASS="TableRowColor">
130 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
131 <CODE>protected &nbsp;<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></FONT></TD>
132 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#lastParent">lastParent</A></B></CODE>
133
134 <BR>
135 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cache of the last valid parent.</TD>
136 </TR>
137 <TR BGCOLOR="white" CLASS="TableRowColor">
138 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
139 <CODE>static&nbsp;<A HREF="../../../org/jgraph/graph/PortRenderer.html" title="class in org.jgraph.graph">PortRenderer</A></CODE></FONT></TD>
140 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#renderer">renderer</A></B></CODE>
141
142 <BR>
143 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renderer for the class.</TD>
144 </TR>
145 <TR BGCOLOR="white" CLASS="TableRowColor">
146 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
147 <CODE>static&nbsp;int</CODE></FONT></TD>
148 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#SIZE">SIZE</A></B></CODE>
149
150 <BR>
151 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default size for all ports is 6.</TD>
152 </TR>
153 </TABLE>
154 &nbsp;<A NAME="fields_inherited_from_class_org.jgraph.graph.AbstractCellView"><!-- --></A>
155 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
156 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
157 <TD><B>Fields inherited from class org.jgraph.graph.<A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph">AbstractCellView</A></B></TD>
158 </TR>
159 <TR BGCOLOR="white" CLASS="TableRowColor">
160 <TD><CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html#allAttributes">allAttributes</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#attributes">attributes</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#cell">cell</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#cellEditor">cellEditor</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#childViews">childViews</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#groupBounds">groupBounds</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#parent">parent</A></CODE></TD>
161 </TR>
162 </TABLE>
163 &nbsp;
164 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
165
166 <A NAME="constructor_summary"><!-- --></A>
167 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
168 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
169 <TD COLSPAN=2><FONT SIZE="+2">
170 <B>Constructor Summary</B></FONT></TD>
171 </TR>
172 <TR BGCOLOR="white" CLASS="TableRowColor">
173 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#PortView()">PortView</A></B>()</CODE>
174
175 <BR>
176 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs an empty portview.</TD>
177 </TR>
178 <TR BGCOLOR="white" CLASS="TableRowColor">
179 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#PortView(java.lang.Object)">PortView</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>
180
181 <BR>
182 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a view that holds a reference to the specified cell, anchor
183 and parent vertex.</TD>
184 </TR>
185 </TABLE>
186 &nbsp;
187 <!-- ========== METHOD SUMMARY =========== -->
188
189 <A NAME="method_summary"><!-- --></A>
190 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
191 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
192 <TD COLSPAN=2><FONT SIZE="+2">
193 <B>Method Summary</B></FONT></TD>
194 </TR>
195 <TR BGCOLOR="white" CLASS="TableRowColor">
196 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
197 <CODE>&nbsp;<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>
198 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#getBounds()">getBounds</A></B>()</CODE>
199
200 <BR>
201 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounds for the port view.</TD>
202 </TR>
203 <TR BGCOLOR="white" CLASS="TableRowColor">
204 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellHandle.html" title="interface in org.jgraph.graph">CellHandle</A></CODE></FONT></TD>
206 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#getHandle(org.jgraph.graph.GraphContext)">getHandle</A></B>(<A HREF="../../../org/jgraph/graph/GraphContext.html" title="class in org.jgraph.graph">GraphContext</A>&nbsp;context)</CODE>
207
208 <BR>
209 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <code>null</code>.</TD>
210 </TR>
211 <TR BGCOLOR="white" CLASS="TableRowColor">
212 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213 <CODE>&nbsp;<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>
214 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#getLocation()">getLocation</A></B>()</CODE>
215
216 <BR>
217 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shortcut method to getLocation(null, null)</TD>
218 </TR>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE>&nbsp;<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>
222 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#getLocation(org.jgraph.graph.EdgeView)">getLocation</A></B>(<A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A>&nbsp;edge)</CODE>
223
224 <BR>
225 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For backwards compatibility.</TD>
226 </TR>
227 <TR BGCOLOR="white" CLASS="TableRowColor">
228 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229 <CODE>&nbsp;<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>
230 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#getLocation(org.jgraph.graph.EdgeView, java.awt.geom.Point2D)">getLocation</A></B>(<A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A>&nbsp;edge,
231 <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>&nbsp;nearest)</CODE>
232
233 <BR>
234 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the point that the port represents with respect to
235 <code>edge</code> and <code>point</code>, which is the nearest point
236 to this port view on the edge.</TD>
237 </TR>
238 <TR BGCOLOR="white" CLASS="TableRowColor">
239 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A></CODE></FONT></TD>
241 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#getParentView()">getParentView</A></B>()</CODE>
242
243 <BR>
244 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method ensures a non-null value.</TD>
245 </TR>
246 <TR BGCOLOR="white" CLASS="TableRowColor">
247 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248 <CODE>&nbsp;int</CODE></FONT></TD>
249 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#getPortSize()">getPortSize</A></B>()</CODE>
250
251 <BR>
252 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
253 </TR>
254 <TR BGCOLOR="white" CLASS="TableRowColor">
255 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/CellViewRenderer.html" title="interface in org.jgraph.graph">CellViewRenderer</A></CODE></FONT></TD>
257 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#getRenderer()">getRenderer</A></B>()</CODE>
258
259 <BR>
260 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a renderer for the class.</TD>
261 </TR>
262 <TR BGCOLOR="white" CLASS="TableRowColor">
263 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264 <CODE>&nbsp;void</CODE></FONT></TD>
265 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#setPortSize(int)">setPortSize</A></B>(int&nbsp;size)</CODE>
266
267 <BR>
268 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
269 </TR>
270 <TR BGCOLOR="white" CLASS="TableRowColor">
271 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272 <CODE>protected &nbsp;boolean</CODE></FONT></TD>
273 <TD><CODE><B><A HREF="../../../org/jgraph/graph/PortView.html#shouldInvokePortMagic(org.jgraph.graph.EdgeView)">shouldInvokePortMagic</A></B>(<A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A>&nbsp;edge)</CODE>
274
275 <BR>
276 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subclassers can override this to decide whether or not "port magic"
277 should appear on a given edge.</TD>
278 </TR>
279 </TABLE>
280 &nbsp;<A NAME="methods_inherited_from_class_org.jgraph.graph.AbstractCellView"><!-- --></A>
281 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
282 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
283 <TD><B>Methods inherited from class org.jgraph.graph.<A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph">AbstractCellView</A></B></TD>
284 </TR>
285 <TR BGCOLOR="white" CLASS="TableRowColor">
286 <TD><CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html#changeAttributes(org.jgraph.graph.GraphLayoutCache, java.util.Map)">changeAttributes</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#childUpdated()">childUpdated</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#createAttributeMap()">createAttributeMap</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getAllAttributes()">getAllAttributes</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getAttributes()">getAttributes</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getBounds(org.jgraph.graph.CellView[])">getBounds</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getCell()">getCell</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getCellAttributes(org.jgraph.graph.GraphModel)">getCellAttributes</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getCenterPoint(org.jgraph.graph.CellView)">getCenterPoint</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getChildViews()">getChildViews</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getDescendantViews(org.jgraph.graph.CellView[])">getDescendantViews</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getEditor()">getEditor</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getPerimeterPoint(org.jgraph.graph.EdgeView, java.awt.geom.Point2D, java.awt.geom.Point2D)">getPerimeterPoint</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#getRendererComponent(org.jgraph.JGraph, boolean, boolean, boolean)">getRendererComponent</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#includeInGroupBounds(org.jgraph.graph.CellView)">includeInGroupBounds</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#intersects(org.jgraph.JGraph, java.awt.geom.Rectangle2D)">intersects</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#isLeaf()">isLeaf</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#mergeAttributes()">mergeAttributes</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#refresh(org.jgraph.graph.GraphLayoutCache, org.jgraph.graph.CellMapper, boolean)">refresh</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#removeFromParent()">removeFromParent</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#scale(double, double, java.awt.geom.Point2D)">scale</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#setAttributes(org.jgraph.graph.AttributeMap)">setAttributes</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#setBounds(java.awt.geom.Rectangle2D)">setBounds</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#setCell(java.lang.Object)">setCell</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#translate(double, double)">translate</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#update(org.jgraph.graph.GraphLayoutCache)">update</A>, <A HREF="../../../org/jgraph/graph/AbstractCellView.html#updateGroupBounds()">updateGroupBounds</A></CODE></TD>
287 </TR>
288 </TABLE>
289 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
290 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
291 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
292 <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>
293 </TR>
294 <TR BGCOLOR="white" CLASS="TableRowColor">
295 <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>
296 </TR>
297 </TABLE>
298 &nbsp;
299 <P>
300
301 <!-- ============ FIELD DETAIL =========== -->
302
303 <A NAME="field_detail"><!-- --></A>
304 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
305 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
306 <TD COLSPAN=1><FONT SIZE="+2">
307 <B>Field Detail</B></FONT></TD>
308 </TR>
309 </TABLE>
310
311 <A NAME="SIZE"><!-- --></A><H3>
312 SIZE</H3>
313 <PRE>
314 public static transient int <B>SIZE</B></PRE>
315 <DL>
316 <DD>Default size for all ports is 6.
317 <P>
318 <DL>
319 </DL>
320 </DL>
321 <HR>
322
323 <A NAME="renderer"><!-- --></A><H3>
324 renderer</H3>
325 <PRE>
326 public static transient <A HREF="../../../org/jgraph/graph/PortRenderer.html" title="class in org.jgraph.graph">PortRenderer</A> <B>renderer</B></PRE>
327 <DL>
328 <DD>Renderer for the class.
329 <P>
330 <DL>
331 </DL>
332 </DL>
333 <HR>
334
335 <A NAME="allowPortMagic"><!-- --></A><H3>
336 allowPortMagic</H3>
337 <PRE>
338 public static boolean <B>allowPortMagic</B></PRE>
339 <DL>
340 <DD>Controls if port magic should be allowed. Default is true. This is an
341 easy switch to disable port magic for all instances of graphs.
342 <P>
343 <DL>
344 </DL>
345 </DL>
346 <HR>
347
348 <A NAME="lastParent"><!-- --></A><H3>
349 lastParent</H3>
350 <PRE>
351 protected transient <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> <B>lastParent</B></PRE>
352 <DL>
353 <DD>Cache of the last valid parent. //FIX: Better solution?
354 <P>
355 <DL>
356 </DL>
357 </DL>
358
359 <!-- ========= CONSTRUCTOR DETAIL ======== -->
360
361 <A NAME="constructor_detail"><!-- --></A>
362 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
363 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
364 <TD COLSPAN=1><FONT SIZE="+2">
365 <B>Constructor Detail</B></FONT></TD>
366 </TR>
367 </TABLE>
368
369 <A NAME="PortView()"><!-- --></A><H3>
370 PortView</H3>
371 <PRE>
372 public <B>PortView</B>()</PRE>
373 <DL>
374 <DD>Constructs an empty portview.
375 <P>
376 </DL>
377 <HR>
378
379 <A NAME="PortView(java.lang.Object)"><!-- --></A><H3>
380 PortView</H3>
381 <PRE>
382 public <B>PortView</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>
383 <DL>
384 <DD>Constructs a view that holds a reference to the specified cell, anchor
385 and parent vertex.
386 <P>
387 <DT><B>Parameters:</B><DD><CODE>cell</CODE> - reference to the cell in the model</DL>
388
389 <!-- ============ METHOD DETAIL ========== -->
390
391 <A NAME="method_detail"><!-- --></A>
392 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
393 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
394 <TD COLSPAN=1><FONT SIZE="+2">
395 <B>Method Detail</B></FONT></TD>
396 </TR>
397 </TABLE>
398
399 <A NAME="getParentView()"><!-- --></A><H3>
400 getParentView</H3>
401 <PRE>
402 public <A HREF="../../../org/jgraph/graph/CellView.html" title="interface in org.jgraph.graph">CellView</A> <B>getParentView</B>()</PRE>
403 <DL>
404 <DD>This method ensures a non-null value. If the super method returns null
405 then the last valid parent is returned. Note: If a vertex is removed, all
406 ports will be replaced in connected edges. The ports are replaced by the
407 center point of the <i>last </i> valid vertex view.
408 <P>
409 <DD><DL>
410 <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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getParentView()">getParentView</A></CODE> in class <CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph">AbstractCellView</A></CODE></DL>
411 </DD>
412 <DD><DL>
413
414 <DT><B>Returns:</B><DD>the parent view for this view</DL>
415 </DD>
416 </DL>
417 <HR>
418
419 <A NAME="getBounds()"><!-- --></A><H3>
420 getBounds</H3>
421 <PRE>
422 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>
423 <DL>
424 <DD>Returns the bounds for the port view.
425 <P>
426 <DD><DL>
427 <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><DT><B>Overrides:</B><DD><CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getBounds()">getBounds</A></CODE> in class <CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph">AbstractCellView</A></CODE></DL>
428 </DD>
429 <DD><DL>
430 </DL>
431 </DD>
432 </DL>
433 <HR>
434
435 <A NAME="getRenderer()"><!-- --></A><H3>
436 getRenderer</H3>
437 <PRE>
438 public <A HREF="../../../org/jgraph/graph/CellViewRenderer.html" title="interface in org.jgraph.graph">CellViewRenderer</A> <B>getRenderer</B>()</PRE>
439 <DL>
440 <DD>Returns a renderer for the class.
441 <P>
442 <DD><DL>
443 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getRenderer()">getRenderer</A></CODE> in class <CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph">AbstractCellView</A></CODE></DL>
444 </DD>
445 <DD><DL>
446
447 <DT><B>Returns:</B><DD>the renderer instance for this view</DL>
448 </DD>
449 </DL>
450 <HR>
451
452 <A NAME="getHandle(org.jgraph.graph.GraphContext)"><!-- --></A><H3>
453 getHandle</H3>
454 <PRE>
455 public <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>&nbsp;context)</PRE>
456 <DL>
457 <DD>Returns <code>null</code>.
458 <P>
459 <DD><DL>
460 <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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html#getHandle(org.jgraph.graph.GraphContext)">getHandle</A></CODE> in class <CODE><A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph">AbstractCellView</A></CODE></DL>
461 </DD>
462 <DD><DL>
463 <DT><B>Parameters:</B><DD><CODE>context</CODE> - the context of this cell view (cells indirectly affected by
464 it)
465 <DT><B>Returns:</B><DD>the cell handle for this view</DL>
466 </DD>
467 </DL>
468 <HR>
469
470 <A NAME="getLocation()"><!-- --></A><H3>
471 getLocation</H3>
472 <PRE>
473 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>getLocation</B>()</PRE>
474 <DL>
475 <DD>Shortcut method to getLocation(null, null)
476 <P>
477 <DD><DL>
478 </DL>
479 </DD>
480 </DL>
481 <HR>
482
483 <A NAME="getLocation(org.jgraph.graph.EdgeView)"><!-- --></A><H3>
484 getLocation</H3>
485 <PRE>
486 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>getLocation</B>(<A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A>&nbsp;edge)</PRE>
487 <DL>
488 <DD>For backwards compatibility.
489 <P>
490 <DD><DL>
491 </DL>
492 </DD>
493 </DL>
494 <HR>
495
496 <A NAME="getLocation(org.jgraph.graph.EdgeView, java.awt.geom.Point2D)"><!-- --></A><H3>
497 getLocation</H3>
498 <PRE>
499 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>getLocation</B>(<A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A>&nbsp;edge,
500 <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>&nbsp;nearest)</PRE>
501 <DL>
502 <DD>Returns the point that the port represents with respect to
503 <code>edge</code> and <code>point</code>, which is the nearest point
504 to this port view on the edge. <code>edge</code> and <code>point</code>
505 may be <code>null</code>.
506 <P>
507 <DD><DL>
508 </DL>
509 </DD>
510 </DL>
511 <HR>
512
513 <A NAME="shouldInvokePortMagic(org.jgraph.graph.EdgeView)"><!-- --></A><H3>
514 shouldInvokePortMagic</H3>
515 <PRE>
516 protected boolean <B>shouldInvokePortMagic</B>(<A HREF="../../../org/jgraph/graph/EdgeView.html" title="class in org.jgraph.graph">EdgeView</A>&nbsp;edge)</PRE>
517 <DL>
518 <DD>Subclassers can override this to decide whether or not "port magic"
519 should appear on a given edge. (Port magic means the port tries to make
520 the edge horizontal or vertical if the closest control point lies within
521 the bounds of the parent vertex.)
522 <P>
523 <DD><DL>
524 </DL>
525 </DD>
526 </DL>
527 <HR>
528
529 <A NAME="getPortSize()"><!-- --></A><H3>
530 getPortSize</H3>
531 <PRE>
532 public int <B>getPortSize</B>()</PRE>
533 <DL>
534 <DD><DL>
535
536 <DT><B>Returns:</B><DD>the port size</DL>
537 </DD>
538 </DL>
539 <HR>
540
541 <A NAME="setPortSize(int)"><!-- --></A><H3>
542 setPortSize</H3>
543 <PRE>
544 public void <B>setPortSize</B>(int&nbsp;size)</PRE>
545 <DL>
546 <DD><DL>
547 <DT><B>Parameters:</B><DD><CODE>size</CODE> - the port size to set</DL>
548 </DD>
549 </DL>
550 <!-- ========= END OF CLASS DATA ========= -->
551 <HR>
552
553
554 <!-- ======= START OF BOTTOM NAVBAR ====== -->
555 <A NAME="navbar_bottom"><!-- --></A>
556 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
557 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
558 <TR>
559 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
560 <A NAME="navbar_bottom_firstrow"><!-- --></A>
561 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
562 <TR ALIGN="center" VALIGN="top">
563 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
564 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
565 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
566 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PortView.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
567 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
568 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
569 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
570 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
571 </TR>
572 </TABLE>
573 </TD>
574 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
575 <p><b>JGraph</b><br>v5.10.1.4</p></EM>
576 </TD>
577 </TR>
578
579 <TR>
580 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
581 &nbsp;<A HREF="../../../org/jgraph/graph/PortRenderer.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
582 &nbsp;<A HREF="../../../org/jgraph/graph/VertexRenderer.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
583 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
584 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
585 &nbsp;<A HREF="PortView.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
586 &nbsp;<SCRIPT type="text/javascript">
587 <!--
588 if(window==top) {
589 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
590 }
591 //-->
592 </SCRIPT>
593 <NOSCRIPT>
594 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
595 </NOSCRIPT>
596
597 </FONT></TD>
598 </TR>
599 <TR>
600 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
601 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>
602 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
603 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>
604 </TR>
605 </TABLE>
606 <A NAME="skip-navbar_bottom"></A>
607 <!-- ======== END OF BOTTOM NAVBAR ======= -->
608
609 <HR>
610 <font size=1>Copyright (C) 2001-2006 <a href="http://www.jgraph.com/"
611 target="_blank">Gaudenz Alder</a>. All rights reserved.</font>
612 </BODY>
613 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26