クラスjava.awt.Rectangle
の使用
Rectangleを使用するパッケージ
パッケージ
説明
Java Accessibility Utilitiesを構成するインタフェースとクラスの集合を提供します。
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
AWTコンポーネントによってトリガーされるさまざまな種類のイベントを処理するインタフェースとクラスを提供します。
フォント関連のクラスおよびインタフェースを提供します。
2次元幾何学的図形に関連するオブジェクトで処理を定義および実行するJava 2Dクラスを提供します。
インプット・メソッド・フレームワークのためのクラスおよびインタフェースを提供します。
あらゆるJava実行時環境で使用できるインプット・メソッドの開発を可能にするインタフェースを提供します。
イメージを作成および修正するためのクラスを提供します。
beans -- JavaBeansアーキテクチャに基づくコンポーネント -- の開発に関連するクラスが含まれます。
ユーザー・インタフェース・コンポーネントとそれらのコンポーネントへのアクセスを提供するユーザー補助テクノロジの間の規約を定義します。
Java Image I/O APIの基本パッケージです。
すべてのプラットフォーム上で可能なかぎり同じように機能する「軽量」(Java共通言語)コンポーネントのセットを提供します。
Swingコンポーネントの周囲に各種ボーダーを描画するためのクラスおよびインタフェースを提供します。
1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
デフォルトのLook & FeelであるJava Look & Feel (以前のコード名はMetal)に従って構築されたユーザー・インタフェース・オブジェクトを提供します。
複数のLook & Feelを結合するユーザー・インタフェース・オブジェクトを提供します。
Synthは、すべてのペイントが委譲されるスキン設定可能なLook & Feelです。
javax.swing.JTableを処理するためのクラスとインタフェースを提供します。編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
HTMLテキスト・エディタを作成するためのクラス
HTMLEditorKitとサポート・クラスを提供します。javax.swing.JTreeを処理するためのクラスとインタフェースを提供します。-
com.sun.java.accessibility.utilでのRectangleの使用
型Rectangleのパラメータを持つcom.sun.java.accessibility.utilのメソッド -
java.awtでのRectangleの使用
修飾子と型メソッド説明Component.bounds()非推奨。Polygon.getBoundingBox()非推奨。JDKバージョン1.1で、getBounds()に置き換えられています。Component.AccessibleAWTComponent.getBounds()オブジェクトの境界を、Rectangleオブジェクトの形式で返します。Component.getBounds()このコンポーネントの境界をRectangleオブジェクトの形式で取得します。このコンポーネントの境界を「戻り値」rvに格納し、rvを返します。abstract RectangleGraphicsConfiguration.getBounds()デバイス座標内のGraphicsConfigurationの境界を返します。List.AccessibleAWTList.AccessibleAWTListChild.getBounds()オブジェクトの境界を、Rectangleオブジェクトの形式で返します。MenuComponent.AccessibleAWTMenuComponent.getBounds()このオブジェクトの境界をRectangleオブジェクトの形式で取得します。Polygon.getBounds()このPolygonのバウンディング・ボックスを取得します。Rectangle.getBounds()このRectangleの境界のRectangleを取得します。Shape.getBounds()Shapeを完全に囲む整数のRectangleを返します。SplashScreen.getBounds()スプラッシュ画面ウィンドウの境界をRectangleとして返します。TextComponent.AccessibleAWTTextComponent.getCharacterBounds(int i) 文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。abstract RectangleGraphics.getClipBounds()現在のクリッピング領域の境界の矩形を返します。Graphics.getClipBounds(Rectangle r) 現在のクリッピング領域の境界の矩形を返します。Graphics.getClipRect()非推奨。JDKバージョン1.1で、getClipBounds()に置き換えられています。Frame.getMaximizedBounds()このフレームの最大化された境界を返します。GraphicsEnvironment.getMaximumWindowBounds()中央に配置されたWindowの最大の境界を返します。Rectangle.intersection(Rectangle r) このRectangleと指定されたRectangleの共通部分を計算します。このRectangleと指定されたRectangleの和集合を計算します。修飾子と型メソッド説明voidRectangleをこのRectangleに追加します。protected voidGridBagLayout.adjustForGravity(GridBagConstraints constraints, Rectangle r) x、y、幅、高さフィールドを、制約幾何学的図形およびパッドに応じて正しい値に調整します。protected voidGridBagLayout.AdjustForGravity(GridBagConstraints constraints, Rectangle r) x、y、幅、高さフィールドを、制約幾何学的図形およびパッドに応じて正しい値に調整します。booleanこのRectangleに、指定されたRectangleが完全に含まれるかどうかをチェックします。Color.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints) 塗りつぶした色のフィールド・パターンを生成するために使用されるPaintContextを作成して返します。GradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) カラーの線形グラデーション・パターンを生成するために使用されるPaintContextを作成して返します。LinearGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) カラーの線形グラデーション・パターンを生成するために使用されるPaintContextを作成して返します。Paint.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を作成して返します。TexturePaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) タイリングされたイメージ・パターンを生成するために使用されるPaintContextを作成して返します。Robot.createMultiResolutionScreenCapture(Rectangle screenRect) スクリーンから読み取るピクセルを含むイメージを作成します。Robot.createScreenCapture(Rectangle screenRect) スクリーンから読み取るピクセルを含むイメージを作成します。このコンポーネントの境界を「戻り値」rvに格納し、rvを返します。Graphics.getClipBounds(Rectangle r) 現在のクリッピング領域の境界の矩形を返します。abstract boolean指定されたShapeが、デバイス空間内にある指定されたRectangleと交差しているかどうかをチェックします。Rectangle.intersection(Rectangle r) このRectangleと指定されたRectangleの共通部分を計算します。booleanRectangle.intersects(Rectangle r) このRectangleと指定されたRectangleが交差しているかどうかを判定します。voidこのオブジェクトの境界をRectangleオブジェクトの形式で設定します。void新しい境界の矩形rに適合するように、このコンポーネントを移動し、サイズ変更します。voidこのオブジェクトの境界を、Rectangleオブジェクトの形式で設定します。voidこのオブジェクトの境界をRectangleオブジェクトの形式で設定します。voidこのRectangleの境界のRectangleを指定されたRectangleに一致するように設定します。void新しい境界の矩形rに適合するように、このコンポーネントを移動し、サイズ変更します。voidFrame.setMaximizedBounds(Rectangle bounds) このフレームの最大化された境界を設定します。このRectangleと指定されたRectangleの和集合を計算します。 -
java.awt.eventでのRectangleの使用
Rectangleを返すjava.awt.eventのメソッド型Rectangleのパラメータを持つjava.awt.eventのメソッド修飾子と型メソッド説明voidPaintEvent.setUpdateRect(Rectangle updateRect) このイベントに応答して再ペイントされる必要のある領域を表す矩形を設定します。型Rectangleのパラメータを持つjava.awt.eventのコンストラクタ修飾子コンストラクタ説明PaintEvent(Component source, int id, Rectangle updateRect) 指定されたソース・コンポーネントとタイプで、PaintEventオブジェクトを構築します。 -
java.awt.fontでのRectangleの使用
Rectangleを返すjava.awt.fontのメソッド修飾子と型メソッド説明GlyphVector.getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y) 指定された位置で指定されたFontRenderContextを使ってGraphics内にこのGlyphVectorがレンダリングされるときのインデックスの位置にあるグリフのピクセル境界を返します。GlyphVector.getPixelBounds(FontRenderContext renderFRC, float x, float y) 指定された位置にある指定されたFontRenderContextを使用してグラフィックス内にレンダリングされるときの、このGlyphVectorのピクセル境界を返します。TextLayout.getPixelBounds(FontRenderContext frc, float x, float y) 指定された位置にある指定されたFontRenderContextを使用してグラフィックス内にレンダリングされるときの、このTextLayoutのピクセル境界を返します。 -
java.awt.geomでのRectangleの使用
Rectangleを返すjava.awt.geomのメソッド修飾子と型メソッド説明Area.getBounds()このAreaを完全に囲むバウンディングRectangleを返します。CubicCurve2D.getBounds()Shapeを完全に囲む整数のRectangleを返します。Line2D.getBounds()Shapeを完全に囲む整数のRectangleを返します。final RectanglePath2D.getBounds()Shapeを完全に囲む整数のRectangleを返します。QuadCurve2D.getBounds()Shapeを完全に囲む整数のRectangleを返します。RectangularShape.getBounds()Shapeを完全に囲む整数のRectangleを返します。 -
java.awt.imでのRectangleの使用
Rectangleを返すjava.awt.imのメソッド修飾子と型メソッド説明InputMethodRequests.getTextLocation(TextHitInfo offset) 現在の変換テキスト内の指定されたオフセットの場所、または確定テキスト内の選択部分の場所を取得します。 -
java.awt.im.spiでのRectangleの使用
型Rectangleのパラメータを持つjava.awt.im.spiのメソッド修飾子と型メソッド説明voidInputMethod.notifyClientWindowChange(Rectangle bounds) クライアントのウィンドウ位置または状態の変更を、このインプット・メソッドに通知します。 -
java.awt.imageでのRectangleの使用
Rectangleを返すjava.awt.imageのメソッド型Rectangleのパラメータを持つjava.awt.imageのメソッド修飾子と型メソッド説明Raster.createCompatibleWritableRaster(Rectangle rect) rectによって指定される位置(minX, minY)とサイズ(width, height)、新しいSampleModel、および初期化された新しいDataBufferを持ち、互換性があるWritableRasterを生成します。BufferedImageの任意の領域を計算して返します。RenderedImageの任意の領域を計算して返します。型Rectangleのパラメータを持つjava.awt.imageのコンストラクタ修飾子コンストラクタ説明protectedRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent) 指定されたSampleModel、DataBuffer、および親を使ってRasterを構築します。protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent) 指定されたSampleModel、DataBuffer、および親を使ってWritableRasterを構築します。 -
java.beansでのRectangleの使用
型Rectangleのパラメータを持つjava.beansのメソッド修飾子と型メソッド説明voidPropertyEditor.paintValue(Graphics gfx, Rectangle box) 値の表現を画面の指定された領域に描画します。voidPropertyEditorSupport.paintValue(Graphics gfx, Rectangle box) 値の表現を画面の指定された領域に描画します。 -
javax.accessibilityでのRectangleの使用
Rectangleを返すjavax.accessibilityのメソッド修飾子と型メソッド説明AccessibleComponent.getBounds()このオブジェクトの境界をRectangleオブジェクトの形式で取得します。AccessibleText.getCharacterBounds(int i) 文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。AccessibleExtendedText.getTextBounds(int startIndex, int endIndex) 2つのインデックス間のテキストの境界の矩形を返します。型Rectangleのパラメータを持つjavax.accessibilityのメソッド -
javax.imageioでのRectangleの使用
Rectangleとして宣言されたjavax.imageioのフィールドRectangleを返すjavax.imageioのメソッド修飾子と型メソッド説明IIOParam.getSourceRegion()使用するソース領域を返します。protected static RectangleImageReader.getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight) 指定されたImageReadParamのソース領域とサブサンプリングの座標の設定を考慮して、読取り側が読み取るソース・イメージの領域を計算するために使用するユーティリティ・メソッドです。型Rectangleのパラメータを持つjavax.imageioのメソッド修飾子と型メソッド説明protected static voidImageReader.computeRegions(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion) ソース・イメージの幅と高さ、オプションのデスティネーション・イメージ、およびオプションのImageReadParamを考慮して、対象のソース領域および対象のデスティネーション領域を計算します。voidImageWriter.prepareReplacePixels(int imageIndex, Rectangle region) replacePixelsメソッドの一連の呼出しを処理するために、書込み側を準備します。voidIIOParam.setSourceRegion(Rectangle sourceRegion) 処理対象のソース領域を設定します。 -
javax.swingでのRectangleの使用
Rectangleを返すjavax.swingのメソッド修飾子と型メソッド説明static RectangleSwingUtilities.calculateInnerArea(JComponent c, Rectangle r) 指定されたコンポーネントの内部ペイント領域の位置とサイズをrに格納し、rを返します。static Rectangle[]SwingUtilities.computeDifference(Rectangle rectA, Rectangle rectB) rectBとオーバーラップしないrectA内の領域を表す矩形の配列を返すのに便利です。static RectangleSwingUtilities.computeIntersection(int x, int y, int width, int height, Rectangle dest) 新しい矩形を割り当てずに、2つの矩形の共通部分を計算するのに便利です。static RectangleSwingUtilities.computeUnion(int x, int y, int width, int height, Rectangle dest) 新しい矩形を割り当てないで2つの矩形の結合部分を算出する簡易メソッドです。static RectangleSwingUtilities.convertRectangle(Component source, Rectangle aRectangle, Component destination) source座標系内の矩形aRectangleをdestination座標系に変換します。このコンポーネントの境界を「戻り値」rvに格納し、rvを返します。JList.AccessibleJList.AccessibleJListChild.getBounds()JTable.AccessibleJTable.AccessibleJTableCell.getBounds()JTree.AccessibleJTree.AccessibleJTreeNode.getBounds()JTabbedPane.getBoundsAt(int index) indexのタブの境界を返します。protected RectangleDefaultDesktopManager.getBoundsForIconOf(JInternalFrame f) iconifyFrame()コードは、これをコールして、desktopIconの適切な境界を決定します。JList.getCellBounds(int index0, int index1) 2つのインデックスで指定されたセルの範囲を示す、リストの座標系内の境界の矩形を返します。JTable.getCellRect(int row, int column, boolean includeSpacing) rowとcolumnが交差する位置のセルの矩形を返します。AbstractButton.AccessibleAbstractButton.getCharacterBounds(int i) 文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。JLabel.AccessibleJLabel.getCharacterBounds(int i) 文字列内の指定されたインデックスの位置にある文字のバウンディング・ボックスを返します。JSpinner.AccessibleJSpinner.getCharacterBounds(int i) 文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。ProgressMonitor.AccessibleProgressMonitor.getCharacterBounds(int i) 文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。DebugGraphics.getClipBounds()Graphics.getClipBoundsをオーバーライドします。RepaintManager.getDirtyRegion(JComponent aComponent) コンポーネントの現在のダーティ・リージョンを返します。static RectangleSwingUtilities.getLocalBounds(Component aComponent) コンポーネントaComponentの矩形(0,0,bounds.width,bounds.height)を返します。JInternalFrame.getNormalBounds()JInternalFrameが最大化の状態ではない場合、getBounds()を返します。それ以外の場合は、JInternalFrameが復元される境界を返します。JTree.getPathBounds(TreePath path) 指定されたノードが描画されるRectangleを返します。protected RectangleDefaultDesktopManager.getPreviousBounds(JInternalFrame f) コンポーネントの通常の境界をコンポーネント最大化の直前に返します。JTree.getRowBounds(int row) 指定された行にあるノードが描画されるRectangleを返します。JScrollPane.getViewportBorderBounds()ビュー・ポートのボーダーの境界を返します。ScrollPaneLayout.getViewportBorderBounds(JScrollPane scrollpane) 非推奨。JDKバージョンSwing1.1で、JScrollPane.getViewportBorderBounds()に置き換えられています。JViewport.getViewRect()始点がgetViewPosition、サイズがgetExtentSizeである矩形を返します。JComponent.getVisibleRect()Componentの「可視矩形」を返します。これは、このコンポーネントの可視矩形、new Rectangle(0, 0, getWidth(), getHeight())、およびそのすべての上位オブジェクトの可視矩形の共通部分です。型Rectangleのパラメータを持つjavax.swingのメソッド修飾子と型メソッド説明static RectangleSwingUtilities.calculateInnerArea(JComponent c, Rectangle r) 指定されたコンポーネントの内部ペイント領域の位置とサイズをrに格納し、rを返します。protected booleanJViewport.computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) バッキング・ストア・イメージの左上隅に現在oldLocが含まれており、newLocにスクロールしている場合のBlitのパラメータを計算します。static Rectangle[]SwingUtilities.computeDifference(Rectangle rectA, Rectangle rectB) rectBとオーバーラップしないrectA内の領域を表す矩形の配列を返すのに便利です。static RectangleSwingUtilities.computeIntersection(int x, int y, int width, int height, Rectangle dest) 新しい矩形を割り当てずに、2つの矩形の共通部分を計算するのに便利です。static RectangleSwingUtilities.computeUnion(int x, int y, int width, int height, Rectangle dest) 新しい矩形を割り当てないで2つの矩形の結合部分を算出する簡易メソッドです。voidJComponent.computeVisibleRect(Rectangle visibleRect) Componentの「可視矩形」を返します。これは、このコンポーネントとそのすべての上位オブジェクトの可視矩形の共通部分です。static RectangleSwingUtilities.convertRectangle(Component source, Rectangle aRectangle, Component destination) source座標系内の矩形aRectangleをdestination座標系に変換します。このコンポーネントの境界を「戻り値」rvに格納し、rvを返します。intJLayer.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) スクロール増分値を返します。スクロール増分値は、orientationの値によって、1ブロック分の行または列を完全に表示するために、論理行または論理列を表示するコンポーネントに必要です。intJList.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) 次または前のブロックを表示するためにスクロールする距離を返します。intJTable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) このテーブルの方向によってvisibleRect.heightまたはvisibleRect.widthを返します。intJTree.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) ブロック増分値の量を返します。この量は、orientationに基づいたvisibleRectの高さまたは幅です。intScrollable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) 論理行または論理列を表示するコンポーネントは、orientationの値によって、1ブロック分の行または列を完全にエクスポーズするスクロール増分値を計算します。intJLayer.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) スクロール増分値を返します。スクロール増分値は、orientationの値によって、新しい1行または1列を完全に表示するために、論理行または論理列を表示するコンポーネントに必要です。intJList.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) 次または前の行(垂直スクロール)または列(水平スクロール)を表示するためにスクロールする距離を返します。intJTable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) 新しい1行または1列を完全に表示するスクロール増分値を(方向に基づいて)ピクセル単位で返します。intJTextArea.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) 論理行または論理列を表示するコンポーネントは、orientationの値によって、新しい1行または1列を完全にエクスポーズするスクロール増分値を計算します。intJTree.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) スクロール時に増分する量を返します。intScrollable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) 論理行または論理列を表示するコンポーネントは、orientationの値によって、新しい1行または1列を完全にエクスポーズするスクロール増分値を計算します。static final booleanSwingUtilities.isRectangleContainingRectangle(Rectangle a, Rectangle b) aにbが含まれている場合はtrueを返しますstatic StringSwingUtilities.layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap) アイコン起点の位置、テキスト・ベースライン起点の位置、および可能であればクリップされた複合ラベル文字列を計算して返します。static StringSwingUtilities.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) アイコン起点の位置、テキスト・ベースライン起点の位置、および可能であればクリップされた複合ラベル文字列を計算して返します。voidCellRendererPane.paintComponent(Graphics g, Component c, Container p, Rectangle r) this.paintComponent(g, c, p, r.x, r.y, r.width, r.height)をコールします。rは入力Rectangleパラメータです。static voidSwingUtilities.paintComponent(Graphics g, Component c, Container p, Rectangle r) 指定されたGraphicsで、コンポーネントをペイントします。voidJComponent.paintImmediately(Rectangle r) 指定された領域をすぐにペイントします。voidパフォーマンス上の理由でオーバーライドされます。voidコンポーネントが表示されている場合に、指定された領域をダーティ・リージョン・リストに追加します。voidJComponent.scrollRectToVisible(Rectangle aRect) scrollRectToVisible()メッセージをJComponentの親に転送します。voidJTextField.scrollRectToVisible(Rectangle r) フィールドを左または右にスクロールします。voidJViewport.scrollRectToVisible(Rectangle contentRect) ビュー内のRectangleが可視になるようにビューをスクロールします。voidvoidvoidvoidJInternalFrame.setNormalBounds(Rectangle r) この内部フレームの通常の境界、つまりこの内部フレームが最大化の状態から復元される境界を設定します。protected voidDefaultDesktopManager.setPreviousBounds(JInternalFrame f, Rectangle r) コンポーネントの境界を、最大呼出しの直前に格納します。 -
javax.swing.borderでのRectangleの使用
Rectangleを返すjavax.swing.borderのメソッド修飾子と型メソッド説明AbstractBorder.getInteriorRectangle(Component c, int x, int y, int width, int height) 静的メソッドを呼び出す簡易メソッドです。static RectangleAbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height) ボーダーのイン・セットから引数の値を減算して矩形を返します。 -
javax.swing.plafでのRectangleの使用
Rectangleを返すjavax.swing.plafのメソッド修飾子と型メソッド説明abstract RectangleListUI.getCellBounds(JList<?> list, int index1, int index2) 2つのインデックスで指定されたセルの範囲を示す、指定されたリストの座標系内の境界矩形を返します。abstract RectangleTreeUI.getPathBounds(JTree tree, TreePath path) パスの最後の項目が描画されるラベル部分を囲むRectangleを返します。abstract RectangleTabbedPaneUI.getTabBounds(JTabbedPane pane, int index) タブ境界の矩形を返します。abstract RectangleTextUI.modelToView(JTextComponent t, int pos) 非推奨。abstract RectangleTextUI.modelToView(JTextComponent t, int pos, Position.Bias bias) 非推奨。 -
javax.swing.plaf.basicでのRectangleの使用
Rectangleとして宣言されたjavax.swing.plaf.basicのフィールド修飾子と型フィールド説明protected RectangleBasicProgressBarUI.boxRectペイントされる(getBoxによって返された)バウンシング・ボックスの位置とサイズを保持するために使用します。protected RectangleBasicTabbedPaneUI.calcRect実行中に多くの新規Rectangleが構築されるのを防ぐため、一般レイアウト計算に使用される矩形です。protected RectangleBasicSliderUI.contentRectコンテンツ矩形protected RectangleBasicSliderUI.focusRectフォーカス矩形protected RectangleBasicSliderUI.labelRectラベル矩形protected Rectangle[]BasicTabbedPaneUI.rectsタブ矩形protected RectangleBasicScrollBarUI.thumbRectサムの矩形protected RectangleBasicSliderUI.thumbRectサムの矩形protected RectangleBasicSliderUI.tickRectTick rectangleprotected RectangleBasicScrollBarUI.trackRectトラック矩形protected RectangleBasicSliderUI.trackRectトラック矩形Rectangleを返すjavax.swing.plaf.basicのメソッド修飾子と型メソッド説明protected RectangleBasicComboPopup.computePopupBounds(int px, int py, int pw, int ph) コンボボックスの位置と画面の囲み境界に基づいて、コンボボックスのポップアップ部分の配置とサイズを計算します。protected Rectangle現在のアニメーション・インデックス用にペイントされるバウンシング・ボックスの位置とサイズをrに格納し、rを返します。BasicListUI.getCellBounds(JList<?> list, int index1, int index2) 2つのインデックスで指定されたセルの範囲を示す、指定されたリストの座標系内の境界矩形を返します。protected RectangleBasicTreeUI.getDropLineRect(JTree.DropLocation loc) ドロップ・ラインのアンバウンディング・ボックスを返します。BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size) 特定のノードのサイズを取得します。BasicTreeUI.getPathBounds(JTree tree, TreePath path) パスの最後の項目が描画されるラベル部分を囲むRectangleを返します。protected RectangleBasicTabbedPaneUI.getTabBounds(int tabIndex, Rectangle dest) JTabbedPaneコンポーネントの座標空間内の、指定されたタブの境界を返します。BasicTabbedPaneUI.getTabBounds(JTabbedPane pane, int i) 指定されたタブ・インデックスの境界を返します。protected RectangleBasicScrollBarUI.getThumbBounds()つまみの現在のサイズ/位置を返します。protected RectangleBasicScrollBarUI.getTrackBounds()トラックの現在の境界(増分ボタンと減分ボタンの間のスペース - イン・セット)を返します。protected RectangleBasicTextUI.getVisibleEditorRect()ルートViewを渡す割り当てを取得します。BasicTextUI.modelToView(JTextComponent tc, int pos) 非推奨。BasicTextUI.modelToView(JTextComponent tc, int pos, Position.Bias bias) 非推奨。protected RectangleBasicComboBoxUI.rectangleForCurrentValue()現在選択されている項目を描画するために予約されている領域を返します。型Rectangleのパラメータを持つjavax.swing.plaf.basicのメソッド修飾子と型メソッド説明protected Rectangle現在のアニメーション・インデックス用にペイントされるバウンシング・ボックスの位置とサイズをrに格納し、rを返します。BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size) 特定のノードのサイズを取得します。protected RectangleBasicTabbedPaneUI.getTabBounds(int tabIndex, Rectangle dest) JTabbedPaneコンポーネントの座標空間内の、指定されたタブの境界を返します。protected StringBasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) 呼出しをSwingUtilities.layoutCompoundLabel()に転送します。protected voidBasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) ラベルをレイアウトします。protected voidBasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex) リスト・セルをペイント: 関連する状態をコンピュートし、"ラバー・スタンプ"セル・レンダラ・コンポーネントを取得し、CellRendererPaneを使用してペイントします。voidBasicComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) 現在選択されている項目をペイントします。voidBasicComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) 現在選択されている項目のバックグラウンドをペイントします。protected voidBasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) 行の展開(切り替え)部分をペイントします。protected voidBasicButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) フォーカスされたボタンをペイントします。protected voidBasicRadioButtonUI.paintFocus(Graphics g, Rectangle textRect, Dimension size) フォーカスされたラジオ・ボタンをペイントします。protected voidBasicTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) フォーカス・インジケータをペイントします。protected voidBasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) 脚の水平部分をペイントします。protected voidBasicButtonUI.paintIcon(Graphics g, JComponent c, Rectangle iconRect) 現在のボタンのアイコンをペイントします。protected voidBasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) アイコンをペイントします。protected voidBasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) 指定されたロケーションにアイコンをペイントします。protected voidBasicSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) 水平スライダの目盛りをペイントします。protected voidBasicSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) 垂直スライダの目盛りをペイントします。protected voidBasicSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) 水平スライダのマイナー・ティックをペイントします。protected voidBasicSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) 垂直スライダのマイナー・ティックをペイントします。protected voidBasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) 行のレンダラ部分をペイントします。protected voidBasicTabbedPaneUI.paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) タブをペイントします。protected voidBasicButtonUI.paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) 現在のボタンのテキストをレンダリングするメソッドです。protected voidBasicButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text) 現在のボタンのテキストをレンダリングするメソッドです。protected void現在のメニュー項目のテキストをレンダリングします。protected voidBasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) テキストをペイントします。protected voidBasicScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) サムを塗ります。protected voidBasicScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds) トラックをペイントします。protected voidBasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) 脚の垂直部分をペイントします。 -
javax.swing.plaf.metalでのRectangleの使用
型Rectangleのパラメータを持つjavax.swing.plaf.metalのメソッド修飾子と型メソッド説明voidMetalComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) 必要に応じて、現在選択されている項目をペイントします。voidMetalComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) 必要に応じて、現在選択されている項目のバックグラウンドをペイントします。protected voidMetalToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) ボタンbの適切なアイコンを領域iconRectにペイントします。 -
javax.swing.plaf.multiでのRectangleの使用
Rectangleを返すjavax.swing.plaf.multiのメソッド修飾子と型メソッド説明MultiListUI.getCellBounds(JList<?> a, int b, int c) このオブジェクトで処理されている各UIでgetCellBoundsメソッドを呼び出します。MultiTreeUI.getPathBounds(JTree a, TreePath b) このオブジェクトで処理されている各UIでgetPathBoundsメソッドを呼び出します。MultiTabbedPaneUI.getTabBounds(JTabbedPane a, int b) このオブジェクトで処理されている各UIでgetTabBoundsメソッドを呼び出します。MultiTextUI.modelToView(JTextComponent a, int b) 非推奨。MultiTextUI.modelToView(JTextComponent a, int b, Position.Bias c) 非推奨。 -
javax.swing.plaf.synthでのRectangleの使用
型Rectangleのパラメータを持つjavax.swing.plaf.synthのメソッド修飾子と型メソッド説明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) テキストとアイコンを配置する位置を参照で返すテキストとアイコンをレイアウトします。protected voidSynthToolBarUI.paintContent(SynthContext context, Graphics g, Rectangle bounds) ツールバーの内容をペイントします。voidSynthComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) 現在選択されている項目をペイントします。voidSynthGraphicsUtils.paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex) 指定された位置にテキストをペイントします。protected voidSynthScrollBarUI.paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds) スクロール・バーのつまみをペイントします。protected voidSynthSliderUI.paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds) スライダのつまみをペイントします。protected voidSynthScrollBarUI.paintTrack(SynthContext context, Graphics g, Rectangle trackBounds) スクロール・バーのトラックをペイントします。protected voidSynthSliderUI.paintTrack(SynthContext context, Graphics g, Rectangle trackBounds) スライダのトラックをペイントします。 -
javax.swing.tableでのRectangleの使用
Rectangleを返すjavax.swing.tableのメソッド修飾子と型メソッド説明JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getBounds()JTableHeader.getHeaderRect(int column) columnにヘッダー・タイルがある矩形を返します。型Rectangleのパラメータを持つjavax.swing.tableのメソッド -
javax.swing.textでのRectangleの使用
javax.swing.textのRectangleのサブクラスRectangleとして宣言されたjavax.swing.textのフィールド修飾子と型フィールド説明protected RectangleAsyncBoxView.ChildLocator.childAllocガベージを多く生成することを避けるために、子の割当てに使う形状です。protected RectangleAsyncBoxView.ChildLocator.lastAlloc変更が上方にフラッシュされた場合に、最後に見られる再ペイントのための割当てです。Rectangleを返すjavax.swing.textのメソッド修飾子と型メソッド説明JTextComponent.AccessibleJTextComponent.getCharacterBounds(int i) 文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。protected RectangleCompositeView.getInsideAllocation(Shape a) ビューに指定された不変の割当てを、内部割当てを表す可変の割当てに変換します(上、左、下、右のインセットで指定された割当ての境界を削除する場合など)。JTextComponent.AccessibleJTextComponent.getTextBounds(int startIndex, int endIndex) 2つの索引間でテキストを囲むRectangleを返します。protected RectanglePlainView.lineToRect(Shape a, int line) 指定した行を表す矩形を判別します。JTextComponent.modelToView(int pos) 非推奨。JTextComponent.modelToView2D(int)に置き換えられました型Rectangleのパラメータを持つjavax.swing.textのメソッド修飾子と型メソッド説明protected voidDefaultCaret.adjustVisibility(Rectangle nloc) 必要に応じて、関連するビューをスクロールして、キャレットを表示します。voidFlowView.FlowStrategy.changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) このビューが扱う位置で属性が変更されたことをドキュメントから通知します。protected voidBoxView.childAllocation(int index, Rectangle alloc) 子ビューに領域を割り当てます。protected abstract voidCompositeView.childAllocation(int index, Rectangle a) 指定された子への割り当てを返します。protected voidキャレットを囲む領域を壊して、新しい位置に再ペイントされるようにします。intJTextComponent.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) 論理行または論理列を表示するコンポーネントは、orientationの値によって、1ブロック分の行または列を完全にエクスポーズするスクロール増分値を計算します。intJTextComponent.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) 論理行または論理列を表示するコンポーネントは、orientationの値によって、新しい1行または1列を完全にエクスポーズするスクロール増分値を計算します。protected ViewBoxView.getViewAtPoint(int x, int y, Rectangle alloc) 指定された座標の子ビューを取得します。protected abstract ViewCompositeView.getViewAtPoint(int x, int y, Rectangle alloc) 指定された座標の子ビューを取得します。protected ViewCompositeView.getViewAtPosition(int pos, Rectangle a) モデル内で指定された位置を表す子ビューを取得します。protected ViewTableView.getViewAtPosition(int pos, Rectangle a) モデル内で指定された位置を表す子ビューを取得します。protected ViewTableView.TableRow.getViewAtPosition(int pos, Rectangle a) モデル内で指定された位置を表す子ビューを取得します。voidFlowView.FlowStrategy.insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) このビューが担当する位置でドキュメントに何かが挿入されたことを通知します。protected booleanある点が、割り当てられた領域のあとにあるかどうかを判定します。protected abstract booleanある点が、矩形範囲の後ろにあるかどうかを判定します。protected booleanある点が、割り当てられた領域の前にあるかどうかを判定します。protected abstract booleanある点が、矩形範囲の前にあるかどうかを判定します。protected voidBoxView.paintChild(Graphics g, Rectangle alloc, int index) 子をペイントします。voidFlowView.FlowStrategy.removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) このビューが担当するドキュメント内の位置から何かが削除されたということを通知します。 -
javax.swing.text.htmlでのRectangleの使用
型Rectangleのパラメータを持つjavax.swing.text.htmlのメソッド修飾子と型メソッド説明protected voidListView.paintChild(Graphics g, Rectangle alloc, int index) 子の1つをペイントします。paint()で呼び出されます。 -
javax.swing.treeでのRectangleの使用
Rectangleを返すjavax.swing.treeのメソッド修飾子と型メソッド説明abstract Rectangleパスを描画するのに必要な境界を指定する矩形を返します。パスを描画するのに必要な境界を指定する矩形を返します。pathで識別される項目が描画されるラベル部分を囲むRectangleを返します。protected RectangleAbstractLayoutCache.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn) valueを表すために必要なサイズをplaceIn内の参照によって返します。abstract RectangleAbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) サイズと値を置くX原点を、境界内の参照によって返します。型Rectangleのパラメータを持つjavax.swing.treeのメソッド修飾子と型メソッド説明abstract Rectangleパスを描画するのに必要な境界を指定する矩形を返します。パスを描画するのに必要な境界を指定する矩形を返します。pathで識別される項目が描画されるラベル部分を囲むRectangleを返します。protected RectangleAbstractLayoutCache.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn) valueを表すために必要なサイズをplaceIn内の参照によって返します。abstract RectangleAbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) サイズと値を置くX原点を、境界内の参照によって返します。intAbstractLayoutCache.getPreferredWidth(Rectangle bounds) 渡された領域の推奨する幅を返します。intVariableHeightLayoutCache.getPreferredWidth(Rectangle bounds) visibleRegion内の領域の推奨する幅と高さを返します。voidパフォーマンス上の理由でオーバーライドされます。
getBounds()に置き換えられています。