JavaTM 2 Platform
Standard Ed. 5.0

java.awt.geom
クラス Ellipse2D.Double

java.lang.Object
  上位を拡張 java.awt.geom.RectangularShape
      上位を拡張 java.awt.geom.Ellipse2D
          上位を拡張 java.awt.geom.Ellipse2D.Double
すべての実装されたインタフェース:
Shape, Cloneable
含まれているクラス:
Ellipse2D

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()
          新しい Ellipse2D を構築し、位置 (0, 0) およびサイズ (0, 0) に初期化します。
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()
新しい Ellipse2D を構築し、位置 (0, 0) およびサイズ (0, 0) に初期化します。


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 精度で返します。

定義:
クラス RectangularShape 内の getX
戻り値:
Ellipse2D のバウンディングボックスの左上隅の X 座標

getY

public double getY()
Ellipse2D の左上隅の Y 座標を double 精度で返します。

定義:
クラス RectangularShape 内の getY
戻り値:
Ellipse2D のバウンディングボックスの左上隅の Y 座標

getWidth

public double getWidth()
この Ellipse2D の幅を double 精度で返します。

定義:
クラス RectangularShape 内の getWidth
戻り値:
この Ellipse2D の幅

getHeight

public double getHeight()
この Ellipse2D の高さを double 精度で返します。

定義:
クラス RectangularShape 内の getHeight
戻り値:
この Ellipse2D の高さ

isEmpty

public boolean isEmpty()
この Ellipse2D のバウンディングボックスが空であるかどうかを判断します。

定義:
クラス RectangularShape 内の isEmpty
戻り値:
この Ellipse2D のバウンディングボックスが空である場合は true、そうでない場合は false

setFrame

public void setFrame(double x,
                     double y,
                     double w,
                     double h)
この Ellipse2D の位置およびサイズを、指定された double 型の値に設定します。

定義:
クラス RectangularShape 内の setFrame
パラメータ:
x, y - この Ellipse2D のバウンディングボックスの位置を設定する指定された座標
w - この Ellipse2D に設定する幅
h - この Ellipse2D に設定する高さ
関連項目:
RectangularShape.getFrame()

getBounds2D

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

戻り値:
この Ellipse2D のバウンディングボックスである Rectangle2D
関連項目:
Shape.getBounds()

JavaTM 2 Platform
Standard Ed. 5.0

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

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