Java プラットフォーム 1.2

クラス
java.awt.Rectangle の使用

Rectangle を使用するパッケージ
java.awt このパッケージには、ユーザインタフェースの作成と、グラフィックスとイメージのペイントのためのクラスがすべて含まれています。 
java.awt.event このパッケージは、AWT コンポーネントによってトリガーされる各種のイベントを処理するためのインタフェース、およびクラスを提供します。 
java.awt.geom 2 次元ジオメトリに関連するオブジェクトで処理を定義および実行する Java 2D クラスを提供します。 
java.awt.im Input Method Framework のためのクラスおよびインタフェースを提供します。 
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 Basic 仕様 Look & Feel に従って作成されたユーザインタフェースオブジェクトを提供します。 
javax.swing.plaf.metal このパッケージは、Metal の Look & Feel に従って構築されるユーザインタフェースオブジェクトを提供します。  
javax.swing.plaf.multi 多重 Look & Feel を利用すると、デフォルトの Look & Feel に補助的な Look & Feel を結合できます。 
javax.swing.table java.awt.swing.JTable を処理するためのクラスおよびインタフェースを提供します。 
javax.swing.text 編集可能/編集不能テキストコンポーネントを処理するクラスとインタフェースを提供します。 
javax.swing.text.html HTML テキストエディタを作成するための HTMLEditorKit クラスとサポートクラスを提供します。  
javax.swing.tree java.awt.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 を返します。
abstract  Rectangle Graphics.getClipBounds()
          現在のクリッピング領域の境界の矩形を返します。
 Rectangle Graphics.getClipRect()
          推奨されません。 JDK バージョン 1.1 以降は、getClipBounds() に置き換えられました。
 Rectangle Graphics.getClipBounds(Rectangle r)
          現在のクリッピング領域の境界の矩形を返します。
 Rectangle Shape.getBounds()
          Shape を完全に囲む整数の Rectangle を返します。
 Rectangle Polygon.getBounds()
          この Polygon のバウンディングボックスを取得します。
 Rectangle Polygon.getBoundingBox()
          推奨されません。 JDK バージョン 1.1 以降は、getBounds() に置き換えられました。
 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 を返します。
 PaintContext TexturePaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
          カラーパターンを生成するために使用されるコンテキストを作成して返します。
 Rectangle Graphics.getClipBounds(Rectangle r)
          現在のクリッピング領域の境界の矩形を返します。
 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 を作成して返します。
 PaintContext SystemColor.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 を作成して返します。
abstract  boolean Graphics2D.hit(Rectangle rect, Shape s, boolean onStroke)
          指定された Shape が指定された Rectangle (デバイス空間にある) と重なり合うかどうかを判定します。
 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 に追加します。
protected  void GridBagLayout.AdjustForGravity(GridBagConstraints constraints, Rectangle r)
           
 

Rectangle のパラメータを持つ java.awt におけるコンストラクタ
Rectangle.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.PaintEvent(Component source, int id, Rectangle updateRect)
          指定されたコンポーネントとタイプで、 PaintEvent オブジェクトを構築します。
 

java.awt.geom における Rectangle の使用方法
 

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

java.awt.im における Rectangle の使用方法
 

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

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.Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
          指定された SampleModel、DataBuffer、および親を持つ Raster を構築します。
WritableRaster.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 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 JComponent.AccessibleJComponent.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 Rectangle JTree.getPathBounds(TreePath path)
          指定されたノードが描画される Rectangle を返します。
 Rectangle JTree.getRowBounds(int row)
          指定された行にあるノードが描画される Rectangle を返します。
 Rectangle JTree.AccessibleJTree.AccessibleJTreeNode.getBounds()
           
protected  Rectangle DefaultDesktopManager.getBoundsForIconOf(JInternalFrame f)
          iconifyFrame() のコードはこのメソッドを呼び出して、desktopIcon の適切な境界を指定します。
protected  Rectangle DefaultDesktopManager.getPreviousBounds(JInternalFrame f)
           
 Rectangle DebugGraphics.getClipBounds()
          Graphics.getClipBounds をオーバーライドします。
 Rectangle JApplet.AccessibleJApplet.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 Rectangle RepaintManager.getDirtyRegion(JComponent aComponent)
          コンポーネントの現在のダーティーリージョンを返します。
 Rectangle JViewport.getViewRect()
          起点が getViewPosition、サイズが getExtentSize() である矩形を返します。
 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)
          新しい矩形 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 JScrollPane.getViewportBorderBounds()
          ビューポートボーダの境界を返します。
 Rectangle JWindow.AccessibleJWindow.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 Rectangle Box.Filler.AccessibleBoxFiller.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 Rectangle Box.AccessibleBox.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 Rectangle JTabbedPane.getBoundsAt(int index)
          index のタブの境界を返します。
 Rectangle JDialog.AccessibleJDialog.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 Rectangle CellRendererPane.AccessibleCellRendererPane.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 Rectangle JTable.getCellRect(int row, int column, boolean includeSpacing)
          rowcolumn が交差する位置のセルを示す矩形を返します。
 Rectangle JTable.AccessibleJTable.AccessibleJTableCell.getBounds()
           
 Rectangle JFrame.AccessibleJFrame.getBounds()
          オブジェクトの境界を、Rectangle オブジェクトの形式で取得します。
 Rectangle JList.getCellBounds(int index1, int index2)
          JList 座標で指定された項目範囲の境界を返します。
 Rectangle JList.AccessibleJList.AccessibleJListChild.getBounds()
           
 

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 JComponent.AccessibleJComponent.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 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)
           
protected  void DefaultDesktopManager.setPreviousBounds(JInternalFrame f, Rectangle r)
          コンポーネントの境界を、最大表示呼び出しの直前に格納します。
 void JApplet.AccessibleJApplet.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 void JTextField.scrollRectToVisible(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 のパラメータを計算します。
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)
          新しい矩形 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 をペイントします。
 void JWindow.AccessibleJWindow.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 int JTextArea.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または列を表示するコンポーネントは、方向の値に基づいて、新しい行または列を完全に表示するスクロール増分値を計算します。
 int Scrollable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または論理列を表示するコンポーネントは、orientation の値によって、新しい 1 行または 1 列を完全にエクスポーズするスクロール増分値を計算します。
 int Scrollable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または論理列を表示するコンポーネントは、orientation の値によって、1 ブロック分の行または列を完全にエクスポーズするスクロール増分値を計算します。
 void Box.Filler.AccessibleBoxFiller.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 void Box.AccessibleBox.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 void JDialog.AccessibleJDialog.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 void CellRendererPane.paintComponent(Graphics g, Component c, Container p, Rectangle r)
          矩形の x、y、幅、高さの各フィールドを使って this.paintComponent() を呼び出します。
 void CellRendererPane.AccessibleCellRendererPane.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 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 JFrame.AccessibleJFrame.setBounds(Rectangle r)
          オブジェクトの境界を、Rectangle オブジェクトの形式で設定します。
 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)
           
 

javax.swing.border における Rectangle の使用方法
 

Rectangle を返す javax.swing.border におけるメソッド
 Rectangle AbstractBorder.getInteriorRectangle(Component c, int x, int y, int width, int height)
          static メソッドを呼び出す簡易メソッドです。
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 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 座標における境界を返します。
abstract  Rectangle TabbedPaneUI.getTabBounds(JTabbedPane pane, int index)
           
abstract  Rectangle TreeUI.getPathBounds(JTree tree, TreePath path)
          path の最後の項目が描画されるラベル部分を囲む Rectangle を返します。
 

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 BasicSliderUI.focusRect
           
protected  Rectangle BasicSliderUI.contentRect
           
protected  Rectangle BasicSliderUI.labelRect
           
protected  Rectangle BasicSliderUI.tickRect
           
protected  Rectangle BasicSliderUI.trackRect
           
protected  Rectangle BasicSliderUI.thumbRect
           
protected  Rectangle BasicScrollBarUI.thumbRect
           
protected  Rectangle BasicScrollBarUI.trackRect
           
 

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

Rectangle のパラメータを持つ javax.swing.plaf.basic におけるメソッド
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 BasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel dataModel, ListSelectionModel selModel, int leadIndex)
          List のセルを 1 つペイントします。
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)
           
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 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 BasicScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void BasicScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
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)
          現在選択されている項目のバックグラウンドを描画します。
 

javax.swing.plaf.metal における Rectangle の使用方法
 

Rectangle のパラメータを持つ javax.swing.plaf.metal におけるメソッド
protected  void MetalTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
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 MetalScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
           
protected  void MetalScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
           
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 MetalButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
           
protected  void MetalButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
           
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)
           
 

javax.swing.plaf.multi における Rectangle の使用方法
 

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

javax.swing.table における Rectangle の使用方法
 

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

Rectangle のパラメータを持つ javax.swing.table におけるメソッド
 void JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setBounds(Rectangle r)
           
 

javax.swing.text における Rectangle の使用方法
 

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

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)
          論理行または列を表示するコンポーネントは、方向の値に基づいて、新しい行または列を完全に表示するスクロールインクリメントを計算します。
 int JTextComponent.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
          論理行または列を表示するコンポーネントは、方向の値に基づいて、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)
          子ビューに領域を割り当てます。
protected  View TableView.getViewAtPosition(int pos, Rectangle a)
          モデル内で指定された位置を表す子ビューを取得します。
protected  View TableView.TableRow.getViewAtPosition(int pos, Rectangle a)
          モデル内で指定された位置を表す子ビューを取得します。
protected  View ParagraphView.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 FixedHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          パスを描画するのに必要な境界を指定する矩形を返します。
 Rectangle VariableHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          行で識別される項目を描画する、ラベル部分を囲む Rectangle を返します。
 

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 の参照によって返します。
 Rectangle FixedHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          パスを描画するのに必要な境界を指定する矩形を返します。
 Rectangle VariableHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
          行で識別される項目を描画する、ラベル部分を囲む Rectangle を返します。
 int VariableHeightLayoutCache.getPreferredWidth(Rectangle bounds)
          visibleRegion 内の矩形の望ましい幅と高さを返します。
 


Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.