rectangle2d.html

来自「API資料大全」· HTML 代码 · 共 1,015 行 · 第 1/4 页

HTML
1,015
字号
                             <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A>&nbsp;dest)</PRE><DL><DD>Intersects the pair of specified source <code>Rectangle2D</code> objects and puts the result into the specified destination <code>Rectangle2D</code> object.<DD><DL><DT><B>Parameters:</B><DD><CODE>src1</CODE> - the first of a pair of <code>Rectangle2D</code>  objects to be intersected with each other<DD><CODE>src2</CODE> - the second of a pair of <code>Rectangle2D</code> objects to be intersected with each other<DD><CODE>dest</CODE> - the <code>Rectangle2D</code> that holds the results of the intersection of <code>src1</code> and <code>src2</code><DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="createUnion(java.awt.geom.Rectangle2D)"><!-- --></A><H3>createUnion</H3><PRE>public abstract <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>createUnion</B>(<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A>&nbsp;r)</PRE><DL><DD>Returns a new <code>Rectangle2D</code> object representing the union of this <code>Rectangle2D</code> with the specified <code>Rectangle2D</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - the <code>Rectangle2D</code> to be combined with this <code>Rectangle2D</code><DT><B>Returns:</B><DD>the smallest <code>Rectangle2D</code> containing both  the specified <code>Rectangle2D</code> and this  <code>Rectangle2D</code>.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="union(java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D, java.awt.geom.Rectangle2D)"><!-- --></A><H3>union</H3><PRE>public static void <B>union</B>(<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A>&nbsp;src1,                         <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A>&nbsp;src2,                         <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A>&nbsp;dest)</PRE><DL><DD>Unions the pair of source <code>Rectangle2D</code> objects  and puts the result into the specified destination  <code>Rectangle2D</code> object.<DD><DL><DT><B>Parameters:</B><DD><CODE>src1</CODE> - the first of a pair of <code>Rectangle2D</code> objects to be combined with each other<DD><CODE>src2</CODE> - the second of a pair of <code>Rectangle2D</code> objects to be combined with each other<DD><CODE>dest</CODE> - the <code>Rectangle2D</code> that holds the results of the union of <code>src1</code> and   <code>src2</code><DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="add(double, double)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(double&nbsp;newx,                double&nbsp;newy)</PRE><DL><DD>Adds a point, specified by the double precision arguments <code>newx</code> and <code>newy</code>, to this  <code>Rectangle2D</code>.  The resulting <code>Rectangle2D</code>  is the smallest <code>Rectangle2D</code> that contains both the original <code>Rectangle2D</code> and the specified point. <p> After adding a point, a call to <code>contains</code> with the  added point as an argument does not necessarily return  <code>true</code>. The <code>contains</code> method does not  return <code>true</code> for points on the right or bottom  edges of a rectangle. Therefore, if the added point falls on  the left or bottom edge of the enlarged rectangle,  <code>contains</code> returns <code>false</code> for that point.<DD><DL><DT><B>Parameters:</B><DD><CODE>newx,&nbsp;newy</CODE> - the coordinates of the new point<DT><B>Since: </B><DD>JDK1.0</DD></DL></DD></DL><HR><A NAME="add(java.awt.geom.Point2D)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A>&nbsp;pt)</PRE><DL><DD>Adds the <code>Point2D</code> object <code>pt</code> to this <code>Rectangle2D</code>. The resulting <code>Rectangle2D</code> is the smallest  <code>Rectangle2D</code> that contains both the original <code>Rectangle2D</code> and the specified <code>Point2D</code>. <p> After adding a point, a call to <code>contains</code> with the  added point as an argument does not necessarily return <code>true</code>. The <code>contains</code>  method does not return <code>true</code> for points on the right  or bottom edges of a rectangle. Therefore, if the added point falls on the left or bottom edge of the enlarged rectangle,  <code>contains</code> returns <code>false</code> for that point.<DD><DL><DT><B>Parameters:</B><DD><CODE>pt</CODE> - the new <code>Point2D</code> to add to this <code>Rectangle2D</code>.<DT><B>Since: </B><DD>JDK1.0</DD></DL></DD></DL><HR><A NAME="add(java.awt.geom.Rectangle2D)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A>&nbsp;r)</PRE><DL><DD>Adds a <code>Rectangle2D</code> object to this  <code>Rectangle2D</code>.  The resulting <code>Rectangle2D</code> is the union of the two <code>Rectangle2D</code> objects.<DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - the <code>Rectangle2D</code> to add to this <code>Rectangle2D</code>.<DT><B>Since: </B><DD>JDK1.0</DD></DL></DD></DL><HR><A NAME="getPathIterator(java.awt.geom.AffineTransform)"><!-- --></A><H3>getPathIterator</H3><PRE>public <A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A> <B>getPathIterator</B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A>&nbsp;at)</PRE><DL><DD>Returns an iteration object that defines the boundary of this <code>Rectangle2D</code>. The iterator for this class is multi-threaded safe, which means that this <code>Rectangle2D</code> class guarantees that modifications to the geometry of this <code>Rectangle2D</code> object do not affect any iterations of that geometry that are already in process.<DD><DL><DT><B>Parameters:</B><DD><CODE>at</CODE> - an optional <code>AffineTransform</code> to be applied to the coordinates as they are returned in the iteration, or <code>null</code> if untransformed coordinates are desired<DT><B>Returns:</B><DD>the <code>PathIterator</code> object that returns the          geometry of the outline of this          <code>Rectangle2D</code>, one segment at a time.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="getPathIterator(java.awt.geom.AffineTransform, double)"><!-- --></A><H3>getPathIterator</H3><PRE>public <A HREF="../../../java/awt/geom/PathIterator.html">PathIterator</A> <B>getPathIterator</B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A>&nbsp;at,                                    double&nbsp;flatness)</PRE><DL><DD>Returns an iteration object that defines the boundary of the flattened <code>Rectangle2D</code>.  Since rectangles are already flat, the <code>flatness</code> parameter is ignored. The iterator for this class is multi-threaded safe, which means that this <code>Rectangle2D</code> class guarantees that modifications to the geometry of this <code>Rectangle2D</code> object do not affect any iterations of that geometry that are already in process.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/awt/geom/RectangularShape.html#getPathIterator(java.awt.geom.AffineTransform, double)">getPathIterator</A></CODE> in class <CODE><A HREF="../../../java/awt/geom/RectangularShape.html">RectangularShape</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>at</CODE> - an optional <code>AffineTransform</code> to be applied to the coordinates as they are returned in the iteration, or <code>null</code> if untransformed coordinates are desired<DD><CODE>flatness</CODE> - the maximum distance that the line segments used to approximate the curved segments are allowed to deviate from any point on the original curve.  Since rectangles are already flat, the <code>flatness</code> parameter is ignored.<DT><B>Returns:</B><DD>the <code>PathIterator</code> object that returns the          geometry of the outline of this          <code>Rectangle2D</code>, one segment at a time.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns the hashcode for this <code>Rectangle2D</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the hashcode for this <code>Rectangle2D</code>.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj)</PRE><DL><DD>Determines whether or not the specified <code>Object</code> is equal to this <code>Rectangle2D</code>.  The specified  <code>Object</code> is equal to this <code>Rectangle2D</code> if it is an instance of <code>Rectangle2D</code> and if its location and size are the same as this <code>Rectangle2D</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - an <code>Object</code> to be compared with this <code>Rectangle2D</code>.<DT><B>Returns:</B><DD><code>true</code> if <code>obj</code> is an instance                     of <code>Rectangle2D</code> and has                     the same values; <code>false</code> otherwise.<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Rectangle2D.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/awt/geom/QuadCurve2D.Float.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/awt/geom/Rectangle2D.Double.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Rectangle2D.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</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><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">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></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?