1.1.4
by gregor herrmann
Import upstream version 5.12.0.4.dfsg |
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 Mar 17 10:05:29 GMT 2008 -->
|
|
6 |
<TITLE> |
|
7 |
RectUtils (JGraph v5.12.0.4 API Specification) |
|
8 |
</TITLE> |
|
9 |
||
10 |
<META NAME="keywords" CONTENT="org.jgraph.util.RectUtils 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="RectUtils (JGraph v5.12.0.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> </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/RectUtils.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> |
|
43 |
</TR> |
|
44 |
</TABLE> |
|
45 |
</TD> |
|
46 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
|
47 |
<p><b>JGraph</b><br>v5.12.0.4</p></EM> |
|
48 |
</TD> |
|
49 |
</TR> |
|
50 |
||
51 |
<TR> |
|
52 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
53 |
<A HREF="../../../org/jgraph/util/ParallelEdgeRouter.html" title="class in org.jgraph.util"><B>PREV CLASS</B></A> |
|
54 |
<A HREF="../../../org/jgraph/util/Spline.html" title="class in org.jgraph.util"><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="RectUtils.html" target="_top"><B>NO FRAMES</B></A> |
|
58 |
<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: NESTED | FIELD | <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: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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.util</FONT> |
|
86 |
<BR> |
|
87 |
Class RectUtils</H2> |
|
88 |
<PRE> |
|
89 |
<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A> |
|
90 |
<IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jgraph.util.RectUtils</B> |
|
91 |
</PRE> |
|
92 |
<HR> |
|
93 |
<DL> |
|
94 |
<DT>public class <B>RectUtils</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></DL> |
|
95 |
||
96 |
<P> |
|
97 |
<HR> |
|
98 |
||
99 |
<P> |
|
100 |
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
101 |
||
102 |
||
103 |
<!-- =========== FIELD SUMMARY =========== -->
|
|
104 |
||
105 |
||
106 |
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
107 |
||
108 |
<A NAME="constructor_summary"><!-- --></A> |
|
109 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
|
110 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
111 |
<TD COLSPAN=2><FONT SIZE="+2"> |
|
112 |
<B>Constructor Summary</B></FONT></TD> |
|
113 |
</TR> |
|
114 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
115 |
<TD><CODE><B><A HREF="../../../org/jgraph/util/RectUtils.html#RectUtils()">RectUtils</A></B>()</CODE> |
|
116 |
||
117 |
<BR> |
|
118 |
</TD> |
|
119 |
</TR> |
|
120 |
</TABLE> |
|
121 |
|
|
122 |
<!-- ========== METHOD SUMMARY =========== -->
|
|
123 |
||
124 |
<A NAME="method_summary"><!-- --></A> |
|
125 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
|
126 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
127 |
<TD COLSPAN=2><FONT SIZE="+2"> |
|
128 |
<B>Method Summary</B></FONT></TD> |
|
129 |
</TR> |
|
130 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
131 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
132 |
<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> |
|
133 |
<TD><CODE><B><A HREF="../../../org/jgraph/util/RectUtils.html#union(java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D)">union</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> src1, |
|
134 |
<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> src2)</CODE> |
|
135 |
||
136 |
<BR> |
|
137 |
Unions the pair of source <code>Rectangle2D</code> objects and puts the |
|
138 |
result into the returned <code>Rectangle2D</code> object.</TD> |
|
139 |
</TR> |
|
140 |
</TABLE> |
|
141 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
|
142 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
|
143 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
|
144 |
<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> |
|
145 |
</TR> |
|
146 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
147 |
<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> |
|
148 |
</TR> |
|
149 |
</TABLE> |
|
150 |
|
|
151 |
<P> |
|
152 |
||
153 |
<!-- ============ FIELD DETAIL =========== -->
|
|
154 |
||
155 |
||
156 |
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
157 |
||
158 |
<A NAME="constructor_detail"><!-- --></A> |
|
159 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
|
160 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
161 |
<TD COLSPAN=1><FONT SIZE="+2"> |
|
162 |
<B>Constructor Detail</B></FONT></TD> |
|
163 |
</TR> |
|
164 |
</TABLE> |
|
165 |
||
166 |
<A NAME="RectUtils()"><!-- --></A><H3> |
|
167 |
RectUtils</H3> |
|
168 |
<PRE> |
|
169 |
public <B>RectUtils</B>()</PRE> |
|
170 |
<DL> |
|
171 |
</DL> |
|
172 |
||
173 |
<!-- ============ METHOD DETAIL ========== -->
|
|
174 |
||
175 |
<A NAME="method_detail"><!-- --></A> |
|
176 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
|
177 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
178 |
<TD COLSPAN=1><FONT SIZE="+2"> |
|
179 |
<B>Method Detail</B></FONT></TD> |
|
180 |
</TR> |
|
181 |
</TABLE> |
|
182 |
||
183 |
<A NAME="union(java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3> |
|
184 |
union</H3> |
|
185 |
<PRE> |
|
186 |
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>union</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> src1, |
|
187 |
<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> src2)</PRE> |
|
188 |
<DL> |
|
189 |
<DD>Unions the pair of source <code>Rectangle2D</code> objects and puts the |
|
190 |
result into the returned <code>Rectangle2D</code> object. This method |
|
191 |
extends the Rectangle2D version by checking for null parameters, the |
|
192 |
returned value will also be <code>null</code> if the two input |
|
193 |
rectangles are <code>null</code> |
|
194 |
<P> |
|
195 |
<DD><DL> |
|
196 |
<DT><B>Parameters:</B><DD><CODE>src1</CODE> - the first of a pair of <code>Rectangle2D</code> objects to |
|
197 |
be combined with each other<DD><CODE>src2</CODE> - the second of a pair of <code>Rectangle2D</code> objects to |
|
198 |
be combined with each other</DL> |
|
199 |
</DD> |
|
200 |
</DL> |
|
201 |
<!-- ========= END OF CLASS DATA ========= -->
|
|
202 |
<HR> |
|
203 |
||
204 |
||
205 |
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
206 |
<A NAME="navbar_bottom"><!-- --></A> |
|
207 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
|
208 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
|
209 |
<TR> |
|
210 |
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
|
211 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
|
212 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
|
213 |
<TR ALIGN="center" VALIGN="top"> |
|
214 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
|
215 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
|
216 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
|
217 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RectUtils.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
|
218 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
|
219 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
|
220 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
|
221 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
|
222 |
</TR> |
|
223 |
</TABLE> |
|
224 |
</TD> |
|
225 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
|
226 |
<p><b>JGraph</b><br>v5.12.0.4</p></EM> |
|
227 |
</TD> |
|
228 |
</TR> |
|
229 |
||
230 |
<TR> |
|
231 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
232 |
<A HREF="../../../org/jgraph/util/ParallelEdgeRouter.html" title="class in org.jgraph.util"><B>PREV CLASS</B></A> |
|
233 |
<A HREF="../../../org/jgraph/util/Spline.html" title="class in org.jgraph.util"><B>NEXT CLASS</B></A></FONT></TD> |
|
234 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
235 |
<A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> |
|
236 |
<A HREF="RectUtils.html" target="_top"><B>NO FRAMES</B></A> |
|
237 |
<SCRIPT type="text/javascript"> |
|
238 |
<!--
|
|
239 |
if(window==top) { |
|
240 |
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
|
241 |
}
|
|
242 |
//-->
|
|
243 |
</SCRIPT> |
|
244 |
<NOSCRIPT> |
|
245 |
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
|
246 |
</NOSCRIPT> |
|
247 |
||
248 |
</FONT></TD> |
|
249 |
</TR> |
|
250 |
<TR> |
|
251 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
|
252 |
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
|
253 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
|
254 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
|
255 |
</TR> |
|
256 |
</TABLE> |
|
257 |
<A NAME="skip-navbar_bottom"></A> |
|
258 |
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
259 |
||
260 |
<HR> |
|
261 |
<font size=1>Copyright (C) 2001-2006 <a href="http://www.jgraph.com/" |
|
262 |
target="_blank">Gaudenz Alder</a>. All rights reserved.</font> |
|
263 |
</BODY> |
|
264 |
</HTML> |