rectangle.html

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

HTML
1,169
字号
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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&nbsp;i)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;aComponent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;scrollpane)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<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&nbsp;<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>&nbsp;aComponent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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>&nbsp;source,                 <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;aRectangle,                 <A HREF="../../../java/awt/Component.html">Component</A>&nbsp;destination)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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&nbsp;x,                    int&nbsp;y,                    int&nbsp;width,                    int&nbsp;height,                    <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;dest)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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&nbsp;x,             int&nbsp;y,             int&nbsp;width,             int&nbsp;height,             <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;dest)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;<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>&nbsp;rectA,                  <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;rectB)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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&nbsp;index0,              int&nbsp;index1)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;<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>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;<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>&nbsp;f)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;path)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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&nbsp;row)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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&nbsp;row,            int&nbsp;column,            boolean&nbsp;includeSpacing)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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&nbsp;i)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overrides <code>Graphics.getClipBounds</code>.</TD></TR></TABLE>&nbsp;<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>&nbsp;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>&nbsp;aRect)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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 + -
显示快捷键?