JavaTM Platform
Standard Ed. 6

クラス
java.awt.Rectangle の使用

Rectangle を使用しているパッケージ
java.awt ユーザーインタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。 
java.awt.event AWT コンポーネントによってトリガーされるさまざまな種類のイベントを処理するインタフェースとクラスを提供します。 
java.awt.font フォント関連のクラスおよびインタフェースを提供します。 
java.awt.geom 2 次元幾何学的図形に関連するオブジェクトで処理を定義および実行する Java 2D クラスを提供します。 
java.awt.im インプットメソッドフレームワークのためのクラスおよびインタフェースを提供します。 
java.awt.im.spi あらゆる Java 実行時環境で使用できるインプットメソッドの開発を可能にするインタフェースを提供します。 
java.awt.image イメージを作成および修正するためのクラスを提供します。 
java.beans Beans (JavaBeansTM アーキテクチャーに基づいたコンポーネント) の開発に関連するクラスが含まれています。 
javax.accessibility ユーザーインタフェースコンポーネントとそれらのコンポーネントへのアクセスを提供するユーザー補助機能の間の規約を定義します。 
javax.imageio Java Image I/O API の基本パッケージです。 
javax.swing すべてのプラットフォームで可能なかぎり同じように機能する「軽量」(Java 共通言語) コンポーネントのセットを提供します。 
javax.swing.border Swing コンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。 
javax.swing.plaf 1 つのインタフェースおよび多くの abstract クラスを提供しており、Swing は、プラグイン可能な Look & Feel 機能を実現するためにこれらのクラスを利用します。 
javax.swing.plaf.basic 基本 Look & Feel に従って構築されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal デフォルトの Look & Feel である Java Look & Feel (コード名は Metal) に従って作成されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.multi 複数の Look & Feel を結合するユーザーインタフェースオブジェクトを提供します。 
javax.swing.plaf.synth Synth は、すべてのペイントが委譲されるスキン設定可能な 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
          この Polygon の境界です。
 

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

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

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.font での Rectangle の使用
 

Rectangle を返す java.awt.font のメソッド
 Rectangle GlyphVector.getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)
          指定された位置で指定された FontRenderContext を使って Graphics 内にこの GlyphVector が描画されるときのインデックスの位置にあるグリフのピクセル境界を返します。
 Rectangle GlyphVector.getPixelBounds(FontRenderContext renderFRC, float x, float y)
          指定された位置で指定された FontRenderContext を使って、グラフィックス内にこの GlyphVector が描画されるときのインデックスの位置にあるグリフのピクセル境界を返します。
 Rectangle TextLayout.getPixelBounds(FontRenderContext frc, float x, float y)
          指定された位置で指定された FontRenderContext を使って、グラフィックス内にこの TextLayout が描画されるときのインデックスの位置にあるグリフのピクセル境界を返します。
 

java.awt.geom での Rectangle の使用
 

Rectangle を返す java.awt.geom のメソッド
 Rectangle RectangularShape.getBounds()
          Shape を完全に囲む整数型の Rectangle を返します。
 Rectangle Path2D.getBounds()
          Shape を完全に囲む整数型の Rectangle を返します。
 Rectangle QuadCurve2D.getBounds()
          Shape を完全に囲む整数型の Rectangle を返します。
 Rectangle Line2D.getBounds()
          Shape を完全に囲む整数型の Rectangle を返します。
 Rectangle CubicCurve2D.getBounds()
          Shape を完全に囲む整数型の Rectangle を返します。
 Rectangle Area.getBounds()
          この Area を完全に囲むバウンディング Rectangle を返します。
 

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 のメソッド
 WritableRaster Raster.createCompatibleWritableRaster(Rectangle rect)
          rect によって指定される位置 (minX, minY) とサイズ (width, height)、新しい SampleModel、および初期化された新しい DataBuffer を持ち、互換性がある WritableRaster を生成します。
 Raster BufferedImage.getData(Rectangle rect)
          BufferedImage の任意の領域を計算して返します。
 Raster RenderedImage.getData(Rectangle rect)
          RenderedImage の任意の領域を計算して返します。
 

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 PropertyEditorSupport.paintValue(Graphics gfx, Rectangle box)
          値の表現を画面の指定された領域に描画します。
 void PropertyEditor.paintValue(Graphics gfx, Rectangle box)
          値の表現を画面の指定された領域に描画します。
 

javax.accessibility での Rectangle の使用
 

Rectangle を返す javax.accessibility のメソッド
 Rectangle AccessibleComponent.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で返します。
 Rectangle AccessibleText.getCharacterBounds(int i)
          文字列に対する指定されたインデックスで文字のバウンディングボックスを決定します。
 Rectangle AccessibleExtendedText.getTextBounds(int startIndex, int endIndex)
          2 つのインデックス間のテキストの境界の矩形を返します。
 

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

javax.imageio での Rectangle の使用
 

Rectangle として宣言されている javax.imageio のフィールド
protected  Rectangle IIOParam.sourceRegion
          ソース領域、または何も設定されない場合は null となリます。
 

Rectangle を返す javax.imageio のメソッド
 Rectangle IIOParam.getSourceRegion()
          使用するソース領域を返します。
protected static Rectangle ImageReader.getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight)
          指定された ImageReadParam のソース領域とサブサンプリングの座標の設定を考慮して、読み取り側が読み取るソースイメージの領域を計算するために使用するユーティリティーメソッドです。
 

Rectangle 型のパラメータを持つ javax.imageio のメソッド
protected static void ImageReader.computeRegions(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)
          ソースイメージの幅と高さ、オプションのデスティネーションイメージ、およびオプションの ImageReadParam を考慮して、対象のソース領域および対象のデスティネーション領域を計算します。
 void ImageWriter.prepareReplacePixels(int imageIndex, Rectangle region)
          replacePixels メソッドの一連の呼び出しを処理するために、書き込み側を準備します。
 void IIOParam.setSourceRegion(Rectangle sourceRegion)
          処理対象のソース領域を設定します。
 

javax.swing での Rectangle の使用
 

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

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

javax.swing.border での Rectangle の使用
 

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

javax.swing.plaf での Rectangle の使用
 

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

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

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

Rectangle として宣言されている javax.swing.plaf.basic のフィールド
protected  Rectangle BasicProgressBarUI.boxRect
          ペイントされる (getBox によって返された) バウンシングボックスの位置とサイズを保持するために使用します。
protected  Rectangle BasicTabbedPaneUI.calcRect
          実行中に多くの新規 Rectangle が構築されるのを防ぐため、一般のレイアウト計算に使用される矩形です。
protected  Rectangle BasicSliderUI.contentRect
           
protected  Rectangle BasicSliderUI.focusRect
           
protected  Rectangle BasicSliderUI.labelRect
           
protected  Rectangle[] BasicTabbedPaneUI.rects
           
protected  Rectangle BasicScrollBarUI.thumbRect
           
protected  Rectangle BasicSliderUI.thumbRect
           
protected  Rectangle BasicSliderUI.tickRect
           
protected  Rectangle BasicScrollBarUI.trackRect
           
protected  Rectangle BasicSliderUI.trackRect
           
 

Rectangle を返す javax.swing.plaf.basic のメソッド
protected  Rectangle BasicComboPopup.computePopupBounds(int px, int py, int pw, int ph)
          コンボボックスの位置と画面の囲み境界に基づいて、コンボボックスのポップアップ部分の配置とサイズを計算します。
protected  Rectangle BasicProgressBarUI.getBox(Rectangle r)
          現在のアニメーションインデックスのために r でペイントされ、rを返すバウンシングボックスの位置とサイズを格納します。
 Rectangle BasicListUI.getCellBounds(JList list, int index1, int index2)
          2 つのインデックスで指定されたセルの範囲を示す、指定されたリストの座標系内の境界の矩形を返します。
 Rectangle BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)
          特定のノードのサイズを取得します。
 Rectangle BasicTreeUI.getPathBounds(JTree tree, TreePath path)
          パスの最後の項目が描画されるラベル部分を囲む Rectangle を返します。
protected  Rectangle BasicTabbedPaneUI.getTabBounds(int tabIndex, Rectangle dest)
          JTabbedPane コンポーネントの座標空間内の、指定されたタブの境界を返します。
 Rectangle BasicTabbedPaneUI.getTabBounds(JTabbedPane pane, int i)
          指定されたタブインデックスの境界を返します。
protected  Rectangle BasicScrollBarUI.getThumbBounds()
          サムの現在のサイズおよび位置を返します。
protected  Rectangle BasicScrollBarUI.getTrackBounds()
          トラックの現在の境界を返します。
protected  Rectangle BasicTextUI.getVisibleEditorRect()
          ルート View に指定する割り当てを取得します。
 Rectangle BasicTextUI.modelToView(JTextComponent tc, int pos)
          モデル内の指定された位置を、ビュー座標体系内の場所に変換します。
 Rectangle BasicTextUI.modelToView(JTextComponent tc, int pos, Position.Bias bias)
          モデル内の指定された位置を、ビュー座標体系内の場所に変換します。
protected  Rectangle BasicComboBoxUI.rectangleForCurrentValue()
          現在選択されている項目を描画するために予約されている領域を返します。
 

Rectangle 型のパラメータを持つ javax.swing.plaf.basic のメソッド
protected  Rectangle BasicProgressBarUI.getBox(Rectangle r)
          現在のアニメーションインデックスのために r でペイントされ、rを返すバウンシングボックスの位置とサイズを格納します。
 Rectangle BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)
          特定のノードのサイズを取得します。
protected  Rectangle BasicTabbedPaneUI.getTabBounds(int tabIndex, Rectangle dest)
          JTabbedPane コンポーネントの座標空間内の、指定されたタブの境界を返します。
protected  String BasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
          SwingUtilities.layoutCompoundLabel() への呼び出しを転送します。
protected  void BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void BasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex)
          List のセルを 1 つペイントします。
 void BasicComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
          現在選択されている項目をペイントします。
 void BasicComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
          現在選択されている項目のバックグラウンドをペイントします。
protected  void BasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行の展開 (切り替え) 部分をペイントします。
protected  void BasicButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void BasicRadioButtonUI.paintFocus(Graphics g, Rectangle textRect, Dimension size)
           
protected  void BasicTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void BasicTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void BasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          脚の水平部分をペイントします。
protected  void BasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
           
protected  void BasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
           
protected  void BasicButtonUI.paintIcon(Graphics g, JComponent c, Rectangle iconRect)
           
protected  void BasicSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void BasicSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void BasicSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void BasicSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void BasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
          行のレンダリング部分をペイントします。
protected  void BasicTabbedPaneUI.paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
           
protected  void BasicTabbedPaneUI.paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
           
protected  void BasicButtonUI.paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
          現在のボタンのテキストを描画するメソッドです。
protected  void BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
           
protected  void BasicButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
          Java 2 プラットフォーム 1.4 以降では、このメソッドを使用したり、オーバーライドしたりしないでください。
protected  void BasicMenuItemUI.paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
          現在のメニュー項目のテキストを描画します。
protected  void BasicScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void BasicScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void BasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
          脚の垂直部分をペイントします。
 

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

Rectangle 型のパラメータを持つ javax.swing.plaf.metal のメソッド
 void MetalComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
          必要に応じて、現在選択されている項目をペイントします。
 void MetalComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
          必要に応じて、現在選択されている項目のバックグラウンドをペイントします。
protected  void MetalButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void MetalToggleButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void MetalRadioButtonUI.paintFocus(Graphics g, Rectangle t, Dimension d)
           
protected  void MetalTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
protected  void MetalTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
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.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
          ボタン b の適切なアイコンを領域 iconRect にペイントします。
protected  void MetalSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void MetalSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void MetalSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
           
protected  void MetalSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
           
protected  void MetalButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
protected  void MetalToggleButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
protected  void MetalScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
protected  void MetalScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void MetalTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
           
 

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

Rectangle を返す javax.swing.plaf.multi のメソッド
 Rectangle MultiListUI.getCellBounds(JList a, int b, int c)
          このオブジェクトが扱う各 UI で getCellBounds メソッドを呼び出します。
 Rectangle MultiTreeUI.getPathBounds(JTree a, TreePath b)
          このオブジェクトが扱う各 UI で getPathBounds メソッドを呼び出します。
 Rectangle MultiTabbedPaneUI.getTabBounds(JTabbedPane a, int b)
          このオブジェクトが扱う各 UI で getTabBounds メソッドを呼び出します。
 Rectangle MultiTextUI.modelToView(JTextComponent a, int b)
          このオブジェクトが扱う各 UI で modelToView メソッドを呼び出します。
 Rectangle MultiTextUI.modelToView(JTextComponent a, int b, Position.Bias c)
          このオブジェクトが扱う各 UI で modelToView メソッドを呼び出します。
 

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

Rectangle 型のパラメータを持つ javax.swing.plaf.synth のメソッド
 String SynthGraphicsUtils.layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap)
          テキストとアイコンをレイアウトして、そのテキストとアイコンを配置する位置を参照によって返します。
 void SynthGraphicsUtils.paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex)
          指定された位置にテキストをペイントします。
 

javax.swing.table での Rectangle の使用
 

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

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

javax.swing.text での Rectangle の使用
 

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

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

Rectangle を返す javax.swing.text のメソッド
 Rectangle JTextComponent.AccessibleJTextComponent.getCharacterBounds(int i)
          指定された文字列のインデックスの位置にある文字のバウンディングボックスを判定します。
protected  Rectangle CompositeView.getInsideAllocation(Shape a)
          ビューに指定された不変の割り当てを、内部割り当てを表す可変割り当てに変更します。
 Rectangle JTextComponent.AccessibleJTextComponent.getTextBounds(int startIndex, int endIndex)
          2 つのインデックス間のテキストを囲む矩形を返します。
protected  Rectangle PlainView.lineToRect(Shape a, int line)
          指定した行を表す矩形を判別します。
 Rectangle JTextComponent.modelToView(int pos)
          モデル内の指定された位置を、ビュー座標体系内の場所に変換します。
 

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

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

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

javax.swing.tree での Rectangle の使用
 

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

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


JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。