JavaTM Platform
Standard Ed. 6

クラス
java.awt.geom.Rectangle2D の使用

Rectangle2D を使用しているパッケージ
java.awt ユーザーインタフェースの作成およびグラフィックスとイメージのペイント用のすべてのクラスを含みます。 
java.awt.font フォント関連のクラスおよびインタフェースを提供します。 
java.awt.geom 2 次元幾何学的図形に関連するオブジェクトで処理を定義および実行する Java 2D クラスを提供します。 
java.awt.image イメージを作成および修正するためのクラスを提供します。 
java.awt.image.renderable 描画に依存しないイメージを作成するためのクラスおよびインタフェースを提供します。 
javax.swing.plaf.basic 基本 Look & Feel に従って構築されたユーザーインタフェースオブジェクトを提供します。 
javax.swing.text 編集可能なテキストコンポーネントと編集不能なテキストコンポーネントを処理するクラスとインタフェースを提供します。 
 

java.awt での Rectangle2D の使用
 

java.awt での Rectangle2D のサブクラス
 class Rectangle
          Rectangle は、Rectangle オブジェクトの座標空間での左上の点 (x,y)、およびその幅と高さによって囲まれる座標空間内の領域を指定します。
 

Rectangle2D を返す java.awt のメソッド
 Rectangle2D Rectangle.createIntersection(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の共通部分を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle.createUnion(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の和集合を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D TexturePaint.getAnchorRect()
          テクスチャーイメージの位置とサイズを指定するアンカー矩形のコピーを返します。
 Rectangle2D Shape.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Rectangle.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Polygon.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Font.getMaxCharBounds(FontRenderContext frc)
          指定された FontRenderContext で、最大の境界を持つ文字の境界を返します。
 Rectangle2D FontMetrics.getMaxCharBounds(Graphics context)
          指定された Graphics コンテキストで、最大の境界を持つ文字の境界を返します。
 Rectangle2D Font.getStringBounds(char[] chars, int beginIndex, int limit, FontRenderContext frc)
          指定された FontRenderContext の指定された文字配列の論理バウンドを返します。
 Rectangle2D FontMetrics.getStringBounds(char[] chars, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された文字配列の境界を返します。
 Rectangle2D Font.getStringBounds(CharacterIterator ci, int beginIndex, int limit, FontRenderContext frc)
          指定された FontRenderContext の指定された CharacterIterator にインデックス付けされた文字の論理バウンドを返します。
 Rectangle2D FontMetrics.getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された CharacterIterator 内のインデックス付き文字列の境界を返します。
 Rectangle2D Font.getStringBounds(String str, FontRenderContext frc)
          指定された FontRenderContext の指定された String の論理バウンドを返します。
 Rectangle2D FontMetrics.getStringBounds(String str, Graphics context)
          指定された Graphics コンテキストで、指定された String の境界を返します。
 Rectangle2D Font.getStringBounds(String str, int beginIndex, int limit, FontRenderContext frc)
          指定された FontRenderContext の指定された String の論理バウンドを返します。
 Rectangle2D FontMetrics.getStringBounds(String str, int beginIndex, int limit, Graphics context)
          指定された Graphics コンテキストで、指定された String の境界を返します。
 

Rectangle2D 型のパラメータを持つ java.awt のメソッド
 boolean Shape.contains(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。
 boolean Polygon.contains(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。
 PaintContext Color.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 を作成して返します。
 PaintContext SystemColor.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)
          ソリッドカラーパターンを作成するために使用される PaintContext を作成して返します。
 PaintContext TexturePaint.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 を作成して返します。
 PaintContext LinearGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)
          カラーパターンを生成するために使用する PaintContext を作成して返します。
 PaintContext GradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
          カラーパターンを生成するために使用されるコンテキストを作成して返します。
 Rectangle2D Rectangle.createIntersection(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の共通部分を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle.createUnion(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の和集合を表す新しい Rectangle2D オブジェクトを返します。
 boolean Shape.intersects(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D の内部と交差するかどうかを判定します。
 boolean Polygon.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 のメソッド
 Rectangle2D TextLayout.getBounds()
          この TextLayout の境界を返します。
 Rectangle2D ShapeGraphicAttribute.getBounds()
          この ShapeGraphicAttribute によって描画される全ビットを囲む Rectangle2D を返します。
 Rectangle2D ImageGraphicAttribute.getBounds()
          この ImageGraphicAttribute によって描画される全ビットを囲む Rectangle2D を返します。
 Rectangle2D GraphicAttribute.getBounds()
          この GraphicAttribute によって描画される全ビットを囲む、Rectangle2D を返します。
 Rectangle2D GlyphMetrics.getBounds2D()
          グリフの境界を返します。
abstract  Rectangle2D GlyphVector.getLogicalBounds()
          GlyphVector の論理境界を返します。
abstract  Rectangle2D GlyphVector.getVisualBounds()
          この GlyphVector の視覚境界を返します。
 

Rectangle2D 型のパラメータを持つ java.awt.font のメソッド
 float[] TextLayout.getCaretInfo(TextHitInfo hit, Rectangle2D bounds)
          hit に対応するキャレットについての情報を返します。
 Shape 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 つの輪郭線を返します。
 Shape TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds)
          指定された範囲の論理的な選択範囲を囲む Shape を、指定された bounds まで拡張して返します。
 Shape TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds)
          指定された範囲の視覚的な選択範囲を囲む輪郭線を、bounds まで拡張して返します。
 TextHitInfo 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 class Rectangle2D.Double
          Double クラスは、double 座標で指定される矩形を定義します。
static class Rectangle2D.Float
          Float クラスは、float 座標で指定される矩形を定義します。
 

Rectangle2D を返す java.awt.geom のメソッド
abstract  Rectangle2D Rectangle2D.createIntersection(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の共通部分を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.Float.createIntersection(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の共通部分を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.Double.createIntersection(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の共通部分を表す新しい Rectangle2D オブジェクトを返します。
abstract  Rectangle2D Rectangle2D.createUnion(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の和集合を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.Float.createUnion(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の和集合を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.Double.createUnion(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の和集合を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Rectangle2D.Float.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Rectangle2D.Double.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Path2D.Float.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Path2D.Double.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D RoundRectangle2D.Float.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D RoundRectangle2D.Double.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D QuadCurve2D.Float.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D QuadCurve2D.Double.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Line2D.Float.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Line2D.Double.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Ellipse2D.Float.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Ellipse2D.Double.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D CubicCurve2D.Float.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D CubicCurve2D.Double.getBounds2D()
          高精度で getBounds メソッドより精密な、Shape のバウンディングボックスを返します。
 Rectangle2D Area.getBounds2D()
          この Area を完全に囲む高精度バウンディング Rectangle2D を返します。
 Rectangle2D Arc2D.getBounds2D()
          弧の高精度表示枠矩形を返します。
 Rectangle2D RectangularShape.getFrame()
          このオブジェクトの形状全体を定義する表示枠 Rectangle2D を返します。
protected abstract  Rectangle2D Arc2D.makeBounds(double x, double y, double w, double h)
          この弧の表示枠矩形になるように計算されたパラメータを格納するために、適切な精度の Rectangle2D を作成します。
protected  Rectangle2D Arc2D.Float.makeBounds(double x, double y, double w, double h)
          この弧の表示枠矩形になるように計算されたパラメータを格納するために、適切な精度の Rectangle2D を作成します。
protected  Rectangle2D Arc2D.Double.makeBounds(double x, double y, double w, double h)
          この弧の表示枠矩形になるように計算されたパラメータを格納するために、適切な精度の Rectangle2D を作成します。
 

Rectangle2D 型のパラメータを持つ java.awt.geom のメソッド
 void Rectangle2D.add(Rectangle2D r)
          この Rectangle2DRectangle2D オブジェクトを追加します。
static boolean Path2D.contains(PathIterator pi, Rectangle2D r)
          指定された Rectangle2D 全体が指定された PathIterator の閉じた境界内にあるかどうかを判定します。
 boolean RectangularShape.contains(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。
 boolean Path2D.contains(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。
 boolean QuadCurve2D.contains(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。
 boolean Line2D.contains(Rectangle2D r)
          この Line2D の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。
 boolean CubicCurve2D.contains(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。
 boolean Area.contains(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。
 boolean Arc2D.contains(Rectangle2D r)
          弧が、指定された矩形を内部に完全に包含しているかどうかを判定します。
abstract  Rectangle2D Rectangle2D.createIntersection(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の共通部分を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.Float.createIntersection(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の共通部分を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.Double.createIntersection(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の共通部分を表す新しい Rectangle2D オブジェクトを返します。
abstract  Rectangle2D Rectangle2D.createUnion(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の和集合を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.Float.createUnion(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の和集合を表す新しい Rectangle2D オブジェクトを返します。
 Rectangle2D Rectangle2D.Double.createUnion(Rectangle2D r)
          この Rectangle2D と指定された Rectangle2D の和集合を表す新しい Rectangle2D オブジェクトを返します。
static void Rectangle2D.intersect(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)
          指定された元の Rectangle2D オブジェクトのペアの共通部分をとり、その結果を指定された転送先 Rectangle2D オブジェクトに格納します。
static boolean Path2D.intersects(PathIterator pi, Rectangle2D r)
          指定された PathIterator の内部領域が指定された Rectangle2D の内部領域と交差するかどうかを判定します。
 boolean RectangularShape.intersects(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D の内部と交差するかどうかを判定します。
 boolean Path2D.intersects(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D の内部と交差するかどうかを判定します。
 boolean QuadCurve2D.intersects(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D の内部と交差するかどうかを判定します。
 boolean Line2D.intersects(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D の内部と交差するかどうかを判定します。
 boolean CubicCurve2D.intersects(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D の内部と交差するかどうかを判定します。
 boolean Area.intersects(Rectangle2D r)
          Shape の内部が、指定された Rectangle2D の内部と交差するかどうかを判定します。
 void Arc2D.setArc(Rectangle2D rect, double angSt, double angExt, int closure)
          この弧の位置、サイズ、角の大きさ、閉じ方の種類を、指定された値に設定します。
 void RectangularShape.setFrame(Rectangle2D r)
          この Shape の表示枠矩形を、指定された Rectangle2D に設定します。
 void Rectangle2D.setRect(Rectangle2D r)
          この Rectangle2D を、指定された Rectangle2D と同じになるように設定します。
 void Rectangle2D.Float.setRect(Rectangle2D r)
          この Rectangle2D を、指定された Rectangle2D と同じになるように設定します。
 void Rectangle2D.Double.setRect(Rectangle2D r)
          この Rectangle2D を、指定された Rectangle2D と同じになるように設定します。
static void Rectangle2D.union(Rectangle2D src1, Rectangle2D src2, Rectangle2D dest)
          元の Rectangle2D オブジェクトのペアを結合し、その結果を指定された転送先 Rectangle2D オブジェクトに格納します。
 

Rectangle2D 型のパラメータを持つ java.awt.geom のコンストラクタ
Arc2D.Double(Rectangle2D ellipseBounds, double start, double extent, int type)
          新しい弧を構築し、指定された位置、サイズ、角の大きさ、および閉じ方の種類に初期化します。
Arc2D.Float(Rectangle2D ellipseBounds, float start, float extent, int type)
          新しい弧を構築し、指定された位置、サイズ、角の大きさ、および閉じ方の種類に初期化します。
 

java.awt.image での Rectangle2D の使用
 

Rectangle2D を返す java.awt.image のメソッド
 Rectangle2D RescaleOp.getBounds2D(BufferedImage src)
          再スケーリングされた転送先イメージのバウンディングボックスを返します。
 Rectangle2D LookupOp.getBounds2D(BufferedImage src)
          フィルタ処理された転送先イメージのバウンディングボックスを返します。
 Rectangle2D ConvolveOp.getBounds2D(BufferedImage src)
          フィルタ処理された転送先イメージのバウンディングボックスを返します。
 Rectangle2D ColorConvertOp.getBounds2D(BufferedImage src)
          この転送元を指定して、転送先のバウンディングボックスを返します。
 Rectangle2D BufferedImageOp.getBounds2D(BufferedImage src)
          フィルタ処理された転送先イメージのバウンディングボックスを返します。
 Rectangle2D AffineTransformOp.getBounds2D(BufferedImage src)
          変換された転送先のバウンディングボックスを返します。
 Rectangle2D RescaleOp.getBounds2D(Raster src)
          再スケーリングされた転送先 Raster のバウンディングボックスを返します。
 Rectangle2D RasterOp.getBounds2D(Raster src)
          フィルタ処理された転送先 Raster のバウンディングボックスを返します。
 Rectangle2D LookupOp.getBounds2D(Raster src)
          フィルタ処理された転送先 Raster のバウンディングボックスを返します。
 Rectangle2D ConvolveOp.getBounds2D(Raster src)
          フィルタ処理された転送先 Raster のバウンディングボックスを返します。
 Rectangle2D ColorConvertOp.getBounds2D(Raster src)
          この転送元を指定して、転送先のバウンディングボックスを返します。
 Rectangle2D BandCombineOp.getBounds2D(Raster src)
          変換された転送先のバウンディングボックスを返します。
 Rectangle2D AffineTransformOp.getBounds2D(Raster src)
          変換された転送先のバウンディングボックスを返します。
 

java.awt.image.renderable での Rectangle2D の使用
 

Rectangle2D を返す java.awt.image.renderable のメソッド
 Rectangle2D ContextualRenderedImageFactory.getBounds2D(ParameterBlock paramBlock)
          描画に依存しないスペースでの、指定されたソースのセットに対して実行される操作の出力のためのバウンディングボックスを返します。
 

javax.swing.plaf.basic での Rectangle2D の使用
 

javax.swing.plaf.basic での Rectangle2D のサブクラス
static class BasicTextUI.BasicCaret
           
 

javax.swing.text での Rectangle2D の使用
 

javax.swing.text での Rectangle2D のサブクラス
 class DefaultCaret
          Caret のデフォルトの実装です。
 


JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。