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

Contents of /libjgraph-java/trunk/doc/api/org/jgraph/graph/AttributeMap.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: 47921 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 AttributeMap (JGraph v5.10.1.4 API Specification)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jgraph.graph.AttributeMap 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="AttributeMap (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/AttributeMap.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/AbstractCellView.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../org/jgraph/graph/AttributeMap.SerializablePoint2D.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="AttributeMap.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 org.jgraph.graph</FONT>
86 <BR>
87 Class AttributeMap</H2>
88 <PRE>
89 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
90 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Dictionary.html" title="class or interface in java.util">java.util.Dictionary</A>
91 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html" title="class or interface in java.util">java.util.Hashtable</A>
92 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jgraph.graph.AttributeMap</B>
93 </PRE>
94 <DL>
95 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Cloneable.html" title="class or interface in java.lang">Cloneable</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</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 </DL>
97 <HR>
98 <DL>
99 <DT>public class <B>AttributeMap</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html" title="class or interface in java.util">Hashtable</A><DT>implements <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Cloneable.html" title="class or interface in java.lang">Cloneable</A></DL>
100
101 <P>
102 A map specifically for the storage of attributes of graph cells. The main
103 advantage of the AttributeMap is that it allows to override cell view
104 behaviour for scaling, translation, diffing, and cloning on a per instance
105 basis without having to change the GraphConstants class
106 <P>
107
108 <P>
109 <DL>
110 <DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.jgraph.graph.AttributeMap">Serialized Form</A></DL>
111 <HR>
112
113 <P>
114 <!-- ======== NESTED CLASS SUMMARY ======== -->
115
116 <A NAME="nested_class_summary"><!-- --></A>
117 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119 <TD COLSPAN=2><FONT SIZE="+2">
120 <B>Nested Class Summary</B></FONT></TD>
121 </TR>
122 <TR BGCOLOR="white" CLASS="TableRowColor">
123 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
124 <CODE>static&nbsp;class</CODE></FONT></TD>
125 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.SerializablePoint2D.html" title="class in org.jgraph.graph">AttributeMap.SerializablePoint2D</A></B></CODE>
126
127 <BR>
128 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
129 </TR>
130 <TR BGCOLOR="white" CLASS="TableRowColor">
131 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132 <CODE>static&nbsp;class</CODE></FONT></TD>
133 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.SerializableRectangle2D.html" title="class in org.jgraph.graph">AttributeMap.SerializableRectangle2D</A></B></CODE>
134
135 <BR>
136 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
137 </TR>
138 </TABLE>
139 &nbsp;
140 <!-- =========== FIELD SUMMARY =========== -->
141
142 <A NAME="field_summary"><!-- --></A>
143 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
144 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
145 <TD COLSPAN=2><FONT SIZE="+2">
146 <B>Field Summary</B></FONT></TD>
147 </TR>
148 <TR BGCOLOR="white" CLASS="TableRowColor">
149 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150 <CODE>static&nbsp;<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
151 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#emptyAttributeMap">emptyAttributeMap</A></B></CODE>
152
153 <BR>
154 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shared empty attribute map to return instead of null in applyMap.</TD>
155 </TR>
156 </TABLE>
157 &nbsp;
158 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
159
160 <A NAME="constructor_summary"><!-- --></A>
161 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
162 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
163 <TD COLSPAN=2><FONT SIZE="+2">
164 <B>Constructor Summary</B></FONT></TD>
165 </TR>
166 <TR BGCOLOR="white" CLASS="TableRowColor">
167 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#AttributeMap()">AttributeMap</A></B>()</CODE>
168
169 <BR>
170 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new attribute map with an initial capacity of 8.</TD>
171 </TR>
172 <TR BGCOLOR="white" CLASS="TableRowColor">
173 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#AttributeMap(int)">AttributeMap</A></B>(int&nbsp;initialCapacity)</CODE>
174
175 <BR>
176 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new attribute map with the specified initial capacity</TD>
177 </TR>
178 <TR BGCOLOR="white" CLASS="TableRowColor">
179 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#AttributeMap(int, float)">AttributeMap</A></B>(int&nbsp;initialCapacity,
180 float&nbsp;loadCapacity)</CODE>
181
182 <BR>
183 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new, empty hashtable with the specified initial capacity and
184 the specified load factor.</TD>
185 </TR>
186 <TR BGCOLOR="white" CLASS="TableRowColor">
187 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#AttributeMap(java.util.Map)">AttributeMap</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;map)</CODE>
188
189 <BR>
190 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new AttributeMap with the same mappings as the given Map.</TD>
191 </TR>
192 </TABLE>
193 &nbsp;
194 <!-- ========== METHOD SUMMARY =========== -->
195
196 <A NAME="method_summary"><!-- --></A>
197 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199 <TD COLSPAN=2><FONT SIZE="+2">
200 <B>Method Summary</B></FONT></TD>
201 </TR>
202 <TR BGCOLOR="white" CLASS="TableRowColor">
203 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204 <CODE>&nbsp;<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
205 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#applyMap(java.util.Map)">applyMap</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;change)</CODE>
206
207 <BR>
208 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Apply the <code>change</code> to this views attributes.</TD>
209 </TR>
210 <TR BGCOLOR="white" CLASS="TableRowColor">
211 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
212 <CODE>&nbsp;<A HREF="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>
213 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#applyValue(java.lang.Object, java.lang.Object)">applyValue</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;key,
214 <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;value)</CODE>
215
216 <BR>
217 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Apply the <code>key</code> to <code>value</code></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/lang/Object.html" title="class or interface in java.lang">Object</A></CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#clone()">clone</A></B>()</CODE>
223
224 <BR>
225 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a clone of <code>map</code>, from keys to values.</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="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A></CODE></FONT></TD>
230 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#cloneEntries(org.jgraph.graph.AttributeMap)">cloneEntries</A></B>(<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A>&nbsp;newMap)</CODE>
231
232 <BR>
233 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clones special object entried in the given map.</TD>
234 </TR>
235 <TR BGCOLOR="white" CLASS="TableRowColor">
236 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD>
238 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#clonePoints(java.util.List)">clonePoints</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&nbsp;points)</CODE>
239
240 <BR>
241 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list where all instances of PortView are replaced by their
242 correspnding Point instance.</TD>
243 </TR>
244 <TR BGCOLOR="white" CLASS="TableRowColor">
245 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A></CODE></FONT></TD>
247 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#clonePoints(java.lang.Object[], boolean)">clonePoints</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;points,
248 boolean&nbsp;convertPortViews)</CODE>
249
250 <BR>
251 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list where all instances of PortView are replaced by their
252 correspnding Point instance.</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="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>
257 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#clonePoints(java.awt.geom.Point2D[])">clonePoints</A></B>(<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;points)</CODE>
258
259 <BR>
260 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a list where all instances of PortView are replaced by their
261 correspnding Point instance.</TD>
262 </TR>
263 <TR BGCOLOR="white" CLASS="TableRowColor">
264 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
265 <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>
266 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createPoint()">createPoint</A></B>()</CODE>
267
268 <BR>
269 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a point of suitable type for this attribute map</TD>
270 </TR>
271 <TR BGCOLOR="white" CLASS="TableRowColor">
272 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
273 <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>
274 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createPoint(double, double)">createPoint</A></B>(double&nbsp;x,
275 double&nbsp;y)</CODE>
276
277 <BR>
278 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a point of suitable type for this attribute map with the same
279 values as those passed in</TD>
280 </TR>
281 <TR BGCOLOR="white" CLASS="TableRowColor">
282 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
283 <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>
284 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createPoint(java.awt.geom.Point2D)">createPoint</A></B>(<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;p)</CODE>
285
286 <BR>
287 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a point of suitable type for this attribute map with the same
288 values as the point passed in</TD>
289 </TR>
290 <TR BGCOLOR="white" CLASS="TableRowColor">
291 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
292 <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>
293 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createRect()">createRect</A></B>()</CODE>
294
295 <BR>
296 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a rectangle of suitable type for this attribute map</TD>
297 </TR>
298 <TR BGCOLOR="white" CLASS="TableRowColor">
299 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
300 <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>
301 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createRect(double, double, double, double)">createRect</A></B>(double&nbsp;x,
302 double&nbsp;y,
303 double&nbsp;w,
304 double&nbsp;h)</CODE>
305
306 <BR>
307 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a rectangle of suitable type for this attribute map with the same
308 values as those passed in</TD>
309 </TR>
310 <TR BGCOLOR="white" CLASS="TableRowColor">
311 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
312 <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>
313 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createRect(double, double, double, double, double, double)">createRect</A></B>(double&nbsp;x,
314 double&nbsp;y,
315 double&nbsp;w,
316 double&nbsp;h,
317 double&nbsp;grow1,
318 double&nbsp;grow2)</CODE>
319
320 <BR>
321 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a rectangle of suitable type for this attribute map</TD>
322 </TR>
323 <TR BGCOLOR="white" CLASS="TableRowColor">
324 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
325 <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>
326 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createRect(java.awt.geom.Point2D)">createRect</A></B>(<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;pt)</CODE>
327
328 <BR>
329 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a rectangle of suitable type for this attribute map at the
330 position of the point passed in</TD>
331 </TR>
332 <TR BGCOLOR="white" CLASS="TableRowColor">
333 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
334 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A></CODE></FONT></TD>
335 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createRect(java.awt.geom.Point2D, double)">createRect</A></B>(<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;pt,
336 double&nbsp;size)</CODE>
337
338 <BR>
339 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a rectangle of suitable type for this attribute map at the
340 position of the point passed in with lengths <code>size</code></TD>
341 </TR>
342 <TR BGCOLOR="white" CLASS="TableRowColor">
343 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
344 <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>
345 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createRect(java.awt.geom.Rectangle2D)">createRect</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>&nbsp;rect)</CODE>
346
347 <BR>
348 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clones the rectangle passed in</TD>
349 </TR>
350 <TR BGCOLOR="white" CLASS="TableRowColor">
351 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
352 <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>
353 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#createRect(java.awt.geom.Rectangle2D, double, double)">createRect</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>&nbsp;rect,
354 double&nbsp;grow1,
355 double&nbsp;grow2)</CODE>
356
357 <BR>
358 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a clone of the rectangle passed in and manipulates it by
359 <code>grow1</code> and <code>grow2</code></TD>
360 </TR>
361 <TR BGCOLOR="white" CLASS="TableRowColor">
362 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
363 <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A></CODE></FONT></TD>
364 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#diff(java.util.Map)">diff</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;newState)</CODE>
365
366 <BR>
367 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a new map that contains all (key, value)-pairs of
368 <code>newState</code> where either key is not used or value is
369 different for key in <code>oldState</code>.</TD>
370 </TR>
371 <TR BGCOLOR="white" CLASS="TableRowColor">
372 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
373 <CODE>&nbsp;void</CODE></FONT></TD>
374 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#scale(double, double, java.awt.geom.Point2D)">scale</A></B>(double&nbsp;sx,
375 double&nbsp;sy,
376 <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;origin)</CODE>
377
378 <BR>
379 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scales <code>map</code> by the given amount.</TD>
380 </TR>
381 <TR BGCOLOR="white" CLASS="TableRowColor">
382 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
383 <CODE>static&nbsp;void</CODE></FONT></TD>
384 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#translate(java.util.Collection, double, double)">translate</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;c,
385 double&nbsp;dx,
386 double&nbsp;dy)</CODE>
387
388 <BR>
389 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Translates the maps in <code>c</code> using
390 <code>translate(Map, int, int)</code>.</TD>
391 </TR>
392 <TR BGCOLOR="white" CLASS="TableRowColor">
393 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
394 <CODE>&nbsp;void</CODE></FONT></TD>
395 <TD><CODE><B><A HREF="../../../org/jgraph/graph/AttributeMap.html#translate(double, double)">translate</A></B>(double&nbsp;dx,
396 double&nbsp;dy)</CODE>
397
398 <BR>
399 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Translates <code>map</code> by the given amount.</TD>
400 </TR>
401 </TABLE>
402 &nbsp;<A NAME="methods_inherited_from_class_java.util.Hashtable"><!-- --></A>
403 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
404 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
405 <TD><B>Methods inherited from class java.util.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html" title="class or interface in java.util">Hashtable</A></B></TD>
406 </TR>
407 <TR BGCOLOR="white" CLASS="TableRowColor">
408 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#clear()" title="class or interface in java.util">clear</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#contains(java.lang.Object)" title="class or interface in java.util">contains</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#containsKey(java.lang.Object)" title="class or interface in java.util">containsKey</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#containsValue(java.lang.Object)" title="class or interface in java.util">containsValue</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#elements()" title="class or interface in java.util">elements</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#entrySet()" title="class or interface in java.util">entrySet</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#equals(java.lang.Object)" title="class or interface in java.util">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#get(java.lang.Object)" title="class or interface in java.util">get</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#hashCode()" title="class or interface in java.util">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#isEmpty()" title="class or interface in java.util">isEmpty</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#keys()" title="class or interface in java.util">keys</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#keySet()" title="class or interface in java.util">keySet</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#put(java.lang.Object, java.lang.Object)" title="class or interface in java.util">put</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#putAll(java.util.Map)" title="class or interface in java.util">putAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#rehash()" title="class or interface in java.util">rehash</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#remove(java.lang.Object)" title="class or interface in java.util">remove</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#size()" title="class or interface in java.util">size</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#toString()" title="class or interface in java.util">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html#values()" title="class or interface in java.util">values</A></CODE></TD>
409 </TR>
410 </TABLE>
411 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
412 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
413 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
414 <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>
415 </TR>
416 <TR BGCOLOR="white" CLASS="TableRowColor">
417 <TD><CODE><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#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
418 </TR>
419 </TABLE>
420 &nbsp;
421 <P>
422
423 <!-- ============ FIELD DETAIL =========== -->
424
425 <A NAME="field_detail"><!-- --></A>
426 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
427 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
428 <TD COLSPAN=1><FONT SIZE="+2">
429 <B>Field Detail</B></FONT></TD>
430 </TR>
431 </TABLE>
432
433 <A NAME="emptyAttributeMap"><!-- --></A><H3>
434 emptyAttributeMap</H3>
435 <PRE>
436 public static transient <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>emptyAttributeMap</B></PRE>
437 <DL>
438 <DD>Shared empty attribute map to return instead of null in applyMap.
439 <P>
440 <DL>
441 </DL>
442 </DL>
443
444 <!-- ========= CONSTRUCTOR DETAIL ======== -->
445
446 <A NAME="constructor_detail"><!-- --></A>
447 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
448 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
449 <TD COLSPAN=1><FONT SIZE="+2">
450 <B>Constructor Detail</B></FONT></TD>
451 </TR>
452 </TABLE>
453
454 <A NAME="AttributeMap()"><!-- --></A><H3>
455 AttributeMap</H3>
456 <PRE>
457 public <B>AttributeMap</B>()</PRE>
458 <DL>
459 <DD>Creates a new attribute map with an initial capacity of 8.
460 <P>
461 </DL>
462 <HR>
463
464 <A NAME="AttributeMap(int)"><!-- --></A><H3>
465 AttributeMap</H3>
466 <PRE>
467 public <B>AttributeMap</B>(int&nbsp;initialCapacity)</PRE>
468 <DL>
469 <DD>Creates a new attribute map with the specified initial capacity
470 <P>
471 <DT><B>Parameters:</B><DD><CODE>initialCapacity</CODE> - the initial capacity of the new map</DL>
472 <HR>
473
474 <A NAME="AttributeMap(int, float)"><!-- --></A><H3>
475 AttributeMap</H3>
476 <PRE>
477 public <B>AttributeMap</B>(int&nbsp;initialCapacity,
478 float&nbsp;loadCapacity)</PRE>
479 <DL>
480 <DD>Constructs a new, empty hashtable with the specified initial capacity and
481 the specified load factor.
482 <P>
483 <DT><B>Parameters:</B><DD><CODE>initialCapacity</CODE> - the initial capacity of the hashtable.<DD><CODE>loadCapacity</CODE> - the load factor of the hashtable.</DL>
484 <HR>
485
486 <A NAME="AttributeMap(java.util.Map)"><!-- --></A><H3>
487 AttributeMap</H3>
488 <PRE>
489 public <B>AttributeMap</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;map)</PRE>
490 <DL>
491 <DD>Constructs a new AttributeMap with the same mappings as the given Map.
492 <P>
493 <DT><B>Parameters:</B><DD><CODE>map</CODE> - the input map to copy</DL>
494
495 <!-- ============ METHOD DETAIL ========== -->
496
497 <A NAME="method_detail"><!-- --></A>
498 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
499 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
500 <TD COLSPAN=1><FONT SIZE="+2">
501 <B>Method Detail</B></FONT></TD>
502 </TR>
503 </TABLE>
504
505 <A NAME="createPoint()"><!-- --></A><H3>
506 createPoint</H3>
507 <PRE>
508 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>createPoint</B>()</PRE>
509 <DL>
510 <DD>Creates a point of suitable type for this attribute map
511 <P>
512 <DD><DL>
513 </DL>
514 </DD>
515 <DD><DL>
516
517 <DT><B>Returns:</B><DD>a new point</DL>
518 </DD>
519 </DL>
520 <HR>
521
522 <A NAME="createPoint(java.awt.geom.Point2D)"><!-- --></A><H3>
523 createPoint</H3>
524 <PRE>
525 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>createPoint</B>(<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;p)</PRE>
526 <DL>
527 <DD>Creates a point of suitable type for this attribute map with the same
528 values as the point passed in
529 <P>
530 <DD><DL>
531 </DL>
532 </DD>
533 <DD><DL>
534 <DT><B>Parameters:</B><DD><CODE>p</CODE> - the point whose values the new point are to be based on
535 <DT><B>Returns:</B><DD>a new copy of the point passed in</DL>
536 </DD>
537 </DL>
538 <HR>
539
540 <A NAME="createPoint(double, double)"><!-- --></A><H3>
541 createPoint</H3>
542 <PRE>
543 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>createPoint</B>(double&nbsp;x,
544 double&nbsp;y)</PRE>
545 <DL>
546 <DD>Creates a point of suitable type for this attribute map with the same
547 values as those passed in
548 <P>
549 <DD><DL>
550 </DL>
551 </DD>
552 <DD><DL>
553 <DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-coordinate position of the new point<DD><CODE>y</CODE> - the y-coordinate position of the new point
554 <DT><B>Returns:</B><DD>a new point at the coordinates passed in</DL>
555 </DD>
556 </DL>
557 <HR>
558
559 <A NAME="createRect()"><!-- --></A><H3>
560 createRect</H3>
561 <PRE>
562 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>createRect</B>()</PRE>
563 <DL>
564 <DD>Creates a rectangle of suitable type for this attribute map
565 <P>
566 <DD><DL>
567 </DL>
568 </DD>
569 <DD><DL>
570
571 <DT><B>Returns:</B><DD>a new rectangle</DL>
572 </DD>
573 </DL>
574 <HR>
575
576 <A NAME="createRect(double, double, double, double)"><!-- --></A><H3>
577 createRect</H3>
578 <PRE>
579 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>createRect</B>(double&nbsp;x,
580 double&nbsp;y,
581 double&nbsp;w,
582 double&nbsp;h)</PRE>
583 <DL>
584 <DD>Creates a rectangle of suitable type for this attribute map with the same
585 values as those passed in
586 <P>
587 <DD><DL>
588 </DL>
589 </DD>
590 <DD><DL>
591 <DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-coordinate position of the new rectangle<DD><CODE>y</CODE> - the y-coordinate position of the new rectangle<DD><CODE>w</CODE> - the width of the new rectangle<DD><CODE>h</CODE> - the height of the new rectangle
592 <DT><B>Returns:</B><DD>a new rectangle at the coordinates and of the dimensions passed
593 in</DL>
594 </DD>
595 </DL>
596 <HR>
597
598 <A NAME="createRect(java.awt.geom.Point2D)"><!-- --></A><H3>
599 createRect</H3>
600 <PRE>
601 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>createRect</B>(<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;pt)</PRE>
602 <DL>
603 <DD>Creates a rectangle of suitable type for this attribute map at the
604 position of the point passed in
605 <P>
606 <DD><DL>
607 </DL>
608 </DD>
609 <DD><DL>
610 <DT><B>Parameters:</B><DD><CODE>pt</CODE> - the position of the new rectangle
611 <DT><B>Returns:</B><DD>a new rectangle the specified coordinates of zero size</DL>
612 </DD>
613 </DL>
614 <HR>
615
616 <A NAME="createRect(java.awt.geom.Point2D, double)"><!-- --></A><H3>
617 createRect</H3>
618 <PRE>
619 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>createRect</B>(<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;pt,
620 double&nbsp;size)</PRE>
621 <DL>
622 <DD>Creates a rectangle of suitable type for this attribute map at the
623 position of the point passed in with lengths <code>size</code>
624 <P>
625 <DD><DL>
626 </DL>
627 </DD>
628 <DD><DL>
629 <DT><B>Parameters:</B><DD><CODE>pt</CODE> - the position of the new rectangle<DD><CODE>size</CODE> - the length of both sides of the rectangle
630 <DT><B>Returns:</B><DD>a new rectangle the specified position and dimensions</DL>
631 </DD>
632 </DL>
633 <HR>
634
635 <A NAME="createRect(java.awt.geom.Rectangle2D)"><!-- --></A><H3>
636 createRect</H3>
637 <PRE>
638 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>createRect</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>&nbsp;rect)</PRE>
639 <DL>
640 <DD>Clones the rectangle passed in
641 <P>
642 <DD><DL>
643 </DL>
644 </DD>
645 <DD><DL>
646 <DT><B>Parameters:</B><DD><CODE>rect</CODE> - the rectangle to clone
647 <DT><B>Returns:</B><DD>a copy of the rectangle passed in</DL>
648 </DD>
649 </DL>
650 <HR>
651
652 <A NAME="createRect(double, double, double, double, double, double)"><!-- --></A><H3>
653 createRect</H3>
654 <PRE>
655 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>createRect</B>(double&nbsp;x,
656 double&nbsp;y,
657 double&nbsp;w,
658 double&nbsp;h,
659 double&nbsp;grow1,
660 double&nbsp;grow2)</PRE>
661 <DL>
662 <DD>Creates a rectangle of suitable type for this attribute map
663 <P>
664 <DD><DL>
665 </DL>
666 </DD>
667 <DD><DL>
668 <DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-coordinate position of the new rectangle<DD><CODE>y</CODE> - the y-coordinate position of the new rectangle<DD><CODE>w</CODE> - the width of the new rectangle<DD><CODE>h</CODE> - the height of the new rectangle<DD><CODE>grow1</CODE> - the amount both dimensions are to be increased by and the
669 position coorindates of the rectangle are to be decreased by<DD><CODE>grow2</CODE> - the additional amount by which both dimensions are to be
670 increased by
671 <DT><B>Returns:</B><DD>a new rectangle at the coordinates and of the dimensions passed
672 in</DL>
673 </DD>
674 </DL>
675 <HR>
676
677 <A NAME="createRect(java.awt.geom.Rectangle2D, double, double)"><!-- --></A><H3>
678 createRect</H3>
679 <PRE>
680 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>createRect</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>&nbsp;rect,
681 double&nbsp;grow1,
682 double&nbsp;grow2)</PRE>
683 <DL>
684 <DD>Creates a clone of the rectangle passed in and manipulates it by
685 <code>grow1</code> and <code>grow2</code>
686 <P>
687 <DD><DL>
688 </DL>
689 </DD>
690 <DD><DL>
691 <DT><B>Parameters:</B><DD><CODE>grow1</CODE> - the amount both dimensions are to be increased by and the
692 position coorindates of the rectangle are to be decreased by<DD><CODE>grow2</CODE> - the additional amount by which both dimensions are to be
693 increased by
694 <DT><B>Returns:</B><DD>a new rectangle at the coordinates and of the dimensions passed
695 in</DL>
696 </DD>
697 </DL>
698 <HR>
699
700 <A NAME="applyMap(java.util.Map)"><!-- --></A><H3>
701 applyMap</H3>
702 <PRE>
703 public <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>applyMap</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;change)</PRE>
704 <DL>
705 <DD>Apply the <code>change</code> to this views attributes.
706 <code>change</code> must be a <code>Map</code> previously obtained
707 from this object.
708 <P>
709 <DD><DL>
710 </DL>
711 </DD>
712 <DD><DL>
713 <DT><B>Parameters:</B><DD><CODE>change</CODE> - the change to apply
714 <DT><B>Returns:</B><DD>a map that may be used to undo the change to target.</DL>
715 </DD>
716 </DL>
717 <HR>
718
719 <A NAME="applyValue(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
720 applyValue</H3>
721 <PRE>
722 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>applyValue</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;key,
723 <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;value)</PRE>
724 <DL>
725 <DD>Apply the <code>key</code> to <code>value</code>
726 <P>
727 <DD><DL>
728 </DL>
729 </DD>
730 <DD><DL>
731 <DT><B>Parameters:</B><DD><CODE>key</CODE> - the map key whose value is to be altered<DD><CODE>value</CODE> - the new value to be applied to the specified key
732 <DT><B>Returns:</B><DD>the old value.</DL>
733 </DD>
734 </DL>
735 <HR>
736
737 <A NAME="clonePoints(java.awt.geom.Point2D[])"><!-- --></A><H3>
738 clonePoints</H3>
739 <PRE>
740 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>clonePoints</B>(<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;points)</PRE>
741 <DL>
742 <DD>Returns a list where all instances of PortView are replaced by their
743 correspnding Point instance.
744 <P>
745 <DD><DL>
746 </DL>
747 </DD>
748 <DD><DL>
749 <DT><B>Parameters:</B><DD><CODE>points</CODE> - the points to be cloned
750 <DT><B>Returns:</B><DD>the cloned points</DL>
751 </DD>
752 </DL>
753 <HR>
754
755 <A NAME="clonePoints(java.util.List)"><!-- --></A><H3>
756 clonePoints</H3>
757 <PRE>
758 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>clonePoints</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A>&nbsp;points)</PRE>
759 <DL>
760 <DD>Returns a list where all instances of PortView are replaced by their
761 correspnding Point instance.
762 <P>
763 <DD><DL>
764 </DL>
765 </DD>
766 <DD><DL>
767 <DT><B>Parameters:</B><DD><CODE>points</CODE> - the points to be cloned
768 <DT><B>Returns:</B><DD>the cloned points</DL>
769 </DD>
770 </DL>
771 <HR>
772
773 <A NAME="clonePoints(java.lang.Object[], boolean)"><!-- --></A><H3>
774 clonePoints</H3>
775 <PRE>
776 public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/List.html" title="class or interface in java.util">List</A> <B>clonePoints</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;points,
777 boolean&nbsp;convertPortViews)</PRE>
778 <DL>
779 <DD>Returns a list where all instances of PortView are replaced by their
780 correspnding Point instance.
781 <P>
782 <DD><DL>
783 </DL>
784 </DD>
785 <DD><DL>
786 </DL>
787 </DD>
788 </DL>
789 <HR>
790
791 <A NAME="translate(java.util.Collection, double, double)"><!-- --></A><H3>
792 translate</H3>
793 <PRE>
794 public static void <B>translate</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;c,
795 double&nbsp;dx,
796 double&nbsp;dy)</PRE>
797 <DL>
798 <DD>Translates the maps in <code>c</code> using
799 <code>translate(Map, int, int)</code>.
800 <P>
801 <DD><DL>
802 </DL>
803 </DD>
804 <DD><DL>
805 </DL>
806 </DD>
807 </DL>
808 <HR>
809
810 <A NAME="translate(double, double)"><!-- --></A><H3>
811 translate</H3>
812 <PRE>
813 public void <B>translate</B>(double&nbsp;dx,
814 double&nbsp;dy)</PRE>
815 <DL>
816 <DD>Translates <code>map</code> by the given amount.
817 <P>
818 <DD><DL>
819 </DL>
820 </DD>
821 <DD><DL>
822 </DL>
823 </DD>
824 </DL>
825 <HR>
826
827 <A NAME="scale(double, double, java.awt.geom.Point2D)"><!-- --></A><H3>
828 scale</H3>
829 <PRE>
830 public void <B>scale</B>(double&nbsp;sx,
831 double&nbsp;sy,
832 <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;origin)</PRE>
833 <DL>
834 <DD>Scales <code>map</code> by the given amount.
835 <P>
836 <DD><DL>
837 </DL>
838 </DD>
839 <DD><DL>
840 </DL>
841 </DD>
842 </DL>
843 <HR>
844
845 <A NAME="diff(java.util.Map)"><!-- --></A><H3>
846 diff</H3>
847 <PRE>
848 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>diff</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Map.html" title="class or interface in java.util">Map</A>&nbsp;newState)</PRE>
849 <DL>
850 <DD>Returns a new map that contains all (key, value)-pairs of
851 <code>newState</code> where either key is not used or value is
852 different for key in <code>oldState</code>. In other words, this
853 method removes the common entries from oldState and newState, and returns
854 the "difference" between the two.
855
856 This method never returns null.
857 <P>
858 <DD><DL>
859 </DL>
860 </DD>
861 <DD><DL>
862 </DL>
863 </DD>
864 </DL>
865 <HR>
866
867 <A NAME="clone()"><!-- --></A><H3>
868 clone</H3>
869 <PRE>
870 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>clone</B>()</PRE>
871 <DL>
872 <DD>Returns a clone of <code>map</code>, from keys to values. If the map
873 contains bounds or points, these are cloned as well. References to
874 <code>PortViews</code> are replaces by points. <br>
875 <b>Note: </b> Extend this method to clone custom user objects.
876 <P>
877 <DD><DL>
878 </DL>
879 </DD>
880 <DD><DL>
881 </DL>
882 </DD>
883 </DL>
884 <HR>
885
886 <A NAME="cloneEntries(org.jgraph.graph.AttributeMap)"><!-- --></A><H3>
887 cloneEntries</H3>
888 <PRE>
889 public <A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A> <B>cloneEntries</B>(<A HREF="../../../org/jgraph/graph/AttributeMap.html" title="class in org.jgraph.graph">AttributeMap</A>&nbsp;newMap)</PRE>
890 <DL>
891 <DD>Clones special object entried in the given map.
892 <P>
893 <DD><DL>
894 </DL>
895 </DD>
896 <DD><DL>
897 </DL>
898 </DD>
899 </DL>
900 <!-- ========= END OF CLASS DATA ========= -->
901 <HR>
902
903
904 <!-- ======= START OF BOTTOM NAVBAR ====== -->
905 <A NAME="navbar_bottom"><!-- --></A>
906 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
907 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
908 <TR>
909 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
910 <A NAME="navbar_bottom_firstrow"><!-- --></A>
911 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
912 <TR ALIGN="center" VALIGN="top">
913 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
914 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
915 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
916 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AttributeMap.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
917 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
918 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
919 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
920 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
921 </TR>
922 </TABLE>
923 </TD>
924 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
925 <p><b>JGraph</b><br>v5.10.1.4</p></EM>
926 </TD>
927 </TR>
928
929 <TR>
930 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
931 &nbsp;<A HREF="../../../org/jgraph/graph/AbstractCellView.html" title="class in org.jgraph.graph"><B>PREV CLASS</B></A>&nbsp;
932 &nbsp;<A HREF="../../../org/jgraph/graph/AttributeMap.SerializablePoint2D.html" title="class in org.jgraph.graph"><B>NEXT CLASS</B></A></FONT></TD>
933 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
934 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
935 &nbsp;<A HREF="AttributeMap.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
936 &nbsp;<SCRIPT type="text/javascript">
937 <!--
938 if(window==top) {
939 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
940 }
941 //-->
942 </SCRIPT>
943 <NOSCRIPT>
944 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
945 </NOSCRIPT>
946
947 </FONT></TD>
948 </TR>
949 <TR>
950 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
951 SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
952 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
953 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>
954 </TR>
955 </TABLE>
956 <A NAME="skip-navbar_bottom"></A>
957 <!-- ======== END OF BOTTOM NAVBAR ======= -->
958
959 <HR>
960 <font size=1>Copyright (C) 2001-2006 <a href="http://www.jgraph.com/"
961 target="_blank">Gaudenz Alder</a>. All rights reserved.</font>
962 </BODY>
963 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26