Java プラットフォーム 1.2

java.awt.geom
クラス Ellipse2D.Double

java.lang.Object
  |
  +--java.awt.geom.RectangularShape
        |
        +--java.awt.geom.Ellipse2D
              |
              +--java.awt.geom.Ellipse2D.Double

public static class Ellipse2D.Double
extends Ellipse2D

Double クラスは、double 精度で指定された楕円を定義します。


クラス java.awt.geom.Ellipse2D から継承した内部クラス
Ellipse2D.Double, Ellipse2D.Float
 
フィールドの概要
 double height
          この Ellipse2D の高さです。
 double width
          この Ellipse2D の幅です。
 double x
          この Ellipse2D の左上隅の x 座標です。
 double y
          この Ellipse2D の左上隅の y 座標です。
 
コンストラクタの概要
Ellipse2D.Double()
          位置 (0, 0)、サイズ (0, 0) に初期化された、新しい Ellipse2D を構築します。
Ellipse2D.Double(double x, double y, double w, double h)
          指定された座標から Ellipse2D を構築して初期化します。
 
メソッドの概要
 Rectangle2D getBounds2D()
          この Ellipse2D の高精度バウンディングボックスを返します。
 double getHeight()
          この Ellipse2D の高さをdouble 精度で返します。
 double getWidth()
          この Ellipse2D の幅をdouble 精度で返します。
 double getX()
          この Ellipse2D の左上隅の X 座標を double 精度で返します。
 double getY()
          この Ellipse2D の左上隅の Y 座標を double 精度で返します。
 boolean isEmpty()
          この Ellipse2D のバウンディングボックスが空かどうかを判定します。
 void setFrame(double x, double y, double w, double h)
          この Ellipse2D の位置とサイズを、指定された double 値に設定します。
 
クラス java.awt.geom.Ellipse2D から継承したメソッド
contains, contains, getPathIterator, intersects
 
クラス java.awt.geom.RectangularShape から継承したメソッド
clone, contains, contains, getBounds, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, getPathIterator, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonal
 
クラス java.lang.Object から継承したメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

x

public double x
この Ellipse2D の左上隅の x 座標です。

y

public double y
この Ellipse2D の左上隅の y 座標です。

width

public double width
この Ellipse2D の幅です。

height

public double height
この Ellipse2D の高さです。
コンストラクタの詳細

Ellipse2D.Double

public Ellipse2D.Double()
位置 (0, 0)、サイズ (0, 0) に初期化された、新しい Ellipse2D を構築します。

Ellipse2D.Double

public Ellipse2D.Double(double x,
                        double y,
                        double w,
                        double h)
指定された座標から Ellipse2D を構築して初期化します。
パラメータ:
x, y - 境界の矩形の座標
w - 矩形の幅
h - 矩形の高さ
メソッドの詳細

getX

public double getX()
この Ellipse2D の左上隅の X 座標を double 精度で返します。
戻り値:
この Ellipse2D のバウンディングボックスの左上隅の X 座標
オーバーライド:
クラス RectangularShape 内の getX

getY

public double getY()
この Ellipse2D の左上隅の Y 座標を double 精度で返します。
戻り値:
この Ellipse2D のバウンディングボックスの左上隅の Y 座標
オーバーライド:
クラス RectangularShape 内の getY

getWidth

public double getWidth()
この Ellipse2D の幅をdouble 精度で返します。
戻り値:
この Ellipse2D の幅
オーバーライド:
クラス RectangularShape 内の getWidth

getHeight

public double getHeight()
この Ellipse2D の高さをdouble 精度で返します。
戻り値:
この Ellipse2D の高さ
オーバーライド:
クラス RectangularShape 内の getHeight

isEmpty

public boolean isEmpty()
この Ellipse2D のバウンディングボックスが空かどうかを判定します。
戻り値:
この Ellipse2D のバウンディングボックスが空の場合は true、そうでない場合は false
オーバーライド:
クラス RectangularShape 内の isEmpty

setFrame

public void setFrame(double x,
                     double y,
                     double w,
                     double h)
この Ellipse2D の位置とサイズを、指定された double 値に設定します。
パラメータ:
x, y - この Ellipse2D のバウンディングボックスの位置を表す座標
w - この Ellipse2D の幅
h - この Ellipse2D の高さ
オーバーライド:
クラス RectangularShape 内の setFrame

getBounds2D

public Rectangle2D getBounds2D()
この Ellipse2D の高精度バウンディングボックスを返します。
戻り値:
この Ellipse2D のバウンディングボックスを表す Rectangle2D

Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.