JavaTM 2 Platform
Std. Ed. v1.3

クラス
java.awt.Rectangle の使用

Rectangle を使用しているパッケージ
java.awt このパッケージには、ユーザインタフェースの作成と、グラフィックスとイメージのペイントのためのクラスがすべて含まれています。 
java.awt.event このパッケージは、AWT コンポーネントによってトリガーされる各種のイベントを処理するためのインタフェース、およびクラスを提供します。 
java.awt.geom 2 次元ジオメトリに関連するオブジェクトで処理を定義および実行する Java 2D クラスを提供します。 
java.awt.im インプットメソッドフレームワークのためのクラスおよびインタフェースを提供します。 
java.awt.im.spi あらゆる Java 実行時環境で使用できるインプットメソッドの開発を可能にするインタフェースを提供します。 
java.awt.image イメージの作成や変更を行うクラスを提供します。 
java.beans JavaBeans の開発に関連するクラスが含まれています。 
javax.accessibility コンポーネントにアクセスできるユーザ補助機能とユーザインタフェースコンポーネント間の規則を定義します。 
javax.swing すべてのプラットフォームで可能な限り同じように機能する、「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種のボーダを描画するための、クラスおよびインタフェースを提供します。 
javax.swing.plaf 1 つのインタフェースおよび多くの抽象クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 基本 Look & Feel に従って作成されたユーザインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal このパッケージは、Metal の Look & Feel に従って構築されるユーザインタフェースオブジェクトを提供します。  
javax.swing.plaf.multi 多重 Look & Feel を利用すると、デフォルトの Look & Feel に補助的な Look & Feel を結合できます。 
javax.swing.table javax.swing.JTable を処理するためのクラスおよびインタフェースを提供します。 
javax.swing.text 編集可能/編集不能テキストコンポーネントを処理するクラスとインタフェースを提供します。 
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。  
javax.swing.tree javax.swing.JTree を処理するためのクラスとインタフェースを提供します。 
 

java.awt での Rectangle の使用
 

Rectangle として宣言されている java.awt のフィールド
protected  Rectangle Polygon.bounds
          多角形の境界です。
 

Rectangle を返す java.awt のメソッド
 Rectangle Component.getBounds()
          このコンポーネントの境界を Rectangle オブジェクトとして返します。
 Rectangle Component.bounds()
          推奨されていません。 JDK バージョン 1.1 以降は、getBounds() に置き換えられました
 Rectangle Component.getBounds(Rectangle rv)
          このコンポーネントの境界を「戻り値」rv に格納し、rv を返します。
 Rectangle Component.AccessibleAWTComponent.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で返します。
 Rectangle Polygon.getBounds()
          この Polygon のバウンディングボックスを取得します。
 Rectangle Polygon.getBoundingBox()
          推奨されていません。 JDK バージョン 1.1 以降は、getBounds() に置き換えられました。
abstract  Rectangle GraphicsConfiguration.getBounds()
          デバイスの座標の GraphicsConfiguration の境界を返します。
 Rectangle MenuComponent.AccessibleAWTMenuComponent.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で返します。
abstract  Rectangle Graphics.getClipBounds()
          現在のクリッピング領域の境界の矩形を返します。
 Rectangle Graphics.getClipRect()
          推奨されていません。 JDK バージョン 1.1 以降は、getClipBounds() に置き換えられました。
 Rectangle Graphics.getClipBounds(Rectangle r)
          現在のクリッピング領域の境界の矩形を返します。
 Rectangle Shape.getBounds()
          Shape を完全に囲む整数の Rectangle を返します。
 Rectangle List.AccessibleAWTList.AccessibleAWTListChild.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で返します。
 Rectangle TextComponent.AccessibleAWTTextComponent.getCharacterBounds(int i)
          文字列に対する指定されたインデックスで文字のバウンディングボックスを決定します。
 Rectangle Rectangle.getBounds()
          この Rectangle の境界の Rectangle 領域を返します。
 Rectangle Rectangle.intersection(Rectangle r)
          この Rectangle と指定された Rectangle との共通部分を算出します。
 Rectangle Rectangle.union(Rectangle r)
          この Rectangle と指定された Rectangle との結合部分を算出します。
 

Rectangle 型のパラメータを持つ java.awt のメソッド
 void Component.setBounds(Rectangle r)
          新しい境界の矩形 r に適合するようにこのコンポーネントを移動し、サイズ変更します。
 Rectangle Component.getBounds(Rectangle rv)
          このコンポーネントの境界を「戻り値」rv に格納し、rv を返します。
 void Component.AccessibleAWTComponent.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 PaintContext TexturePaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
          カラーパターンを生成するために使用されるコンテキストを作成して返します。
 void MenuComponent.AccessibleAWTMenuComponent.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 Rectangle Graphics.getClipBounds(Rectangle r)
          現在のクリッピング領域の境界の矩形を返します。
abstract  boolean Graphics2D.hit(Rectangle rect, Shape s, boolean onStroke)
          指定された Shape が指定された Rectangle (デバイス空間にある) と交差するかどうかを判定します。
 PaintContext GradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
          カラーパターンを生成するために使用されるコンテキストを作成して返します。
 PaintContext Color.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)
          ソリッドカラーパターンを作成するために使用される PaintContext を作成して返します。
 void List.AccessibleAWTList.AccessibleAWTListChild.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
protected  void GridBagLayout.AdjustForGravity(GridBagConstraints constraints, Rectangle r)
           
 PaintContext Paint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
          カラーパターンを生成するために使用される PaintContext を作成して返します。
 void Rectangle.setBounds(Rectangle r)
          この Rectangle の境界の Rectangle 領域を、指定された Rectangle に一致するように設定します。
 boolean Rectangle.contains(Rectangle r)
          この Rectangle が、指定された Rectangle を完全に含むかどうかを判定します。
 boolean Rectangle.intersects(Rectangle r)
          この Rectangle と指定された Rectangle とが交差するかどうかを判定します。
 Rectangle Rectangle.intersection(Rectangle r)
          この Rectangle と指定された Rectangle との共通部分を算出します。
 Rectangle Rectangle.union(Rectangle r)
          この Rectangle と指定された Rectangle との結合部分を算出します。
 void Rectangle.add(Rectangle r)
          Rectangle をこの Rectangle に追加します。
 PaintContext SystemColor.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)
          ソリッドカラーパターンを作成するために使用される PaintContext を作成して返します。
 BufferedImage Robot.createScreenCapture(Rectangle screenRect)
          スクリーンから読み取るピクセルイメージを作成します。
 

Rectangle 型のパラメータを持つ java.awt のコンストラクタ
Rectangle(Rectangle r)
          指定された Rectangle の値に一致するように初期化された新しい Rectangle を構築します。
 

java.awt.event での Rectangle の使用
 

Rectangle を返す java.awt.event のメソッド
 Rectangle PaintEvent.getUpdateRect()
          このイベントに応答して再描画される必要のある領域を表す矩形を返します。
 

Rectangle 型のパラメータを持つ java.awt.event のメソッド
 void PaintEvent.setUpdateRect(Rectangle updateRect)
          このイベントに応答して再描画される必要のある領域を表す矩形を設定します。
 

Rectangle 型のパラメータを持つ java.awt.event のコンストラクタ
PaintEvent(Component source, int id, Rectangle updateRect)
          指定されたコンポーネントとタイプで、PaintEvent オブジェクトを構築します。
 

java.awt.geom での Rectangle の使用
 

Rectangle を返す java.awt.geom のメソッド
 Rectangle RectangularShape.getBounds()
          Shape のバウンディングボックスを返します。
 Rectangle Area.getBounds()
          この Area を完全に囲むバウンディング Rectangle を返します。
 Rectangle Line2D.getBounds()
          この Line2D のバウンディングボックスを返します。
 Rectangle GeneralPath.getBounds()
          パスのバウンディングボックスを返します。
 Rectangle QuadCurve2D.getBounds()
          この QuadCurve2D のバウンディングボックスを返します。
 Rectangle CubicCurve2D.getBounds()
          形状のバウンディングボックスを返します。
 

java.awt.im での Rectangle の使用
 

Rectangle を返す java.awt.im のメソッド
 Rectangle InputMethodRequests.getTextLocation(TextHitInfo offset)
          現在の変換テキストでの指定されたオフセットの位置、または確定テキストでの選択範囲の位置を返します。
 

java.awt.im.spi での Rectangle の使用
 

Rectangle 型のパラメータを持つ java.awt.im.spi のメソッド
 void InputMethod.notifyClientWindowChange(Rectangle bounds)
          クライアントのウィンドウ位置または状態の変更を、このインプットメソッドに通知します。
 

java.awt.image での Rectangle の使用
 

Rectangle を返す java.awt.image のメソッド
 Rectangle Raster.getBounds()
          この Raster の境界の Rectangle を返します。
 

Rectangle 型のパラメータを持つ java.awt.image のメソッド
 Raster RenderedImage.getData(Rectangle rect)
          RenderedImage の任意の領域を計算して返します。
 Raster BufferedImage.getData(Rectangle rect)
          BufferedImage の任意の領域を計算して返します。
 WritableRaster Raster.createCompatibleWritableRaster(Rectangle rect)
          rect によって指定される位置 (minX, minY) とサイズ (width, height)、新しい SampleModel、および初期化された新しい DataBuffer を持つ、互換性のある WritableRaster を作成します。
 

Rectangle 型のパラメータを持つ java.awt.image のコンストラクタ
Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
          指定された SampleModel、DataBuffer、および親を持つ Raster を構築します。
WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent)
          指定された SampleModel、DataBuffer、および親を使って WritableRaster を構築します。
 

java.beans での Rectangle の使用
 

Rectangle 型のパラメータを持つ java.beans のメソッド
 void PropertyEditor.paintValue(Graphics gfx, Rectangle box)
          値の表現を画面の指定された領域に描画します。
 void PropertyEditorSupport.paintValue(Graphics gfx, Rectangle box)
          値の表現を画面の指定された領域に描画します。
 

javax.accessibility での Rectangle の使用
 

Rectangle を返す javax.accessibility のメソッド
 Rectangle AccessibleText.getCharacterBounds(int i)
          指定された文字列のインデックスの位置にある文字のバウンディングボックスを判定します。
 Rectangle AccessibleComponent.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 

Rectangle 型のパラメータを持つ javax.accessibility のメソッド
 void AccessibleComponent.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 

javax.swing での Rectangle の使用
 

Rectangle を返す javax.swing のメソッド
 Rectangle JComponent.getBounds(Rectangle rv)
          このコンポーネントの境界を「戻り値」rv に格納し、rv を返します。
 Rectangle JComponent.getVisibleRect()
          Component の「可視矩形」を返します。
 Rectangle JViewport.getViewRect()
          起点が getViewPosition、サイズが getExtentSize である矩形を返します。
 Rectangle JTabbedPane.getBoundsAt(int index)
          index のタブの境界を返します。
 Rectangle AbstractButton.AccessibleAbstractButton.getCharacterBounds(int i)
          指定された文字列のインデックスの位置にある文字のバウンディングボックスを判定します。
 Rectangle RepaintManager.getDirtyRegion(JComponent aComponent)
          コンポーネントの現在のダーティーリージョンを返します。
 Rectangle ScrollPaneLayout.getViewportBorderBounds(JScrollPane scrollpane)
          推奨されていません。 JDK バージョン Swing1.1 以降は、JScrollPane.getViewportBorderBounds() に置き換えられました。
static Rectangle SwingUtilities.getLocalBounds(Component aComponent)
          aComponent コンポーネントの矩形 (0,0,bounds.width,bounds.height) を返します。
static Rectangle SwingUtilities.convertRectangle(Component source, Rectangle aRectangle, Component destination)
          source 座標体系の aRectangledestination 座標体系に変換します。
static Rectangle SwingUtilities.computeIntersection(int x, int y, int width, int height, Rectangle dest)
          新しい矩形を割り当てずに、2 つの矩形の共通部分を計算するのに便利です。
static Rectangle SwingUtilities.computeUnion(int x, int y, int width, int height, Rectangle dest)
          新しい矩形 dest を割り当てずに、2 つの矩形の和集合を計算するのに便利です。
static Rectangle[] SwingUtilities.computeDifference(Rectangle rectA, Rectangle rectB)
          rectB とオーバーラップしない rectA 内の領域を表現する矩形の配列を返すために使われます。
 Rectangle JList.getCellBounds(int index0, int index1)
          JList 座標で指定された項目範囲の境界を返します。
 Rectangle JList.AccessibleJList.AccessibleJListChild.getBounds()
           
 Rectangle JInternalFrame.getNormalBounds()
          JInternalFrame が最大化の状態ではない場合、getBounds() を返します。
protected  Rectangle DefaultDesktopManager.getBoundsForIconOf(JInternalFrame f)
          iconifyFrame() のコードはこのメソッドを呼び出して、desktopIcon の適切な境界を指定します。
protected  Rectangle DefaultDesktopManager.getPreviousBounds(JInternalFrame f)
           
 Rectangle JTree.getPathBounds(TreePath path)
          指定されたノードが描画される Rectangle を返します。
 Rectangle JTree.getRowBounds(int row)
          指定された行にあるノードが描画される Rectangle を返します。
 Rectangle JTree.AccessibleJTree.AccessibleJTreeNode.getBounds()
           
 Rectangle JTable.getCellRect(int row, int column, boolean includeSpacing)
          rowcolumn が交差する位置のセルの矩形を返します。
 Rectangle JTable.AccessibleJTable.AccessibleJTableCell.getBounds()
           
 Rectangle JLabel.AccessibleJLabel.getCharacterBounds(int i)
          指定された文字列のインデックスの位置にある文字のバウンディングボックスを判定します。
 Rectangle JScrollPane.getViewportBorderBounds()
          ビューポートのボーダの境界を返します。
 Rectangle DebugGraphics.getClipBounds()
          Graphics.getClipBounds をオーバーライドします。
 

Rectangle 型のパラメータを持つ javax.swing のメソッド
 void JComponent.scrollRectToVisible(Rectangle aRect)
          scrollRectToVisible() メッセージを JComponent の親に転送します。
 Rectangle JComponent.getBounds(Rectangle rv)
          このコンポーネントの境界を「戻り値」rv に格納し、rv を返します。
 void JComponent.computeVisibleRect(Rectangle visibleRect)
          Component の「可視矩形」を返します。
 void JComponent.repaint(Rectangle r)
          コンポーネントが表示されている場合に、指定された領域をダーティーリージョンリストに追加します。
 void JComponent.paintImmediately(Rectangle r)
          指定された領域をすぐに描画します。
 void JViewport.scrollRectToVisible(Rectangle contentRect)
          ビュー内の Rectangle が可視になるようにビューをスクロールするためにオーバーライドされます。
protected  boolean JViewport.computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint)
          blit のパラメータを計算します。
 void JTextField.scrollRectToVisible(Rectangle r)
          フィールドを左または右にスクロールします。
static boolean SwingUtilities.isRectangleContainingRectangle(Rectangle a, Rectangle b)
          ab を保持する場合に true を返します。
static Rectangle SwingUtilities.convertRectangle(Component source, Rectangle aRectangle, Component destination)
          source 座標体系の aRectangledestination 座標体系に変換します。
static Rectangle SwingUtilities.computeIntersection(int x, int y, int width, int height, Rectangle dest)
          新しい矩形を割り当てずに、2 つの矩形の共通部分を計算するのに便利です。
static Rectangle SwingUtilities.computeUnion(int x, int y, int width, int height, Rectangle dest)
          新しい矩形 dest を割り当てずに、2 つの矩形の和集合を計算するのに便利です。
static Rectangle[] SwingUtilities.computeDifference(Rectangle rectA, Rectangle rectB)
          rectB とオーバーラップしない rectA 内の領域を表現する矩形の配列を返すために使われます。
static String SwingUtilities.layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)
          アイコンの起点位置、テキストのベースラインの起点位置、および可能であればクリップしたバージョンの複合ラベル文字列を計算して返します。
static String SwingUtilities.layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)
          アイコンの起点位置、テキストのベースラインの起点位置、および可能であればクリップしたバージョンの複合ラベル文字列を計算して返します。
static void SwingUtilities.paintComponent(Graphics g, Component c, Container p, Rectangle r)
          Rectangle オブジェクトを指定して、指定された矩形内の任意のグラフィックス g でコンポーネント c をペイントします。
 int JList.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
          前または次の行 (垂直スクロール)、または文字 (水平スクロール) を表示するためにスクロールする距離を返します。
 int JList.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
          ブロックの増分量を返します。
 void JList.AccessibleJList.AccessibleJListChild.setBounds(Rectangle r)
           
 void CellRendererPane.paintComponent(Graphics g, Component c, Container p, Rectangle r)
          矩形の x、y、幅、高さの各フィールドを使って this.paintComponent() を呼び出します。
 void JInternalFrame.setNormalBounds(Rectangle r)
          このフレームの通常の境界、つまりフレームが最大化の状態から復元される境界を設定します。
protected  void DefaultDesktopManager.setPreviousBounds(JInternalFrame f, Rectangle r)
          コンポーネントの境界を、最大表示呼び出しの直前に格納します。
 int JTree.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
          スクロール時に増分する量を返します。
 int JTree.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
          「ブロック」増分値の量を返します。
 void JTree.AccessibleJTree.AccessibleJTreeNode.setBounds(Rectangle r)
           
 int Scrollable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または論理列を表示するコンポーネントは、orientation の値によって、新しい 1 行または 1 列を完全にエクスポーズするスクロール増分値を計算します。
 int Scrollable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または論理列を表示するコンポーネントは、orientation の値によって、1 ブロック分の行または列を完全にエクスポーズするスクロール増分値を計算します。
 int JTable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
          新しい 1 行または 1 列を完全に表示するスクロール増分値を (方向に基づいて) ピクセル単位で返します。
 int JTable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
          このテーブルの方向によって visibleRect.height または visibleRect.width を返します。
 void JTable.AccessibleJTable.AccessibleJTableCell.setBounds(Rectangle r)
           
 void DefaultListCellRenderer.repaint(Rectangle r)
          パフォーマンス上の理由でオーバーライドされます。
 int JTextArea.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または列を表示するコンポーネントは、方向の値に基づいて、新しい行または列を完全に表示するスクロール増分値を計算します。
 

javax.swing.border での Rectangle の使用
 

Rectangle を返す javax.swing.border のメソッド
 Rectangle AbstractBorder.getInteriorRectangle(Component c, int x, int y, int width, int height)
          静的メソッドを呼び出す簡易メソッドです。
static Rectangle AbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
          ボーダのインセットから引数の値を減算して矩形を返します。
 

javax.swing.plaf での Rectangle の使用
 

Rectangle を返す javax.swing.plaf のメソッド
abstract  Rectangle TabbedPaneUI.getTabBounds(JTabbedPane pane, int index)
           
abstract  Rectangle TreeUI.getPathBounds(JTree tree, TreePath path)
          パスの最後の項目が描画されるラベル部分を囲む Rectangle を返します。
abstract  Rectangle TextUI.modelToView(JTextComponent t, int pos)
          モデル内の指定された位置をビューの座標系での位置に変換します。
abstract  Rectangle TextUI.modelToView(JTextComponent t, int pos, Position.Bias bias)
          モデル内の指定された位置をビューの座標系での位置に変換します。
abstract  Rectangle ListUI.getCellBounds(JList list, int index1, int index2)
          指定された項目の JList 座標における境界を返します。
 

javax.swing.plaf.basic での Rectangle の使用
 

javax.swing.plaf.basic での Rectangle のサブクラス
static class BasicTextUI.BasicCaret
           
 

Rectangle として宣言されている javax.swing.plaf.basic のフィールド
protected  Rectangle[] BasicTabbedPaneUI.rects
           
protected  Rectangle BasicScrollBarUI.thumbRect
           
protected  Rectangle BasicScrollBarUI.trackRect
           
protected  Rectangle BasicSliderUI.focusRect
           
protected  Rectangle BasicSliderUI.contentRect
           
protected  Rectangle BasicSliderUI.labelRect
           
protected  Rectangle BasicSliderUI.tickRect
           
protected  Rectangle BasicSliderUI.trackRect
           
protected  Rectangle BasicSliderUI.thumbRect
           
 

Rectangle を返す javax.swing.plaf.basic のメソッド
protected  Rectangle BasicTextUI.getVisibleEditorRect()
          ルート View に指定する割り当てを返します。
 Rectangle BasicTextUI.modelToView(JTextComponent tc, int pos)
          モデル内の指定された位置を、ビュー座標体系内の場所に変換します。
 Rectangle BasicTextUI.modelToView(JTextComponent tc, int pos, Position.Bias bias)
          モデル内の指定された位置を、ビュー座標体系内の場所に変換します。
protected  Rectangle BasicComboPopup.computePopupBounds(int px, int py, int pw, int ph)
           
 Rectangle BasicTabbedPaneUI.getTabBounds(JTabbedPane pane, int i)
           
protected  Rectangle BasicScrollBarUI.getThumbBounds()
          サムの現在のサイズおよび位置を返します。
protected  Rectangle BasicScrollBarUI.getTrackBounds()
          トラックの現在の境界を返します。
 Rectangle BasicListUI.getCellBounds(JList list, int index1, int index2)
           
protected  Rectangle BasicComboBoxUI.rectangleForCurrentValue()
          現在選択されている項目を描画するために予約されている領域を返します。
 Rectangle BasicTreeUI.getPathBounds(JTree tree, TreePath path)
          path の最後の項目が描画されるラベル部分を囲む Rectangle を返します。
 Rectangle BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)
          特定のノードのサイズを取得します。
 

Rectangle 型のパラメータを持つ javax.swing.plaf.basic のメソッド
protected  void BasicButtonUI.paintIcon(Graphics g, JComponent c, Rectangle iconRect)
           
protected  void BasicButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
protected  void BasicButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void BasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
           
protected  void BasicToggleButtonUI.paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
           
protected  void BasicToggleButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void BasicRadioButtonUI.paintFocus(Graphics g, Rectangle textRect, Dimension size)
           
protected  void BasicTabbedPaneUI.paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
           
protected  void BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void BasicScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void BasicScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void BasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex)
          List のセルを 1 つペイントします。
protected  String BasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
          SwingUtilities.layoutCompoundLabel() への呼び出しを転送します。
 void BasicComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
          現在選択されている項目を描画します。
 void BasicComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
          現在選択されている項目のバックグラウンドを描画します。
protected  void BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          脚の水平部分をペイントします。
protected  void BasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
          脚の垂直部分をペイントします。
protected  void BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行の展開 (切り替え) 部分をペイントします。
protected  void BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行のレンダリング部分をペイントします。
 Rectangle BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)
          特定のノードのサイズを取得します。
protected  void BasicSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void BasicSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void BasicSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void BasicSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
 

javax.swing.plaf.metal での Rectangle の使用
 

Rectangle 型のパラメータを持つ javax.swing.plaf.metal のメソッド
protected  void MetalTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
           
protected  void MetalTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
           
protected  void MetalToggleButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
protected  void MetalToggleButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void MetalTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void MetalRadioButtonUI.paintFocus(Graphics g, Rectangle t, Dimension d)
           
protected  void MetalSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void MetalSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void MetalSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void MetalSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void MetalScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void MetalScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void MetalButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void MetalButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
 

javax.swing.plaf.multi での Rectangle の使用
 

Rectangle を返す javax.swing.plaf.multi のメソッド
 Rectangle MultiListUI.getCellBounds(JList a, int b, int c)
          この MultiUI が扱う各 UI で、getCellBounds を呼び出します。
 Rectangle MultiTextUI.modelToView(JTextComponent a, int b)
          この MultiUI が扱う各 UI で、modelToView を呼び出します。
 Rectangle MultiTextUI.modelToView(JTextComponent t, int pos, Position.Bias bias)
          モデル内の指定された位置をビューの座標体系での位置に変換します。
 Rectangle MultiTreeUI.getPathBounds(JTree a, TreePath b)
          この MultiUI が扱う各 UI で、getPathBounds を呼び出します。
 Rectangle MultiTabbedPaneUI.getTabBounds(JTabbedPane a, int b)
          この MultiUI が扱う各 UI で、getTabBounds を呼び出します。
 

javax.swing.table での Rectangle の使用
 

Rectangle を返す javax.swing.table のメソッド
 Rectangle JTableHeader.getHeaderRect(int column)
          column にヘッダタイルがある矩形を返します。
 Rectangle JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getBounds()
           
 

Rectangle 型のパラメータを持つ javax.swing.table のメソッド
 void JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setBounds(Rectangle r)
           
 void DefaultTableCellRenderer.repaint(Rectangle r)
          パフォーマンスの理由によりオーバーライドされました。
 

javax.swing.text での Rectangle の使用
 

javax.swing.text での Rectangle のサブクラス
 class DefaultCaret
          Caret のデフォルトの実装です。
 

Rectangle として宣言されている javax.swing.text のフィールド
protected  Rectangle AsyncBoxView.ChildLocator.lastAlloc
          変更が上方にフラッシュされた場合に、最後に見られるペイントし直しのための割り当てです。
protected  Rectangle AsyncBoxView.ChildLocator.childAlloc
          ガベージを多く生成することを避けるために、子の割り当てに使う形状です。
 

Rectangle を返す javax.swing.text のメソッド
 Rectangle JTextComponent.modelToView(int pos)
          モデル内の指定された位置を、ビュー座標体系内の場所に変換します。
 Rectangle JTextComponent.AccessibleJTextComponent.getCharacterBounds(int i)
          文字列に対する指定されたインデックスで文字のバウンディングボックスを決定します。
protected  Rectangle CompositeView.getInsideAllocation(Shape a)
          ビューに指定された不変の割り当てを、内部割り当てを表す可変割り当てに変更します。
 

Rectangle 型のパラメータを持つ javax.swing.text のメソッド
 int JTextComponent.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または論理列を表示するコンポーネントは、orientation の値によって、新しい 1 行または 1 列を完全にエクスポーズするスクロール増分値を計算します。
 int JTextComponent.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または論理列を表示するコンポーネントは、orientation の値によって、1 ブロック分の行または列を完全にエクスポーズするスクロール増分値を計算します。
protected  void DefaultCaret.damage(Rectangle r)
          キャレットを囲む領域を壊して、新しい位置に描画し直されるようにします。
protected  void DefaultCaret.adjustVisibility(Rectangle nloc)
          必要に応じて、関連するビューをスクロールして、キャレットが見えるようにします。
protected abstract  boolean CompositeView.isBefore(int x, int y, Rectangle alloc)
          ある点が、矩形範囲の前にあるかどうかを判定します。
protected abstract  boolean CompositeView.isAfter(int x, int y, Rectangle alloc)
          ある点が、矩形範囲の後にあるかどうかを判定します。
protected abstract  View CompositeView.getViewAtPoint(int x, int y, Rectangle alloc)
          指定された点の子ビューを取り出します。
protected abstract  void CompositeView.childAllocation(int index, Rectangle a)
          指定された子への割り当てを返します。
protected  View CompositeView.getViewAtPosition(int pos, Rectangle a)
          モデル内の指定された位置を示す子ビューを取り出します。
protected  void BoxView.paintChild(Graphics g, Rectangle alloc, int index)
          子を描画します。
protected  boolean BoxView.isBefore(int x, int y, Rectangle innerAlloc)
          ある点が、割り当てられた領域の前にあるかどうかを判定します。
protected  boolean BoxView.isAfter(int x, int y, Rectangle innerAlloc)
          ある点が、割り当てられた領域の後にあるかどうかを判定します。
protected  View BoxView.getViewAtPoint(int x, int y, Rectangle alloc)
          指定された点の子ビューを取り出します。
protected  void BoxView.childAllocation(int index, Rectangle alloc)
          子ビューに領域を割り当てます。
 void FlowView.FlowStrategy.insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
          このビューが担当する位置でドキュメントに何かが挿入されたことを通知します。
 void FlowView.FlowStrategy.removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
          このビューが担当するドキュメント内の位置から何かが削除されたということを通知します。
 void FlowView.FlowStrategy.changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
          このビューが担当する位置で属性が変更されたことをドキュメントから通知します。
protected  View TableView.getViewAtPosition(int pos, Rectangle a)
          モデル内で指定された位置を表す子ビューを取り出します。
protected  View TableView.TableRow.getViewAtPosition(int pos, Rectangle a)
          モデル内で指定された位置を表す子ビューを取得します。
 

javax.swing.text.html での Rectangle の使用
 

Rectangle 型のパラメータを持つ javax.swing.text.html のメソッド
protected  void ListView.paintChild(Graphics g, Rectangle alloc, int index)
          子の 1 つを描画します。
 

javax.swing.tree での Rectangle の使用
 

Rectangle を返す javax.swing.tree のメソッド
abstract  Rectangle AbstractLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          パスを描画するのに必要な境界を指定する矩形を返します。
protected  Rectangle AbstractLayoutCache.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn)
          値を表すのに必要なサイズを、size の参照によって返します。
abstract  Rectangle AbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
          値を格納するサイズと x 原点を、bounds の参照によって返します。
 Rectangle VariableHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          行で識別される項目を描画し、ラベル部分を囲む Rectangle を返します。
 Rectangle FixedHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          パスを描画するのに必要な境界を指定する矩形を返します。
 

Rectangle 型のパラメータを持つ javax.swing.tree のメソッド
 int AbstractLayoutCache.getPreferredWidth(Rectangle bounds)
          渡された矩形の望ましい幅を返します。
abstract  Rectangle AbstractLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          パスを描画するのに必要な境界を指定する矩形を返します。
protected  Rectangle AbstractLayoutCache.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn)
          値を表すのに必要なサイズを、size の参照によって返します。
abstract  Rectangle AbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
          値を格納するサイズと x 原点を、bounds の参照によって返します。
 void DefaultTreeCellRenderer.repaint(Rectangle r)
          パフォーマンス上の理由でオーバーライドされました。
 Rectangle VariableHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          行で識別される項目を描画し、ラベル部分を囲む Rectangle を返します。
 int VariableHeightLayoutCache.getPreferredWidth(Rectangle bounds)
          visibleRegion 内の矩形の適切な幅と高さを返します。
 Rectangle FixedHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          パスを描画するのに必要な境界を指定する矩形を返します。
 


JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.