rectangle.html
来自「API資料大全」· HTML 代码 · 共 1,169 行 · 第 1/5 页
HTML
1,169 行
<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>JViewport.</B><B><A HREF="../../../javax/swing/JViewport.html#getViewRect()">getViewRect</A></B>()</CODE><BR> Returns a rectangle whose origin is <code>getViewPosition</code> and size is <code>getExtentSize</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>JTabbedPane.</B><B><A HREF="../../../javax/swing/JTabbedPane.html#getBoundsAt(int)">getBoundsAt</A></B>(int index)</CODE><BR> Returns the tab bounds at <code>index</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>AbstractButton.AccessibleAbstractButton.</B><B><A HREF="../../../javax/swing/AbstractButton.AccessibleAbstractButton.html#getCharacterBounds(int)">getCharacterBounds</A></B>(int i)</CODE><BR> Determine 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>RepaintManager.</B><B><A HREF="../../../javax/swing/RepaintManager.html#getDirtyRegion(javax.swing.JComponent)">getDirtyRegion</A></B>(<A HREF="../../../javax/swing/JComponent.html">JComponent</A> aComponent)</CODE><BR> Return the current dirty region for a component.</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>ScrollPaneLayout.</B><B><A HREF="../../../javax/swing/ScrollPaneLayout.html#getViewportBorderBounds(javax.swing.JScrollPane)">getViewportBorderBounds</A></B>(<A HREF="../../../javax/swing/JScrollPane.html">JScrollPane</A> scrollpane)</CODE><BR> <B>Deprecated.</B> <I>As of JDK version Swing1.1 replaced by <code>JScrollPane.getViewportBorderBounds()</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>SwingUtilities.</B><B><A HREF="../../../javax/swing/SwingUtilities.html#getLocalBounds(java.awt.Component)">getLocalBounds</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> aComponent)</CODE><BR> Return the rectangle (0,0,bounds.width,bounds.height) for the component <code>aComponent</code></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>SwingUtilities.</B><B><A HREF="../../../javax/swing/SwingUtilities.html#convertRectangle(java.awt.Component, java.awt.Rectangle, java.awt.Component)">convertRectangle</A></B>(<A HREF="../../../java/awt/Component.html">Component</A> source, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> aRectangle, <A HREF="../../../java/awt/Component.html">Component</A> destination)</CODE><BR> Convert the rectangle <code>aRectangle</code> in <code>source</code> coordinate system to <code>destination</code> coordinate system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>SwingUtilities.</B><B><A HREF="../../../javax/swing/SwingUtilities.html#computeIntersection(int, int, int, int, java.awt.Rectangle)">computeIntersection</A></B>(int x, int y, int width, int height, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> dest)</CODE><BR> Convenience to calculate the intersection of two rectangles without allocating a new rectangle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>SwingUtilities.</B><B><A HREF="../../../javax/swing/SwingUtilities.html#computeUnion(int, int, int, int, java.awt.Rectangle)">computeUnion</A></B>(int x, int y, int width, int height, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> dest)</CODE><BR> Convenience to calculate the union of two rectangles without allocating a new rectangle Return dest</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>[]</CODE></FONT></TD><TD><CODE><B>SwingUtilities.</B><B><A HREF="../../../javax/swing/SwingUtilities.html#computeDifference(java.awt.Rectangle, java.awt.Rectangle)">computeDifference</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> rectA, <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> rectB)</CODE><BR> Convenience returning an array of rect representing the regions within <code>rectA</code> that do not overlap with <code>rectB</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>JList.</B><B><A HREF="../../../javax/swing/JList.html#getCellBounds(int, int)">getCellBounds</A></B>(int index0, int index1)</CODE><BR> Returns the bounds of the specified range of items in <code>JList</code> 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>JList.AccessibleJList.AccessibleJListChild.</B><B><A HREF="../../../javax/swing/JList.AccessibleJList.AccessibleJListChild.html#getBounds()">getBounds</A></B>()</CODE><BR> </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>JInternalFrame.</B><B><A HREF="../../../javax/swing/JInternalFrame.html#getNormalBounds()">getNormalBounds</A></B>()</CODE><BR> If the JInternalFrame is not in maximized state, return getBounds(); otherwise, return the bounds that the JInternalFrame would be restored to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>DefaultDesktopManager.</B><B><A HREF="../../../javax/swing/DefaultDesktopManager.html#getBoundsForIconOf(javax.swing.JInternalFrame)">getBoundsForIconOf</A></B>(<A HREF="../../../javax/swing/JInternalFrame.html">JInternalFrame</A> f)</CODE><BR> The iconifyFrame() code calls this to determine the proper bounds for the desktopIcon.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B>DefaultDesktopManager.</B><B><A HREF="../../../javax/swing/DefaultDesktopManager.html#getPreviousBounds(javax.swing.JInternalFrame)">getPreviousBounds</A></B>(<A HREF="../../../javax/swing/JInternalFrame.html">JInternalFrame</A> f)</CODE><BR> </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>JTree.</B><B><A HREF="../../../javax/swing/JTree.html#getPathBounds(javax.swing.tree.TreePath)">getPathBounds</A></B>(<A HREF="../../../javax/swing/tree/TreePath.html">TreePath</A> path)</CODE><BR> Returns the <code>Rectangle</code> that the specified node will be drawn into.</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>JTree.</B><B><A HREF="../../../javax/swing/JTree.html#getRowBounds(int)">getRowBounds</A></B>(int row)</CODE><BR> Returns the <code>Rectangle</code> that the node at the specified row is drawn in.</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>JTree.AccessibleJTree.AccessibleJTreeNode.</B><B><A HREF="../../../javax/swing/JTree.AccessibleJTree.AccessibleJTreeNode.html#getBounds()">getBounds</A></B>()</CODE><BR> </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>JTable.</B><B><A HREF="../../../javax/swing/JTable.html#getCellRect(int, int, boolean)">getCellRect</A></B>(int row, int column, boolean includeSpacing)</CODE><BR> Returns a rectangle for the cell that lies at the intersection of <code>row</code> and <code>column</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>JTable.AccessibleJTable.AccessibleJTableCell.</B><B><A HREF="../../../javax/swing/JTable.AccessibleJTable.AccessibleJTableCell.html#getBounds()">getBounds</A></B>()</CODE><BR> </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>JLabel.AccessibleJLabel.</B><B><A HREF="../../../javax/swing/JLabel.AccessibleJLabel.html#getCharacterBounds(int)">getCharacterBounds</A></B>(int i)</CODE><BR> Determine 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>JScrollPane.</B><B><A HREF="../../../javax/swing/JScrollPane.html#getViewportBorderBounds()">getViewportBorderBounds</A></B>()</CODE><BR> Returns the bounds of the viewport's border.</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>DebugGraphics.</B><B><A HREF="../../../javax/swing/DebugGraphics.html#getClipBounds()">getClipBounds</A></B>()</CODE><BR> Overrides <code>Graphics.getClipBounds</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="../../../javax/swing/package-summary.html">javax.swing</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>JComponent.</B><B><A HREF="../../../javax/swing/JComponent.html#scrollRectToVisible(java.awt.Rectangle)">scrollRectToVisible</A></B>(<A HREF="../../../java/awt/Rectangle.html">Rectangle</A> aRect)</CODE><BR> Forwards the <b>scrollRectToVisible()</b> message to the JComponent's parent.</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>JComponent.</B><B><A HREF="../../../javax/swing/JComponent.html#getBounds(java.awt.Rectangle)">getBounds</A></B>(<A HREF=
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?