クラスjava.awt.Rectangle
の使用
| パッケージ | 説明 |
|---|---|
| com.sun.java.accessibility.util |
Java Accessibility Utilitiesを構成するインタフェースとクラスの集合を提供します。
|
| 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 |
Bean (JavaBeans™アーキテクチャに基づいたコンポーネント)の開発に関連したクラスが含まれています。
|
| 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を処理するためのクラスとインタフェースを提供します。 |
-
com.sun.java.accessibility.utilでのRectangleの使用
Rectangleを戻すcom.sun.java.accessibility.utilのメソッド 修飾子と型 メソッド 説明 RectangleTranslator. getBounds()このオブジェクトの現在の境界を返します。型Rectangleのパラメータを持つcom.sun.java.accessibility.utilのメソッド 修飾子と型 メソッド 説明 voidTranslator. setBounds(Rectangle r)このオブジェクトの現在の境界を設定します。 -
java.awtでのRectangleの使用
Rectangleを返すjava.awtのメソッド 修飾子と型 メソッド 説明 RectangleComponent. bounds()非推奨。JDK Version 1.1以降は、getBounds()に置き換えられています。RectanglePolygon. getBoundingBox()非推奨。JDK Version 1.1以降は、getBounds()に置き換えられています。RectangleComponent.AccessibleAWTComponent. getBounds()オブジェクトの境界を、Rectangleオブジェクトの形式で返します。RectangleComponent. getBounds()このコンポーネントの境界をRectangleオブジェクトの形式で取得します。RectangleComponent. getBounds(Rectangle rv)このコンポーネントの境界を「戻り値」rvに格納し、rvを返します。abstract RectangleGraphicsConfiguration. getBounds()デバイス座標内のGraphicsConfigurationの境界を返します。RectangleList.AccessibleAWTList.AccessibleAWTListChild. getBounds()オブジェクトの境界を、Rectangleオブジェクトの形式で返します。RectangleMenuComponent.AccessibleAWTMenuComponent. getBounds()このオブジェクトの境界をRectangleオブジェクトの形式で取得します。RectanglePolygon. getBounds()このPolygonのバウンディング・ボックスを取得します。RectangleRectangle. getBounds()このRectangleの境界のRectangleを取得します。RectangleShape. getBounds()Shapeを完全に囲む整数のRectangleを返します。RectangleSplashScreen. getBounds()スプラッシュ画面ウィンドウの境界をRectangleとして返します。RectangleTextComponent.AccessibleAWTTextComponent. getCharacterBounds(int i)文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。abstract RectangleGraphics. getClipBounds()現在のクリッピング領域の境界の矩形を返します。RectangleGraphics. getClipBounds(Rectangle r)現在のクリッピング領域の境界の矩形を返します。RectangleGraphics. getClipRect()非推奨。JDK Version 1.1以降は、getClipBounds()に置き換えられています。RectangleFrame. getMaximizedBounds()このフレームの最大化された境界を返します。RectangleGraphicsEnvironment. getMaximumWindowBounds()中央に配置されたWindowの最大の境界を返します。RectangleRectangle. intersection(Rectangle r)このRectangleと指定されたRectangleの共通部分を計算します。RectangleRectangle. union(Rectangle r)このRectangleと指定されたRectangleの和集合を計算します。Rectangle型のパラメータを持つjava.awtのメソッド 修飾子と型 メソッド 説明 voidRectangle. add(Rectangle r)RectangleをこのRectangleに追加します。protected voidGridBagLayout. adjustForGravity(GridBagConstraints constraints, Rectangle r)x、y、幅、高さフィールドを、制約幾何学的図形およびパッドに応じて正しい値に調整します。protected voidGridBagLayout. AdjustForGravity(GridBagConstraints constraints, Rectangle r)x、y、幅、高さフィールドを、制約幾何学的図形およびパッドに応じて正しい値に調整します。booleanRectangle. contains(Rectangle r)このRectangleに、指定されたRectangleが完全に含まれるかどうかをチェックします。PaintContextColor. createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)塗りつぶした色のフィールド・パターンを生成するために使用されるPaintContextを作成して返します。PaintContextGradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)カラーの線形グラデーション・パターンを生成するために使用されるPaintContextを作成して返します。PaintContextLinearGradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)カラーの線形グラデーション・パターンを生成するために使用されるPaintContextを作成して返します。PaintContextPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)カラー・パターンを生成するために使用されるPaintContextを作成して返します。PaintContextRadialGradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)色の円放射状グラデーション・パターンを生成するために使用されるPaintContextを作成して返します。PaintContextTexturePaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)タイリングされたイメージ・パターンを生成するために使用されるPaintContextを作成して返します。MultiResolutionImageRobot. createMultiResolutionScreenCapture(Rectangle screenRect)スクリーンから読み取るピクセルを含むイメージを作成します。BufferedImageRobot. createScreenCapture(Rectangle screenRect)スクリーンから読み取るピクセルを含むイメージを作成します。RectangleComponent. getBounds(Rectangle rv)このコンポーネントの境界を「戻り値」rvに格納し、rvを返します。RectangleGraphics. getClipBounds(Rectangle r)現在のクリッピング領域の境界の矩形を返します。abstract booleanGraphics2D. hit(Rectangle rect, Shape s, boolean onStroke)指定されたShapeが、デバイス空間内にある指定されたRectangleと交差しているかどうかをチェックします。RectangleRectangle. intersection(Rectangle r)このRectangleと指定されたRectangleの共通部分を計算します。booleanRectangle. intersects(Rectangle r)このRectangleと指定されたRectangleが交差しているかどうかを判定します。voidComponent.AccessibleAWTComponent. setBounds(Rectangle r)このオブジェクトの境界をRectangleオブジェクトの形式で設定します。voidComponent. setBounds(Rectangle r)新しい境界の矩形rに適合するように、このコンポーネントを移動し、サイズ変更します。voidList.AccessibleAWTList.AccessibleAWTListChild. setBounds(Rectangle r)このオブジェクトの境界を、Rectangleオブジェクトの形式で設定します。voidMenuComponent.AccessibleAWTMenuComponent. setBounds(Rectangle r)このオブジェクトの境界をRectangleオブジェクトの形式で設定します。voidRectangle. setBounds(Rectangle r)このRectangleの境界のRectangleを指定されたRectangleに一致するように設定します。voidWindow. setBounds(Rectangle r)新しい境界の矩形rに適合するように、このコンポーネントを移動し、サイズ変更します。voidFrame. setMaximizedBounds(Rectangle bounds)このフレームの最大化された境界を設定します。RectangleRectangle. union(Rectangle r)このRectangleと指定されたRectangleの和集合を計算します。 -
java.awt.eventでのRectangleの使用
Rectangleを返すjava.awt.eventのメソッド 修飾子と型 メソッド 説明 RectanglePaintEvent. getUpdateRect()このイベントに応答して再ペイントされる必要のある領域を表す矩形を返します。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のメソッド 修飾子と型 メソッド 説明 RectangleGlyphVector. getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)指定された位置で指定されたFontRenderContextを使ってGraphics内にこのGlyphVectorがレンダリングされるときのインデックスの位置にあるグリフのピクセル境界を返します。RectangleGlyphVector. getPixelBounds(FontRenderContext renderFRC, float x, float y)指定された位置にある指定されたFontRenderContextを使用してグラフィックス内にレンダリングされるときの、このGlyphVectorのピクセル境界を返します。RectangleTextLayout. getPixelBounds(FontRenderContext frc, float x, float y)指定された位置にある指定されたFontRenderContextを使用してグラフィックス内にレンダリングされるときの、このTextLayoutのピクセル境界を返します。 -
java.awt.geomでのRectangleの使用
Rectangleを返すjava.awt.geomのメソッド 修飾子と型 メソッド 説明 RectangleArea. getBounds()このAreaを完全に囲むバウンディングRectangleを返します。RectangleCubicCurve2D. getBounds()Shapeを完全に囲む整数のRectangleを返します。RectangleLine2D. getBounds()Shapeを完全に囲む整数のRectangleを返します。RectanglePath2D. getBounds()Shapeを完全に囲む整数のRectangleを返します。RectangleQuadCurve2D. getBounds()Shapeを完全に囲む整数のRectangleを返します。RectangleRectangularShape. getBounds()Shapeを完全に囲む整数のRectangleを返します。 -
java.awt.imでのRectangleの使用
Rectangleを返すjava.awt.imのメソッド 修飾子と型 メソッド 説明 RectangleInputMethodRequests. 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のメソッド 修飾子と型 メソッド 説明 RectangleRaster. getBounds()このRasterの境界のRectangleを返します。Rectangle型のパラメータを持つjava.awt.imageのメソッド 修飾子と型 メソッド 説明 WritableRasterRaster. createCompatibleWritableRaster(Rectangle rect)rectによって指定される位置(minX, minY)とサイズ(width, height)、新しいSampleModel、および初期化された新しいDataBufferを持ち、互換性があるWritableRasterを生成します。RasterBufferedImage. getData(Rectangle rect)BufferedImageの任意の領域を計算して返します。RasterRenderedImage. 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のメソッド 修飾子と型 メソッド 説明 voidPropertyEditor. paintValue(Graphics gfx, Rectangle box)値の表現を画面の指定された領域に描画します。voidPropertyEditorSupport. paintValue(Graphics gfx, Rectangle box)値の表現を画面の指定された領域に描画します。 -
javax.accessibilityでのRectangleの使用
Rectangleを返すjavax.accessibilityのメソッド 修飾子と型 メソッド 説明 RectangleAccessibleComponent. getBounds()このオブジェクトの境界をRectangleオブジェクトの形式で取得します。RectangleAccessibleText. getCharacterBounds(int i)文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。RectangleAccessibleExtendedText. getTextBounds(int startIndex, int endIndex)2つのインデックス間のテキストの境界の矩形を返します。Rectangle型のパラメータを持つjavax.accessibilityのメソッド 修飾子と型 メソッド 説明 voidAccessibleComponent. setBounds(Rectangle r)このオブジェクトの境界をRectangleオブジェクトの形式で設定します。 -
javax.imageioでのRectangleの使用
Rectangleとして宣言されているjavax.imageioのフィールド 修飾子と型 フィールド 説明 protected RectangleIIOParam. sourceRegionソース領域、または何も設定されない場合はnullとなります。Rectangleを返すjavax.imageioのメソッド 修飾子と型 メソッド 説明 RectangleIIOParam. 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座標系に変換します。RectangleJComponent. getBounds(Rectangle rv)このコンポーネントの境界を「戻り値」rvに格納し、rvを返します。RectangleJTabbedPane. getBoundsAt(int index)indexのタブの境界を返します。protected RectangleDefaultDesktopManager. getBoundsForIconOf(JInternalFrame f)iconifyFrame()コードはこれを呼び出して、desktopIconの適切な境界を判断します。RectangleJList. getCellBounds(int index0, int index1)2つのインデックスで指定されたセルの範囲を示す、リストの座標系内の境界の矩形を返します。RectangleJTable. getCellRect(int row, int column, boolean includeSpacing)rowとcolumnが交差する位置のセルの矩形を返します。RectangleAbstractButton.AccessibleAbstractButton. getCharacterBounds(int i)文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。RectangleJLabel.AccessibleJLabel. getCharacterBounds(int i)文字列内の指定されたインデックスの位置にある文字のバウンディング・ボックスを返します。RectangleJSpinner.AccessibleJSpinner. getCharacterBounds(int i)文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。RectangleProgressMonitor.AccessibleProgressMonitor. getCharacterBounds(int i)文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。RectangleDebugGraphics. getClipBounds()Graphics.getClipBoundsをオーバーライドします。RectangleRepaintManager. getDirtyRegion(JComponent aComponent)コンポーネントの現在のダーティ・リージョンを返します。static RectangleSwingUtilities. getLocalBounds(Component aComponent)コンポーネントaComponentの矩形(0,0,bounds.width,bounds.height)を返します。RectangleJInternalFrame. getNormalBounds()JInternalFrameが最大化の状態ではない場合、getBounds()を返します。それ以外の場合は、JInternalFrameが復元される境界を返します。RectangleJTree. getPathBounds(TreePath path)指定されたノードが描画されるRectangleを返します。protected RectangleDefaultDesktopManager. getPreviousBounds(JInternalFrame f)コンポーネントの通常の境界をコンポーネント最大化の直前に返します。RectangleJTree. getRowBounds(int row)指定された行にあるノードが描画されるRectangleを返します。RectangleJScrollPane. getViewportBorderBounds()ビュー・ポートのボーダーの境界を返します。RectangleScrollPaneLayout. getViewportBorderBounds(JScrollPane scrollpane)非推奨。JDKのSwing 1.1以降は、JScrollPane.getViewportBorderBounds()に置き換えられています。RectangleJViewport. getViewRect()始点がgetViewPosition、サイズがgetExtentSizeである矩形を返します。RectangleJComponent. 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座標系に変換します。RectangleJComponent. getBounds(Rectangle rv)このコンポーネントの境界を「戻り値」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 booleanSwingUtilities. isRectangleContainingRectangle(Rectangle a, Rectangle b)@{code 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)矩形のx、y、幅、高さの各フィールドを使ってthis.paintComponent()を呼び出します。static voidSwingUtilities. paintComponent(Graphics g, Component c, Container p, Rectangle r)指定されたGraphicsで、コンポーネントをペイントします。voidJComponent. paintImmediately(Rectangle r)指定された領域をすぐにペイントします。voidDefaultListCellRenderer. repaint(Rectangle r)パフォーマンス上の理由でオーバーライドされます。voidJComponent. repaint(Rectangle r)コンポーネントが表示されている場合に、指定された領域をダーティ・リージョン・リストに追加します。voidJComponent. scrollRectToVisible(Rectangle aRect)scrollRectToVisible()メッセージをJComponentの親に転送します。voidJTextField. scrollRectToVisible(Rectangle r)フィールドを左または右にスクロールします。voidJViewport. scrollRectToVisible(Rectangle contentRect)ビュー内のRectangleが可視になるようにビューをスクロールします。voidJInternalFrame. setNormalBounds(Rectangle r)この内部フレームの通常の境界、つまりこの内部フレームが最大化の状態から復元される境界を設定します。protected voidDefaultDesktopManager. setPreviousBounds(JInternalFrame f, Rectangle r)コンポーネントの境界を、最大呼出しの直前に格納します。 -
javax.swing.borderでのRectangleの使用
Rectangleを返すjavax.swing.borderのメソッド 修飾子と型 メソッド 説明 RectangleAbstractBorder. 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の使用
javax.swing.plaf.basicでのRectangleのサブクラス 修飾子と型 クラス 説明 static classBasicTextUI.BasicCaretインタフェースCaretのデフォルト実装。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 RectangleBasicProgressBarUI. getBox(Rectangle r)現在のアニメーション・インデックス用にペイントされるバウンシング・ボックスの位置とサイズをrに格納し、rを返します。protected RectangleBasicTreeUI. getDropLineRect(JTree.DropLocation loc)ドロップ・ラインのアンバウンディング・ボックスを返します。RectangleBasicTreeUI.NodeDimensionsHandler. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)特定のノードのサイズを取得します。RectangleBasicTreeUI. getPathBounds(JTree tree, TreePath path)パスの最後の項目が描画されるラベル部分を囲むRectangleを返します。protected RectangleBasicTabbedPaneUI. getTabBounds(int tabIndex, Rectangle dest)JTabbedPaneコンポーネントの座標空間内の、指定されたタブの境界を返します。RectangleBasicTabbedPaneUI. getTabBounds(JTabbedPane pane, int i)指定されたタブ・インデックスの境界を返します。protected RectangleBasicScrollBarUI. getThumbBounds()つまみの現在のサイズ/位置を返します。protected RectangleBasicScrollBarUI. getTrackBounds()トラックの現在の境界(増分ボタンと減分ボタンの間のスペース - イン・セット)を返します。protected RectangleBasicTextUI. getVisibleEditorRect()ルートViewを渡す割り当てを取得します。RectangleBasicTextUI. modelToView(JTextComponent tc, int pos)非推奨。RectangleBasicTextUI. modelToView(JTextComponent tc, int pos, Position.Bias bias)非推奨。protected RectangleBasicComboBoxUI. rectangleForCurrentValue()現在選択されている項目を描画するために予約されている領域を返します。Rectangle型のパラメータを持つjavax.swing.plaf.basicのメソッド 修飾子と型 メソッド 説明 protected RectangleBasicProgressBarUI. getBox(Rectangle r)現在のアニメーション・インデックス用にペイントされるバウンシング・ボックスの位置とサイズをrに格納し、rを返します。RectangleBasicTreeUI.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 voidBasicMenuItemUI. paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)現在のメニュー項目のテキストをレンダリングします。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のメソッド 修飾子と型 メソッド 説明 RectangleMultiListUI. getCellBounds(JList<?> a, int b, int c)このオブジェクトで処理されている各UIでgetCellBoundsメソッドを呼び出します。RectangleMultiTreeUI. getPathBounds(JTree a, TreePath b)このオブジェクトで処理されている各UIでgetPathBoundsメソッドを呼び出します。RectangleMultiTabbedPaneUI. getTabBounds(JTabbedPane a, int b)このオブジェクトで処理されている各UIでgetTabBoundsメソッドを呼び出します。RectangleMultiTextUI. modelToView(JTextComponent a, int b)非推奨。RectangleMultiTextUI. modelToView(JTextComponent a, int b, Position.Bias c)非推奨。 -
javax.swing.plaf.synthでのRectangleの使用
Rectangle型のパラメータを持つjavax.swing.plaf.synthのメソッド 修飾子と型 メソッド 説明 StringSynthGraphicsUtils. 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のメソッド 修飾子と型 メソッド 説明 RectangleJTableHeader. getHeaderRect(int column)columnにヘッダー・タイルがある矩形を返します。Rectangle型のパラメータを持つjavax.swing.tableのメソッド 修飾子と型 メソッド 説明 voidDefaultTableCellRenderer. repaint(Rectangle r)パフォーマンス上の理由でオーバーライドされます。 -
javax.swing.textでのRectangleの使用
javax.swing.textでのRectangleのサブクラス 修飾子と型 クラス 説明 classDefaultCaretCaretのデフォルトの実装です。Rectangleとして宣言されているjavax.swing.textのフィールド 修飾子と型 フィールド 説明 protected RectangleAsyncBoxView.ChildLocator. childAllocガベージを多く生成することを避けるために、子の割当てに使う形状です。protected RectangleAsyncBoxView.ChildLocator. lastAlloc変更が上方にフラッシュされた場合に、最後に見られる再ペイントのための割当てです。Rectangleを返すjavax.swing.textのメソッド 修飾子と型 メソッド 説明 RectangleJTextComponent.AccessibleJTextComponent. getCharacterBounds(int i)文字列に対する指定されたインデックスで文字のバウンディング・ボックスを決定します。protected RectangleCompositeView. getInsideAllocation(Shape a)ビューに指定された不変の割当てを、内部割当てを表す可変の割当てに変換します(上、左、下、右のインセットで指定された割当ての境界を削除する場合など)。RectangleJTextComponent.AccessibleJTextComponent. getTextBounds(int startIndex, int endIndex)2つのインデックス間のテキストを囲むRectangleを返します。protected RectanglePlainView. lineToRect(Shape a, int line)指定した行を表す矩形を判別します。RectangleJTextComponent. 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 voidDefaultCaret. damage(Rectangle r)キャレットを囲む領域を壊して、新しい位置に再ペイントされるようにします。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 booleanBoxView. isAfter(int x, int y, Rectangle innerAlloc)ある点が、割り当てられた領域のあとにあるかどうかを判定します。protected abstract booleanCompositeView. isAfter(int x, int y, Rectangle alloc)ある点が、矩形範囲の後ろにあるかどうかを判定します。protected booleanBoxView. isBefore(int x, int y, Rectangle innerAlloc)ある点が、割り当てられた領域の前にあるかどうかを判定します。protected abstract booleanCompositeView. isBefore(int x, int y, Rectangle alloc)ある点が、矩形範囲の前にあるかどうかを判定します。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 RectangleAbstractLayoutCache. getBounds(TreePath path, Rectangle placeIn)パスを描画するのに必要な境界を指定する矩形を返します。RectangleFixedHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)パスを描画するのに必要な境界を指定する矩形を返します。RectangleVariableHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)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 RectangleAbstractLayoutCache. getBounds(TreePath path, Rectangle placeIn)パスを描画するのに必要な境界を指定する矩形を返します。RectangleFixedHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)パスを描画するのに必要な境界を指定する矩形を返します。RectangleVariableHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)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内の領域の推奨する幅と高さを返します。voidDefaultTreeCellRenderer. repaint(Rectangle r)パフォーマンス上の理由でオーバーライドされます。