rectangle.html
来自「API資料大全」· HTML 代码 · 共 1,169 行 · 第 1/5 页
HTML
1,169 行
<TD><CODE><B>GraphicsConfiguration.</B><B><A HREF="../../../java/awt/GraphicsConfiguration.html#getBounds()">getBounds</A></B>()</CODE><BR> Returns the bounds of the <code>GraphicsConfiguration</code> in the device coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>MenuComponent.AccessibleAWTMenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html#getBounds()">getBounds</A></B>()</CODE><BR> Gets the bounds of this object in the form of a Rectangle object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#getClipBounds()">getClipBounds</A></B>()</CODE><BR> Returns the bounding rectangle of the current clipping area.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#getClipRect()">getClipRect</A></B>()</CODE><BR> <B>Deprecated.</B> <I>As of JDK version 1.1, replaced by <code>getClipBounds()</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#getClipBounds(java.awt.Rectangle)">getClipBounds</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Returns the bounding rectangle of the current clipping area.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Shape.</B><B><A HREF="../../../java/awt/Shape.html#getBounds()">getBounds</A></B>()</CODE><BR> Returns an integer <A HREF="../../../java/awt/Rectangle.html"><CODE>Rectangle</CODE></A> that completely encloses the <code>Shape</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#getBounds()">getBounds</A></B>()</CODE><BR> Gets the bounds of this object in the form of a Rectangle object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>TextComponent.AccessibleAWTTextComponent.</B><B><A HREF="../../../java/awt/TextComponent.AccessibleAWTTextComponent.html#getCharacterBounds(int)">getCharacterBounds</A></B>(int i)</CODE><BR> Determines the bounding box of the character at the given index into the string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Rectangle.</B><B><A HREF="../../../java/awt/Rectangle.html#getBounds()">getBounds</A></B>()</CODE><BR> Gets the bounding <code>Rectangle</code> of this <code>Rectangle</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Rectangle.</B><B><A HREF="../../../java/awt/Rectangle.html#intersection(java.awt.Rectangle)">intersection</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Computes the intersection of this <code>Rectangle</code> with the specified <code>Rectangle</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Rectangle.</B><B><A HREF="../../../java/awt/Rectangle.html#union(java.awt.Rectangle)">union</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Computes the union of this <code>Rectangle</code> with the specified <code>Rectangle</code>.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/package-summary.html">java.awt</A> with parameters of type <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></FONT></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>Component.</B><B><A HREF="../../../java/awt/Component.html#setBounds(java.awt.Rectangle)">setBounds</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Moves and resizes this component to conform to the new bounding rectangle <code>r</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Component.</B><B><A HREF="../../../java/awt/Component.html#getBounds(java.awt.Rectangle)">getBounds</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> rv)</CODE><BR> Store the bounds of this component into "return value" <b>rv</b> and return <b>rv</b>.</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>Component.AccessibleAWTComponent.</B><B><A HREF="../../../java/awt/Component.AccessibleAWTComponent.html#setBounds(java.awt.Rectangle)">setBounds</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Sets the bounds of this object in the form of a Rectangle object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/PaintContext.html">PaintContext</A></CODE></FONT></TD><TD><CODE><B>TexturePaint.</B><B><A HREF="../../../java/awt/TexturePaint.html#createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints)">createContext</A></B>(<A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> cm, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> deviceBounds, <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> userBounds, <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> xform, <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Creates and returns a context used to generate the color pattern.</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>MenuComponent.AccessibleAWTMenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html#setBounds(java.awt.Rectangle)">setBounds</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Sets the bounds of this object in the form of a Rectangle object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#getClipBounds(java.awt.Rectangle)">getClipBounds</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Returns the bounding rectangle of the current clipping area.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B>Graphics2D.</B><B><A HREF="../../../java/awt/Graphics2D.html#hit(java.awt.Rectangle, java.awt.Shape, boolean)">hit</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> rect, <A HREF="../../../java/awt/Shape.html">Shape</A> s, boolean onStroke)</CODE><BR> Checks whether or not the specified <code>Shape</code> intersects the specified <A HREF="../../../java/awt/Rectangle.html"><CODE>Rectangle</CODE></A>, which is in device space.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/PaintContext.html">PaintContext</A></CODE></FONT></TD><TD><CODE><B>GradientPaint.</B><B><A HREF="../../../java/awt/GradientPaint.html#createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints)">createContext</A></B>(<A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> cm, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> deviceBounds, <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> userBounds, <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> xform, <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Creates and returns a context used to generate the color pattern.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/PaintContext.html">PaintContext</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints)">createContext</A></B>(<A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> cm, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r, <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> r2d, <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> xform, <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Creates and returns a <A HREF="../../../java/awt/PaintContext.html"><CODE>PaintContext</CODE></A> used to generate a solid color pattern.</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>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#setBounds(java.awt.Rectangle)">setBounds</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Sets the bounds of this object in the form of a Rectangle object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B>GridBagLayout.</B><B><A HREF="../../../java/awt/GridBagLayout.html#AdjustForGravity(java.awt.GridBagConstraints, java.awt.Rectangle)">AdjustForGravity</A></B>(<A HREF="../../../java/awt/GridBagConstraints.html">GridBagConstraints</A> constraints, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/awt/PaintContext.html">PaintContext</A></CODE></FONT></TD><TD><CODE><B>Paint.</B><B><A HREF="../../../java/awt/Paint.html#createContext(java.awt.image.ColorModel, java.awt.Rectangle, java.awt.geom.Rectangle2D, java.awt.geom.AffineTransform, java.awt.RenderingHints)">createContext</A></B>(<A HREF="../../../java/awt/image/ColorModel.html">ColorModel</A> cm, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> deviceBounds, <A HREF="../../../java/awt/geom/Rectangle2D.html">Rectangle2D</A> userBounds, <A HREF="../../../java/awt/geom/AffineTransform.html">AffineTransform</A> xform, <A HREF="../../../java/awt/RenderingHints.html">RenderingHints</A> hints)</CODE><BR> Creates and returns a <A HREF="../../../java/awt/PaintContext.html"><CODE>PaintContext</CODE></A> used to generate the color pattern.</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>Rectangle.</B><B><A HREF="../../../java/awt/Rectangle.html#setBounds(java.awt.Rectangle)">setBounds</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE><BR> Sets the bounding <code>Rectangle</code> of this <code>Rectangle</code> to match the specified <code>Rectangle</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B>Rectangle.</B><B><A HREF="../../../java/awt/Rectangle.html#contains(java.awt.Rectangle)">contains</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> r)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?