クラスjava.awt.geom.Rectangle2D
の使用
Rectangle2Dを使用するパッケージ
パッケージ
説明
ユーザー・インタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。
フォント関連のクラスおよびインタフェースを提供します。
2次元幾何学的図形に関連するオブジェクトで処理を定義および実行するJava 2Dクラスを提供します。
イメージを作成および修正するためのクラスを提供します。
レンダリングに依存しないイメージを作成するためのクラスおよびインタフェースを提供します。
1つのインタフェースおよび多くのabstractクラスを提供しており、Swingはプラグイン可能なLook & Feel機能を提供するためにこれらを利用します。
基本Look & Feelに従って構築されたユーザー・インタフェース・オブジェクトを提供します。
編集可能なテキスト・コンポーネントと編集不能なテキスト・コンポーネントを処理するクラスとインタフェースを提供します。
-
java.awtでのRectangle2Dの使用
java.awtのRectangle2Dのサブクラス修飾子と型クラス説明classRectangleは、座標空間内のRectangleオブジェクトの左上の点(x,y)、その幅、およびその高さで囲まれた座標空間内の領域を指定します。Rectangle2Dを返すjava.awtのメソッド修飾子と型メソッド説明Rectangle.createIntersection(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle.createUnion(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。TexturePaint.getAnchorRect()テクスチャ・イメージの位置とサイズを指定するアンカー矩形のコピーを返します。Polygon.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Shape.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Font.getMaxCharBounds(FontRenderContext frc) 指定されたFontRenderContextで定義された、最大の境界を持つ文字の境界を返します。FontMetrics.getMaxCharBounds(Graphics context) 指定されたGraphicsコンテキスト内の最大の境界を持つ文字の境界を返します。Font.getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc) 指定されたFontRenderContext内の指定された文字の配列の論理境界を返します。Font.getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc) 指定されたFontRenderContext内の指定されたStringの論理境界を返します。Font.getStringBounds(String str, FontRenderContext frc) 指定されたFontRenderContext内の指定されたStringの論理境界を返します。Font.getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc) 指定されたFontRenderContext内の指定されたCharacterIteratorでインデックスが付けられた文字の論理境界を返します。FontMetrics.getStringBounds(char[] chars, int beginIndex, int limit, Graphics context) 指定されたGraphicsコンテキスト内の指定された文字の配列の境界を返します。FontMetrics.getStringBounds(String str, int beginIndex, int limit, Graphics context) 指定されたGraphicsコンテキスト内の指定されたStringの境界を返します。FontMetrics.getStringBounds(String str, Graphics context) 指定されたGraphicsコンテキスト内の指定されたStringの境界を返します。FontMetrics.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が完全に含まれるかどうかをテストします。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を作成して返します。Rectangle.createIntersection(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle.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のメソッド修飾子と型メソッド説明GraphicAttribute.getBounds()このGraphicAttributeによってレンダリングされる全ビットを囲む、Rectangle2Dを返します。これは、レンダリング位置を基準にして示されます。ImageGraphicAttribute.getBounds()このImageGraphicAttributeによってレンダリングされる全ビットを囲むRectangle2Dを返します。これは、レンダリング位置を基準にして示されます。ShapeGraphicAttribute.getBounds()このShapeGraphicAttributeによってレンダリングされる全ビットを囲む、Rectangle2Dを返します。これは、レンダリング位置を基準にして示されます。TextLayout.getBounds()このTextLayoutの境界を返します。GlyphMetrics.getBounds2D()グリフの境界を返します。abstract Rectangle2DGlyphVector.getLogicalBounds()GlyphVectorの論理境界を返します。abstract Rectangle2DGlyphVector.getVisualBounds()このGlyphVectorの視覚境界を返します。視覚境界は、GlyphVectorの輪郭のバウンディング・ボックスです。型Rectangle2Dのパラメータを持つjava.awt.fontのメソッド修飾子と型メソッド説明float[]TextLayout.getCaretInfo(TextHitInfo hit, Rectangle2D bounds) hitに対応するキャレットについての情報を返します。TextLayout.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つの輪郭線を返します。TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds) 指定された範囲の論理的な選択範囲を囲むShapeを、指定されたboundsまで拡張して返します。TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds) 指定された範囲の視覚的な選択範囲を囲む輪郭線を、boundsまで拡張して返します。TextLayout.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 classDoubleクラスは、double座標で指定される矩形を定義します。static classFloatクラスは、float座標で指定される矩形を定義します。Rectangle2Dを返すjava.awt.geomのメソッド修飾子と型メソッド説明abstract Rectangle2DRectangle2D.createIntersection(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2D.Double.createIntersection(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2D.Float.createIntersection(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。abstract Rectangle2DRectangle2D.createUnion(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2D.Double.createUnion(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2D.Float.createUnion(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Arc2D.getBounds2D()弧の高精度表示枠矩形を返します。Area.getBounds2D()このAreaを完全に囲む高精度バウンディングRectangle2Dを返します。CubicCurve2D.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Ellipse2D.Double.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Ellipse2D.Float.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Line2D.Double.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Line2D.Float.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。final Rectangle2DPath2D.Double.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。final Rectangle2DPath2D.Float.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。QuadCurve2D.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2D.Double.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2D.Float.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。Rectangle2D.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。RoundRectangle2D.Double.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。RoundRectangle2D.Float.getBounds2D()高精度で、かつgetBoundsメソッドより正確なShapeのバウンディング・ボックスを返します。RectangularShape.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の閉じた境界内にあるかどうかを判定します。final 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オブジェクトを返します。Rectangle2D.Double.createIntersection(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。Rectangle2D.Float.createIntersection(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの共通部分を表す新しいRectangle2Dオブジェクトを返します。abstract Rectangle2DRectangle2D.createUnion(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2D.Double.createUnion(Rectangle2D r) このRectangle2Dと指定されたRectangle2Dの和集合を表す新しいRectangle2Dオブジェクトを返します。Rectangle2D.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の内部と交差するかどうかを判定します。final 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のメソッド修飾子と型メソッド説明final Rectangle2DAffineTransformOp.getBounds2D(BufferedImage src) 変換された転送先のバウンディング・ボックスを返します。final Rectangle2DAffineTransformOp.getBounds2D(Raster src) 変換された転送先のバウンディング・ボックスを返します。final Rectangle2DBandCombineOp.getBounds2D(Raster src) 変換された転送先のバウンディング・ボックスを返します。BufferedImageOp.getBounds2D(BufferedImage src) フィルタ処理された転送先イメージのバウンディング・ボックスを返します。final Rectangle2DColorConvertOp.getBounds2D(BufferedImage src) この転送元を指定して、転送先のバウンディング・ボックスを返します。final Rectangle2DColorConvertOp.getBounds2D(Raster src) この転送元を指定して、転送先のバウンディング・ボックスを返します。final Rectangle2DConvolveOp.getBounds2D(BufferedImage src) フィルタ処理された転送先イメージのバウンディング・ボックスを返します。final Rectangle2DConvolveOp.getBounds2D(Raster src) フィルタ処理された転送先Rasterのバウンディング・ボックスを返します。final Rectangle2DLookupOp.getBounds2D(BufferedImage src) フィルタ処理された転送先イメージのバウンディング・ボックスを返します。final Rectangle2DLookupOp.getBounds2D(Raster src) フィルタ処理された転送先Rasterのバウンディング・ボックスを返します。RasterOp.getBounds2D(Raster src) フィルタ処理された転送先Rasterのバウンディング・ボックスを返します。final Rectangle2DRescaleOp.getBounds2D(BufferedImage src) 再スケーリングされた転送先イメージのバウンディング・ボックスを返します。final Rectangle2DRescaleOp.getBounds2D(Raster src) 再スケーリングされた転送先Rasterのバウンディング・ボックスを返します。 -
java.awt.image.renderableでのRectangle2Dの使用
修飾子と型メソッド説明ContextualRenderedImageFactory.getBounds2D(ParameterBlock paramBlock) レンダリングに依存しないスペースでの、指定されたソースのセットに対して実行される操作の出力のためのバウンディング・ボックスを返します。 -
javax.swing.plafでのRectangle2Dの使用
Rectangle2Dを返すjavax.swing.plafのメソッド修飾子と型メソッド説明TextUI.modelToView2D(JTextComponent t, int pos, Position.Bias bias) モデル内の指定された位置を、ビュー座標体系内の場所に変換します。 -
javax.swing.plaf.basicでのRectangle2Dの使用
-
javax.swing.textでのRectangle2Dの使用
javax.swing.textのRectangle2DのサブクラスRectangle2Dを返すjavax.swing.textのメソッド