| 
 | JavaTM 2 Platform Std. Ed. v1.3 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--java.awt.geom.RectangularShape
RectangularShape は、ジオメトリが矩形フレームによって定義される多くの Shape オブジェクトの基底クラスです。このクラスは、それ自体で特定のジオメトリを直接に指定せず、単にすべての Shape オブジェクトの全カテゴリによって継承される操作メソッドを提供します。このクラスが提供する操作メソッドを使用すると、サブクラスがそのジオメトリを定義するための参照を提供する矩形フレームを問い合わせたり、変更したりできます。
| コンストラクタの概要 | |
| protected  | RectangularShape()これは、インスタンスを直接には生成できない抽象クラスです。 | 
| メソッドの概要 | |
|  Object | clone()このオブジェクトと同じクラスで、同じ内容の新しいオブジェクトを作成します。 | 
|  boolean | contains(Point2D p)指定された Point2DがShapeの境界内にあるかどうかを判定します。 | 
|  boolean | contains(Rectangle2D r)Shapeの内部が、指定されたRectangle2Dを完全に内包するかどうかを判定します。 | 
|  Rectangle | getBounds()Shapeのバウンディングボックスを返します。 | 
|  double | getCenterX()Shapeの表示枠矩形の中心の X 座標をdouble精度で返します。 | 
|  double | getCenterY()Shapeの表示枠矩形の中心の Y 座標をdouble精度で返します。 | 
|  Rectangle2D | getFrame()このオブジェクトの形状全体を定義する表示枠 Rectangle2Dを返します。 | 
| abstract  double | getHeight()表示枠矩形の高さを double精度で返します。 | 
|  double | getMaxX()Shapeの表示枠矩形の最大の X 座標をdouble精度で返します。 | 
|  double | getMaxY()Shapeの表示枠矩形の最大の Y 座標をdouble精度で返します。 | 
|  double | getMinX()Shapeの表示枠矩形の最小の X 座標をdouble精度で返します。 | 
|  double | getMinY()Shapeの表示枠矩形の最小の Y 座標をdouble精度で返します。 | 
|  PathIterator | getPathIterator(AffineTransform at,
                double flatness)Shapeオブジェクトの境界に沿って繰り返し処理する反復子オブジェクトを返し、Shapeオブジェクトのジオメトリの輪郭の平坦化されたビューへのアクセスを提供します。 | 
| abstract  double | getWidth()表示枠矩形の幅を double精度で返します。 | 
| abstract  double | getX()表示枠矩形の左上隅の X 座標を double精度で返します。 | 
| abstract  double | getY()表示枠矩形の左上隅の Y 座標を double精度で返します。 | 
|  boolean | intersects(Rectangle2D r)Shapeの内部が、指定されたRectangle2Dの内部と交差するかどうかを判定します。 | 
| abstract  boolean | isEmpty()RectangularShapeが空かどうかを判定します。 | 
| abstract  void | setFrame(double x,
         double y,
         double w,
         double h)この Shapeの表示枠矩形の位置とサイズを、指定された矩形値に設定します。 | 
|  void | setFrame(Point2D loc,
         Dimension2D size)この Shapeの表示枠矩形の位置とサイズを、それぞれ指定されたPoint2DおよびDimension2Dに設定します。 | 
|  void | setFrame(Rectangle2D r)この Shapeの表示枠矩形を、指定されたRectangle2Dに設定します。 | 
|  void | setFrameFromCenter(double centerX,
                   double centerY,
                   double cornerX,
                   double cornerY)この Shapeの表示枠矩形を、指定された中心点および角の点の座標に基づいて設定します。 | 
|  void | setFrameFromCenter(Point2D center,
                   Point2D corner)この Shapeの表示枠矩形を、中心を表すPoint2Dおよび角を表すPoint2Dに基づいて設定します。 | 
|  void | setFrameFromDiagonal(double x1,
                     double y1,
                     double x2,
                     double y2)この Shapeの表示枠矩形の対角線を、指定された 2 つの座標に基づいて設定します。 | 
|  void | setFrameFromDiagonal(Point2D p1,
                     Point2D p2)この Shapeの表示枠矩形の対角線を、指定された 2 つのPoint2Dオブジェクトに基づいて設定します。 | 
| クラス java.lang.Object から継承したメソッド | 
| equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| インタフェース java.awt.Shape から継承したメソッド | 
| contains, contains, getBounds2D, getPathIterator, intersects | 
| コンストラクタの詳細 | 
protected RectangularShape()
Arc2D, 
Ellipse2D, 
Rectangle2D, 
RoundRectangle2D| メソッドの詳細 | 
public abstract double getX()
double 精度で返します。public abstract double getY()
double 精度で返します。public abstract double getWidth()
double 精度で返します。public abstract double getHeight()
double 精度で返します。public double getMinX()
Shape の表示枠矩形の最小の X 座標を double 精度で返します。Shape の表示枠矩形の最小の x 座標public double getMinY()
Shape の表示枠矩形の最小の Y 座標を double 精度で返します。Shape の表示枠矩形の最小の y 座標public double getMaxX()
Shape の表示枠矩形の最大の X 座標を double 精度で返します。Shape の表示枠矩形の最大の x 座標public double getMaxY()
Shape の表示枠矩形の最大の Y 座標を double 精度で返します。Shape の表示枠矩形の最大の y 座標public double getCenterX()
Shape の表示枠矩形の中心の X 座標を double 精度で返します。Shape オブジェクトの表示枠矩形の中心の x 座標public double getCenterY()
Shape の表示枠矩形の中心の Y 座標を double 精度で返します。Shape オブジェクトの表示枠矩形の中心の y 座標public Rectangle2D getFrame()
Rectangle2D を返します。double 座標で指定された Rectangle2Dpublic abstract boolean isEmpty()
RectangularShape が空かどうかを判定します。空の場合は、RectangularShape に領域はありません。RectangularShape が空である場合は true、そうでない場合は false
public abstract void setFrame(double x,
                              double y,
                              double w,
                              double h)
Shape の表示枠矩形の位置とサイズを、指定された矩形値に設定します。表示枠矩形は、RectangularShape のサブクラスがジオメトリを定義するために使用します。x, y - 指定された矩形形状の左上隅の座標w - 指定された矩形形状の幅h - 指定された矩形形状の高さ
public void setFrame(Point2D loc,
                     Dimension2D size)
Shape の表示枠矩形の位置とサイズを、それぞれ指定された Point2D および Dimension2D に設定します。表示枠矩形は、RectangularShape のサブクラスがジオメトリを定義するために使用します。loc - 指定された Point2Dsize - 指定された Dimension2Dpublic void setFrame(Rectangle2D r)
Shape の表示枠矩形を、指定された Rectangle2D に設定します。表示枠矩形は、RectangularShape のサブクラスがジオメトリを定義するために使用します。r - 指定された Rectangle2D
public void setFrameFromDiagonal(double x1,
                                 double y1,
                                 double x2,
                                 double y2)
Shape の表示枠矩形の対角線を、指定された 2 つの座標に基づいて設定します。表示枠矩形は、RectangularShape のサブクラスがジオメトリを定義するために使用します。x1, y1 - 最初に指定された座標x2, y2 - 2 番目に指定された座標
public void setFrameFromDiagonal(Point2D p1,
                                 Point2D p2)
Shape の表示枠矩形の対角線を、指定された 2 つの Point2D オブジェクトに基づいて設定します。表示枠矩形は、RectangularShape のサブクラスがジオメトリを定義するために使用します。p1, p2 - 指定された 2 つの Point2D オブジェクト
public void setFrameFromCenter(double centerX,
                               double centerY,
                               double cornerX,
                               double cornerY)
Shape の表示枠矩形を、指定された中心点および角の点の座標に基づいて設定します。表示枠矩形は、RectangularShape のサブクラスがジオメトリを定義するために使用します。centerX, centerY - 中心点の座標cornerX, cornerY - 角の点の座標
public void setFrameFromCenter(Point2D center,
                               Point2D corner)
Shape の表示枠矩形を、中心を表す Point2D および角を表す Point2D に基づいて設定します。表示枠矩形は、RectangularShape のサブクラスがジオメトリを定義するために使用します。center - 指定された中心の Point2Dcorner - 指定された角の Point2Dpublic boolean contains(Point2D p)
Point2D が Shape の境界内にあるかどうかを判定します。Shape 内の containsp - 指定された Point2DPoint2D が Shape オブジェクトの境界内にある場合は true、そうでない場合は falsepublic boolean intersects(Rectangle2D r)
Shape の内部が、指定された Rectangle2D の内部と交差するかどうかを判定します。Shape 内の intersectsr - 指定された Rectangle2DShape と指定された Rectangle2D とが交差する場合は true、そうでない場合は falsepublic boolean contains(Rectangle2D r)
Shape の内部が、指定された Rectangle2D を完全に内包するかどうかを判定します。Shape 内の containsr - 指定された Rectangle2DShape が指定された Rectangle2D を完全に内包する場合は true、そうでない場合は falsepublic Rectangle getBounds()
Shape のバウンディングボックスを返します。Shape 内の getBoundsShape の境界を表す Rectangle オブジェクト
public PathIterator getPathIterator(AffineTransform at,
                                    double flatness)
Shape オブジェクトの境界に沿って繰り返し処理する反復子オブジェクトを返し、Shape オブジェクトのジオメトリの輪郭の平坦化されたビューへのアクセスを提供します。
反復子によって返されるのは、SEG_MOVETO、SEG_LINETO、および SEG_CLOSE のポイントタイプだけです。
曲線セグメントの分割の量は、平坦化されない変換を受けた曲線上の点が、返される平坦化されたパスセグメントからもっとも離れる距離を指定する flatness パラメータによって制御されます。任意で AffineTransform を指定でき、その場合は繰り返し処理で返される座標はそれに応じて変換されます。
Shape 内の getPathIteratorat - 繰り返し処理で返される座標に適用されるオプションの AffineTransform。変換されていない座標が必要な場合は nullflatness - 曲線セグメントを作成するために使用されるラインセグメントが、元の曲線上の任意の点から離れることができる最大の距離Shape オブジェクトの平坦化されたジオメトリへのアクセスを提供する PathIterator オブジェクトpublic Object clone()
Object 内の cloneOutOfMemoryError - 十分なメモリがない場合Cloneable| 
 | JavaTM 2 Platform Std. Ed. v1.3 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
 Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
 Palo Alto, California, 94303, U.S.A.  All Rights Reserved.