クラスjava.awt.geom.Rectangle2D
の使用
| パッケージ | 説明 |
|---|---|
| java.awt |
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
|
| java.awt.font |
フォント関連のクラスおよびインタフェースを提供します。
|
| java.awt.geom |
2次元幾何学的図形に関連するオブジェクトで処理を定義および実行するJava 2Dクラスを提供します。
|
| java.awt.image |
イメージを作成および修正するためのクラスを提供します。
|
| java.awt.image.renderable |
レンダリングに依存しないイメージを作成するためのクラスおよびインタフェースを提供します。
|
| javax.swing.plaf |
1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
|
| javax.swing.plaf.basic |
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
|
| javax.swing.text |
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
|
-
java.awtでのRectangle2Dの使用
java.awtでのRectangle2Dのサブクラス 修飾子と型 クラス 説明 classRectangleRectangleは、座標空間内のRectangleオブジェクトの左上の点(x,y)、その幅、およびその高さで囲まれた座標空間内の領域を指定します。Rectangle2Dを返すjava.awtのメソッド 修飾子と型 メソッド 説明 Rectangle2DRectangle. createIntersection(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle. createUnion(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DTexturePaint. getAnchorRect()テクスチャ・イメージの位置とサイズを指定するアンカー矩形のコピーを返します。Rectangle2DPolygon. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DRectangle. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DShape. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DFont. getMaxCharBounds(FontRenderContext frc)指定されたFontRenderContextで定義された、最大の境界を持つ文字の境界を返します。Rectangle2DFontMetrics. getMaxCharBounds(Graphics context)指定されたGraphicsコンテキスト内の最大の境界を持つ文字の境界を返します。Rectangle2DFont. getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc)指定されたFontRenderContext内の指定された文字の配列の論理境界を返します。Rectangle2DFont. getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)指定されたFontRenderContext内の指定されたStringの論理境界を返します。Rectangle2DFont. getStringBounds(String str, FontRenderContext frc)指定されたFontRenderContext内の指定されたStringの論理境界を返します。Rectangle2DFont. getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)指定されたFontRenderContext内の指定されたCharacterIteratorでインデックスが付けられた文字の論理境界を返します。Rectangle2DFontMetrics. getStringBounds(char[] chars, int beginIndex, int limit, Graphics context)指定されたGraphicsコンテキスト内の指定された文字の配列の境界を返します。Rectangle2DFontMetrics. getStringBounds(String str, int beginIndex, int limit, Graphics context)指定されたGraphicsコンテキスト内の指定されたStringの境界を返します。Rectangle2DFontMetrics. getStringBounds(String str, Graphics context)指定されたGraphicsコンテキスト内の指定されたStringの境界を返します。Rectangle2DFontMetrics. getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)指定されたGraphicsコンテキスト内の指定されたCharacterIteratorでインデックスが付けられた文字の境界を返します。Rectangle2D型のパラメータを持つjava.awtのメソッド 修飾子と型 メソッド 説明 booleanPolygon. contains(Rectangle2D r)Shapeの内部に、指定されたRectangle2Dが完全に含まれるかどうかをテストします。booleanShape. contains(Rectangle2D r)Shapeの内部に、指定されたRectangle2Dが完全に含まれるかどうかをテストします。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を作成して返します。Rectangle2DRectangle. createIntersection(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle. createUnion(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。booleanPolygon. intersects(Rectangle2D r)Shapeの内部が指定されたRectangle2Dの内部と交差しているかどうかをテストします。booleanShape. intersects(Rectangle2D r)Shapeの内部が指定されたRectangle2Dの内部と交差しているかどうかをテストします。Rectangle2D型のパラメータを持つjava.awtのコンストラクタ コンストラクタ 説明 RadialGradientPaint(Rectangle2D gradientBounds, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod)デフォルトのSRGBカラー・スペースでRadialGradientPaintを構築します。TexturePaint(BufferedImage txtr, Rectangle2D anchor)TexturePaintオブジェクトを構築します。 -
java.awt.fontでのRectangle2Dの使用
Rectangle2Dを返すjava.awt.fontのメソッド 修飾子と型 メソッド 説明 Rectangle2DGraphicAttribute. getBounds()このGraphicAttributeによってレンダリングされる全ビットを囲む、Rectangle2Dを返します。これは、レンダリング位置を基準にして示されます。Rectangle2DImageGraphicAttribute. getBounds()このImageGraphicAttributeによってレンダリングされる全ビットを囲むRectangle2Dを返します。これは、レンダリング位置を基準にして示されます。Rectangle2DShapeGraphicAttribute. getBounds()このShapeGraphicAttributeによってレンダリングされる全ビットを囲む、Rectangle2Dを返します。これは、レンダリング位置を基準にして示されます。Rectangle2DTextLayout. getBounds()このTextLayoutの境界を返します。Rectangle2DGlyphMetrics. getBounds2D()グリフの境界を返します。abstract Rectangle2DGlyphVector. getLogicalBounds()GlyphVectorの論理境界を返します。abstract Rectangle2DGlyphVector. getVisualBounds()このGlyphVectorの視覚境界を返します。視覚境界は、GlyphVectorの輪郭のバウンディング・ボックスです。Rectangle2D型のパラメータを持つjava.awt.fontのメソッド 修飾子と型 メソッド 説明 float[]TextLayout. getCaretInfo(TextHitInfo hit, Rectangle2D bounds)hitに対応するキャレットについての情報を返します。ShapeTextLayout. getCaretShape(TextHitInfo hit, Rectangle2D bounds)指定された境界内の指定されたヒットにあるキャレットを表すShapeを返します。Shape[]TextLayout. getCaretShapes(int offset, Rectangle2D bounds)強いキャレットと弱いキャレットに対応する2つの輪郭線を返します。Shape[]TextLayout. getCaretShapes(int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy)強いキャレットと弱いキャレットに対応する2つの輪郭線を返します。ShapeTextLayout. getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds)指定された範囲の論理的な選択範囲を囲むShapeを、指定されたboundsまで拡張して返します。ShapeTextLayout. getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds)指定された範囲の視覚的な選択範囲を囲む輪郭線を、boundsまで拡張して返します。TextHitInfoTextLayout. hitTestChar(float x, float y, Rectangle2D bounds)指定された点に対応するTextHitInfoを返します。Rectangle2D型のパラメータを持つjava.awt.fontのコンストラクタ コンストラクタ 説明 GlyphMetrics(boolean horizontal, float advanceX, float advanceY, Rectangle2D bounds, byte glyphType)GlyphMetricsオブジェクトを構築します。GlyphMetrics(float advance, Rectangle2D bounds, byte glyphType)GlyphMetricsオブジェクトを構築します。 -
java.awt.geomでのRectangle2Dの使用
java.awt.geomでのRectangle2Dのサブクラス 修飾子と型 クラス 説明 static classRectangle2D.DoubleDoubleクラスは、double座標で指定される矩形を定義します。static classRectangle2D.FloatFloatクラスは、float座標で指定される矩形を定義します。Rectangle2Dを返すjava.awt.geomのメソッド 修飾子と型 メソッド 説明 abstract Rectangle2DRectangle2D. createIntersection(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle2D.Double. createIntersection(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle2D.Float. createIntersection(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。abstract Rectangle2DRectangle2D. createUnion(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle2D.Double. createUnion(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle2D.Float. createUnion(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DArc2D. getBounds2D()弧の高精度表示枠矩形を返します。Rectangle2DArea. getBounds2D()このAreaを完全に囲む高精度バウンディングRectangle2Dを返します。Rectangle2DCubicCurve2D.Double. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DCubicCurve2D.Float. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DEllipse2D.Double. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DEllipse2D.Float. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DLine2D.Double. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DLine2D.Float. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DPath2D.Double. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DPath2D.Float. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DQuadCurve2D.Double. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DQuadCurve2D.Float. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DRectangle2D.Double. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DRectangle2D.Float. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DRectangle2D. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DRoundRectangle2D.Double. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DRoundRectangle2D.Float. getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2DRectangularShape. getFrame()このオブジェクトの形状全体を定義する表示枠Rectangle2Dを返します。protected Rectangle2DArc2D.Double. makeBounds(double x, double y, double w, double h)この弧の表示枠矩形になるように計算されたパラメータを格納するために、適切な精度のRectangle2Dを作成します。protected Rectangle2DArc2D.Float. makeBounds(double x, double y, double w, double h)この弧の表示枠矩形になるように計算されたパラメータを格納するために、適切な精度のRectangle2Dを作成します。protected abstract Rectangle2DArc2D. makeBounds(double x, double y, double w, double h)この弧の表示枠矩形になるように計算されたパラメータを格納するために、適切な精度のRectangle2Dを作成します。Rectangle2D型のパラメータを持つjava.awt.geomのメソッド 修飾子と型 メソッド 説明 voidRectangle2D. add(Rectangle2D r)Rectangle2DオブジェクトをこのRectangle2Dに追加します。booleanArc2D. contains(Rectangle2D r)弧が、指定された矩形を内部に完全に包含しているかどうかを判定します。booleanArea. contains(Rectangle2D r)Shapeの内部に、指定されたRectangle2Dが完全に含まれるかどうかをテストします。booleanCubicCurve2D. contains(Rectangle2D r)Shapeの内部に、指定されたRectangle2Dが完全に含まれるかどうかをテストします。booleanLine2D. contains(Rectangle2D r)このLine2Dの内部が、指定されたRectangle2Dを完全に内包するかどうかを判定します。static booleanPath2D. contains(PathIterator pi, Rectangle2D r)指定されたRectangle2D全体が指定されたPathIteratorの閉じた境界内にあるかどうかを判定します。booleanPath2D. contains(Rectangle2D r)Shapeの内部に、指定されたRectangle2Dが完全に含まれるかどうかをテストします。booleanQuadCurve2D. contains(Rectangle2D r)Shapeの内部に、指定されたRectangle2Dが完全に含まれるかどうかをテストします。booleanRectangularShape. contains(Rectangle2D r)Shapeの内部に、指定されたRectangle2Dが完全に含まれるかどうかをテストします。abstract Rectangle2DRectangle2D. createIntersection(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle2D.Double. createIntersection(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle2D.Float. createIntersection(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。abstract Rectangle2DRectangle2D. createUnion(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle2D.Double. createUnion(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2DRectangle2D.Float. createUnion(Rectangle2D r)このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。static voidRectangle2D. intersect(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)指定された元のRectangle2Dオブジェクトのペアの共通部分をとり、その結果を指定された転送先Rectangle2Dオブジェクトに格納します。booleanArea. intersects(Rectangle2D r)Shapeの内部が指定されたRectangle2Dの内部と交差しているかどうかをテストします。booleanCubicCurve2D. intersects(Rectangle2D r)Shapeの内部が指定されたRectangle2Dの内部と交差しているかどうかをテストします。booleanLine2D. intersects(Rectangle2D r)Shapeの内部が指定されたRectangle2Dの内部と交差しているかどうかをテストします。static booleanPath2D. intersects(PathIterator pi, Rectangle2D r)指定されたPathIteratorの内部が、指定されたRectangle2Dの内部と交差するかどうかを判定します。booleanPath2D. intersects(Rectangle2D r)Shapeの内部が指定されたRectangle2Dの内部と交差しているかどうかをテストします。booleanQuadCurve2D. intersects(Rectangle2D r)Shapeの内部が指定されたRectangle2Dの内部と交差しているかどうかをテストします。booleanRectangularShape. intersects(Rectangle2D r)Shapeの内部が指定されたRectangle2Dの内部と交差しているかどうかをテストします。voidArc2D. setArc(Rectangle2D rect, double angSt, double angExt, int closure)この弧の位置、サイズ、角の大きさ、閉じ方の種類を、指定された値に設定します。voidRectangularShape. setFrame(Rectangle2D r)このShapeの表示枠矩形を、指定されたRectangle2Dに設定します。voidRectangle2D.Double. setRect(Rectangle2D r)このRectangle2Dを、指定されたRectangle2Dと同じになるように設定します。voidRectangle2D.Float. setRect(Rectangle2D r)このRectangle2Dを、指定されたRectangle2Dと同じになるように設定します。voidRectangle2D. setRect(Rectangle2D r)このRectangle2Dを、指定されたRectangle2Dと同じになるように設定します。static voidRectangle2D. union(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)元のRectangle2Dオブジェクトのペアを結合し、その結果を指定された転送先Rectangle2Dオブジェクトに格納します。Rectangle2D型のパラメータを持つjava.awt.geomのコンストラクタ コンストラクタ 説明 Double(Rectangle2D ellipseBounds, double start, double extent, int type)新しい弧を構築し、指定された位置、サイズ、角の大きさ、および閉じ方の種類に初期化します。Float(Rectangle2D ellipseBounds, float start, float extent, int type)新しい弧を構築し、指定された位置、サイズ、角の大きさ、および閉じ方の種類に初期化します。 -
java.awt.imageでのRectangle2Dの使用
Rectangle2Dを返すjava.awt.imageのメソッド 修飾子と型 メソッド 説明 Rectangle2DAffineTransformOp. getBounds2D(BufferedImage src)変換された転送先のバウンディング・ボックスを返します。Rectangle2DAffineTransformOp. getBounds2D(Raster src)変換された転送先のバウンディング・ボックスを返します。Rectangle2DBandCombineOp. getBounds2D(Raster src)変換された転送先のバウンディング・ボックスを返します。Rectangle2DBufferedImageOp. getBounds2D(BufferedImage src)フィルタ処理された転送先イメージのバウンディング・ボックスを返します。Rectangle2DColorConvertOp. getBounds2D(BufferedImage src)この転送元を指定して、転送先のバウンディング・ボックスを返します。Rectangle2DColorConvertOp. getBounds2D(Raster src)この転送元を指定して、転送先のバウンディング・ボックスを返します。Rectangle2DConvolveOp. getBounds2D(BufferedImage src)フィルタ処理された転送先イメージのバウンディング・ボックスを返します。Rectangle2DConvolveOp. getBounds2D(Raster src)フィルタ処理された転送先Rasterのバウンディング・ボックスを返します。Rectangle2DLookupOp. getBounds2D(BufferedImage src)フィルタ処理された転送先イメージのバウンディング・ボックスを返します。Rectangle2DLookupOp. getBounds2D(Raster src)フィルタ処理された転送先Rasterのバウンディング・ボックスを返します。Rectangle2DRasterOp. getBounds2D(Raster src)フィルタ処理された転送先Rasterのバウンディング・ボックスを返します。Rectangle2DRescaleOp. getBounds2D(BufferedImage src)再スケーリングされた転送先イメージのバウンディング・ボックスを返します。Rectangle2DRescaleOp. getBounds2D(Raster src)再スケーリングされた転送先Rasterのバウンディング・ボックスを返します。 -
java.awt.image.renderableでのRectangle2Dの使用
Rectangle2Dを返すjava.awt.image.renderableのメソッド 修飾子と型 メソッド 説明 Rectangle2DContextualRenderedImageFactory. getBounds2D(ParameterBlock paramBlock)レンダリングに依存しないスペースでの、指定されたソースのセットに対して実行される操作の出力のためのバウンディング・ボックスを返します。 -
javax.swing.plafでのRectangle2Dの使用
Rectangle2Dを戻すjavax.swing.plafのメソッド 修飾子と型 メソッド 説明 Rectangle2DTextUI. modelToView2D(JTextComponent t, int pos, Position.Bias bias)モデル内の指定された位置を、ビュー座標体系内の場所に変換します。 -
javax.swing.plaf.basicでのRectangle2Dの使用
javax.swing.plaf.basicでのRectangle2Dのサブクラス 修飾子と型 クラス 説明 static classBasicTextUI.BasicCaretインタフェースCaretのデフォルト実装。 -
javax.swing.textでのRectangle2Dの使用
javax.swing.textでのRectangle2Dのサブクラス 修飾子と型 クラス 説明 classDefaultCaretCaretのデフォルトの実装です。Rectangle2Dを戻すjavax.swing.textのメソッド 修飾子と型 メソッド 説明 Rectangle2DJTextComponent. modelToView2D(int pos)モデル内の指定された位置を、ビュー座標体系内の場所に変換します。