rectangularshape.html
来自「API資料大全」· HTML 代码 · 共 918 行 · 第 1/3 页
HTML
918 行
<BR> Sets the location and size of the framing rectangle of this <code>Shape</code> to the specified <A HREF="../../../java/awt/geom/Point2D.html"><CODE>Point2D</CODE></A> and <A HREF="../../../java/awt/geom/Dimension2D.html"><CODE>Dimension2D</CODE></A>, respectively.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/RectangularShape.html#setFrame(java.awt.geom.Rectangle2D)">setFrame</A></B>(<A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> r)</CODE><BR> Sets the framing rectangle of this <code>Shape</code> to be the specified <code>Rectangle2D</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/RectangularShape.html#setFrameFromCenter(double, double, double, double)">setFrameFromCenter</A></B>(double centerX, double centerY, double cornerX, double cornerY)</CODE><BR> Sets the framing rectangle of this <code>Shape</code> based on the specified center point coordinates and corner point coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/RectangularShape.html#setFrameFromCenter(java.awt.geom.Point2D, java.awt.geom.Point2D)">setFrameFromCenter</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> center, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> corner)</CODE><BR> Sets the framing rectangle of this <code>Shape</code> based on a specified center <code>Point2D</code> and corner <code>Point2D</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/RectangularShape.html#setFrameFromDiagonal(double, double, double, double)">setFrameFromDiagonal</A></B>(double x1, double y1, double x2, double y2)</CODE><BR> Sets the diagonal of the framing rectangle of this <code>Shape</code> based on the two specified coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/awt/geom/RectangularShape.html#setFrameFromDiagonal(java.awt.geom.Point2D, java.awt.geom.Point2D)">setFrameFromDiagonal</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> p1, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> p2)</CODE><BR> Sets the diagonal of the framing rectangle of this <code>Shape</code> based on two specified <code>Point2D</code> objects.</TD></TR></TABLE> <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> <A NAME="methods_inherited_from_class_java.awt.Shape"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.awt.<A HREF="../../../java/awt/Shape.html">Shape</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/awt/Shape.html#contains(double, double)">contains</A>, <A HREF="../../../java/awt/Shape.html#contains(double, double, double, double)">contains</A>, <A HREF="../../../java/awt/Shape.html#getBounds2D()">getBounds2D</A>, <A HREF="../../../java/awt/Shape.html#getPathIterator(java.awt.geom.AffineTransform)">getPathIterator</A>, <A HREF="../../../java/awt/Shape.html#intersects(double, double, double, double)">intersects</A></CODE></TD></TR></TABLE> <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="RectangularShape()"><!-- --></A><H3>RectangularShape</H3><PRE>protected <B>RectangularShape</B>()</PRE><DL><DD>This is an abstract class that cannot be instantiated directly.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/geom/Arc2D.html"><CODE>Arc2D</CODE></A>, <A HREF="../../../java/awt/geom/Ellipse2D.html"><CODE>Ellipse2D</CODE></A>, <A HREF="../../../java/awt/geom/Rectangle2D.html"><CODE>Rectangle2D</CODE></A>, <A HREF="../../../java/awt/geom/RoundRectangle2D.html"><CODE>RoundRectangle2D</CODE></A></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="getX()"><!-- --></A><H3>getX</H3><PRE>public abstract double <B>getX</B>()</PRE><DL><DD>Returns the X coordinate of the upper left corner of the framing rectangle in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the x coordinate of the upper left corner of the framing rectangle.</DL></DD></DL><HR><A NAME="getY()"><!-- --></A><H3>getY</H3><PRE>public abstract double <B>getY</B>()</PRE><DL><DD>Returns the Y coordinate of the upper left corner of the framing rectangle in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the y coordinate of the upper left corner of the framing rectangle.</DL></DD></DL><HR><A NAME="getWidth()"><!-- --></A><H3>getWidth</H3><PRE>public abstract double <B>getWidth</B>()</PRE><DL><DD>Returns the width of the framing rectangle in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the width of the framing rectangle.</DL></DD></DL><HR><A NAME="getHeight()"><!-- --></A><H3>getHeight</H3><PRE>public abstract double <B>getHeight</B>()</PRE><DL><DD>Returns the height of the framing rectangle in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the height of the framing rectangle.</DL></DD></DL><HR><A NAME="getMinX()"><!-- --></A><H3>getMinX</H3><PRE>public double <B>getMinX</B>()</PRE><DL><DD>Returns the smallest X coordinate of the framing rectangle of the <code>Shape</code> in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the smallest x coordinate of the framing rectangle of the <code>Shape</code>.</DL></DD></DL><HR><A NAME="getMinY()"><!-- --></A><H3>getMinY</H3><PRE>public double <B>getMinY</B>()</PRE><DL><DD>Returns the smallest Y coordinate of the framing rectangle of the <code>Shape</code> in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the smallest y coordinate of the framing rectangle of the <code>Shape</code>.</DL></DD></DL><HR><A NAME="getMaxX()"><!-- --></A><H3>getMaxX</H3><PRE>public double <B>getMaxX</B>()</PRE><DL><DD>Returns the largest X coordinate of the framing rectangle of the <code>Shape</code> in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the largest x coordinate of the framing rectangle of the <code>Shape</code>.</DL></DD></DL><HR><A NAME="getMaxY()"><!-- --></A><H3>getMaxY</H3><PRE>public double <B>getMaxY</B>()</PRE><DL><DD>Returns the largest Y coordinate of the framing rectangle of the <code>Shape</code> in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the largest y coordinate of the framing rectangle of the <code>Shape</code>.</DL></DD></DL><HR><A NAME="getCenterX()"><!-- --></A><H3>getCenterX</H3><PRE>public double <B>getCenterX</B>()</PRE><DL><DD>Returns the X coordinate of the center of the framing rectangle of the <code>Shape</code> in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the x coordinate of the framing rectangle of the <code>Shape</code> object's center.</DL></DD></DL><HR><A NAME="getCenterY()"><!-- --></A><H3>getCenterY</H3><PRE>public double <B>getCenterY</B>()</PRE><DL><DD>Returns the Y coordinate of the center of the framing rectangle of the <code>Shape</code> in <code>double</code> precision.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the y coordinate of the framing rectangle of the <code>Shape</code> object's center.</DL></DD></DL><HR><A NAME="getFrame()"><!-- --></A><H3>getFrame</H3><PRE>public <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> <B>getFrame</B>()</PRE><DL><DD>Returns the framing <A HREF="../../../java/awt/geom/Rectangle2D.html"><CODE>Rectangle2D</CODE></A> that defines the overall shape of this object.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>Rectangle2D</code>, specified in <code>double</code> coordinates.</DL></DD></DL><HR><A NAME="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public abstract boolean <B>isEmpty</B>()</PRE><DL><DD>Determines whether the <code>RectangularShape</code> is empty. When the <code>RectangularShape</code> is empty, it encloses no
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?