area.html

来自「API資料大全」· HTML 代码 · 共 853 行 · 第 1/3 页

HTML
853
字号
<TD><CODE><B><A HREF="../../../java/awt/geom/Area.html#isPolygonal()">isPolygonal</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests whether this <code>Area</code> consists entirely of straight edged polygonal geometry.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/Area.html#isRectangular()">isRectangular</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests whether this <code>Area</code> is rectangular in shape.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/Area.html#isSingular()">isSingular</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tests whether this <code>Area</code> is comprised of a single closed subpath.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/Area.html#reset()">reset</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes all of the geometry from this <code>Area</code> and restores it to an empty area.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/Area.html#subtract(java.awt.geom.Area)">subtract</A></B>(<A HREF="../../../java/awt/geom/Area.html">Area</A>&nbsp;rhs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subtracts the shape of the specified <code>Area</code> from the  shape of this <code>Area</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/Area.html#transform(java.awt.geom.AffineTransform)">transform</A></B>(<A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A>&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Transforms the geometry of this <code>Area</code> using the specified  <A HREF="../../../java/awt/geom/AffineTransform.html"><CODE>AffineTransform</CODE></A>.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Area()"><!-- --></A><H3>Area</H3><PRE>public <B>Area</B>()</PRE><DL><DD>Default constructor which creates an empty area.</DL><HR><A NAME="Area(java.awt.Shape)"><!-- --></A><H3>Area</H3><PRE>public <B>Area</B>(<A HREF="../../../java/awt/Shape.html">Shape</A>&nbsp;s)</PRE><DL><DD>The <code>Area</code> class creates an area geometry from the specified <A HREF="../../../java/awt/Shape.html"><CODE>Shape</CODE></A> object.  The geometry is explicitly closed, if the <code>Shape</code> is not already closed.  The fill rule (even-odd or winding) specified by the geometry of the <code>Shape</code> is used to determine the resulting enclosed area.<DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - the <code>Shape</code> from which the area is constructed</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="add(java.awt.geom.Area)"><!-- --></A><H3>add</H3><PRE>public void <B>add</B>(<A HREF="../../../java/awt/geom/Area.html">Area</A>&nbsp;rhs)</PRE><DL><DD>Adds the shape of the specified <code>Area</code> to the shape of this <code>Area</code>. Addition is achieved through union.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rhs</CODE> - the <code>Area</code> to be added to the          current shape</DL></DD></DL><HR><A NAME="subtract(java.awt.geom.Area)"><!-- --></A><H3>subtract</H3><PRE>public void <B>subtract</B>(<A HREF="../../../java/awt/geom/Area.html">Area</A>&nbsp;rhs)</PRE><DL><DD>Subtracts the shape of the specified <code>Area</code> from the  shape of this <code>Area</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rhs</CODE> - the <code>Area</code> to be subtracted from the 		current shape</DL></DD></DL><HR><A NAME="intersect(java.awt.geom.Area)"><!-- --></A><H3>intersect</H3><PRE>public void <B>intersect</B>(<A HREF="../../../java/awt/geom/Area.html">Area</A>&nbsp;rhs)</PRE><DL><DD>Sets the shape of this <code>Area</code> to the intersection of  its current shape and the shape of the specified <code>Area</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rhs</CODE> - the <code>Area</code> to be intersected with this		<code>Area</code></DL></DD></DL><HR><A NAME="exclusiveOr(java.awt.geom.Area)"><!-- --></A><H3>exclusiveOr</H3><PRE>public void <B>exclusiveOr</B>(<A HREF="../../../java/awt/geom/Area.html">Area</A>&nbsp;rhs)</PRE><DL><DD>Sets the shape of this <code>Area</code> to be the combined area of its current shape and the shape of the specified <code>Area</code>,  minus their intersection.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rhs</CODE> - the <code>Area</code> to be exclusive ORed with this 		<code>Area</code>.</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public void <B>reset</B>()</PRE><DL><DD>Removes all of the geometry from this <code>Area</code> and restores it to an empty area.<DD><DL></DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Tests whether this <code>Area</code> object encloses any area.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if this <code>Area</code> object represents an empty area; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="isPolygonal()"><!-- --></A><H3>isPolygonal</H3><PRE>public boolean <B>isPolygonal</B>()</PRE><DL><DD>Tests whether this <code>Area</code> consists entirely of straight edged polygonal geometry.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the geometry of this <code>Area</code> consists entirely of line segments; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="isRectangular()"><!-- --></A><H3>isRectangular</H3><PRE>public boolean <B>isRectangular</B>()</PRE><DL><DD>Tests whether this <code>Area</code> is rectangular in shape.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the geometry of this <code>Area</code> is rectangular in shape; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="isSingular()"><!-- --></A><H3>isSingular</H3><PRE>public boolean <B>isSingular</B>()</PRE><DL><DD>Tests whether this <code>Area</code> is comprised of a single closed subpath.  This method returns <code>true</code> if the  path contains 0 or 1 subpaths, or <code>false</code> if the path contains more than 1 subpath.  The subpaths are counted by the  number of <A HREF="../../../java/awt/geom/PathIterator.html#SEG_MOVETO"><CODE>SEG_MOVETO</CODE></A>  segments  that appear in the path.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the <code>Area</code> is comprised of a single basic geometry; <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="getBounds2D()"><!-- --></A><H3>getBounds2D</H3><PRE>public <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getBounds2D</B>()</PRE><DL><DD>Returns a high precision bounding <A HREF="../../../java/awt/geom/Rectangle2D.html"><CODE>Rectangle2D</CODE></A> that completely encloses this <code>Area</code>. <p> The Area class will attempt to return the tightest bounding box possible for the Shape.  The bounding box will not be padded to include the control points of curves in the outline of the Shape, but should tightly fit the actual geometry of the outline itself.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/awt/Shape.html#getBounds2D()">getBounds2D</A></CODE> in interface <CODE><A HREF="../../../java/awt/Shape.html">Shape</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the bounding <code>Rectangle2D</code> for the <code>Area</code>.</DL></DD></DL><HR><A NAME="getBounds()"><!-- --></A><H3>getBounds</H3><PRE>public <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> <B>getBounds</B>()</PRE><DL><DD>Returns a bounding <A HREF="../../../java/awt/Rectangle.html"><CODE>Rectangle</CODE></A> that completely encloses this <code>Area</code>. <p> The Area class will attempt to return the tightest bounding

⌨️ 快捷键说明

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