|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object java.awt.geom.RectangularShape java.awt.geom.Ellipse2D java.awt.geom.Ellipse2D.Float
public static class Ellipse2D.Float
Float
クラスは、float
精度で指定された楕円を定義します。
入れ子のクラスの概要 |
---|
クラス java.awt.geom.Ellipse2D から継承された入れ子のクラス/インタフェース |
---|
Ellipse2D.Double, Ellipse2D.Float |
フィールドの概要 | |
---|---|
float |
height
Ellipse2D の高さです。 |
float |
width
Ellipse2D の幅です。 |
float |
x
Ellipse2D の左上隅の x 座標です。 |
float |
y
Ellipse2D の左上隅の y 座標です。 |
コンストラクタの概要 | |
---|---|
Ellipse2D.Float()
新しい Ellipse2D を構築し、位置 (0, 0) およびサイズ (0, 0) に初期化します。 |
|
Ellipse2D.Float(float x,
float y,
float w,
float 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 型の値に設定します。 |
void |
setFrame(float x,
float y,
float w,
float h)
この Ellipse2D の位置およびサイズを、指定された float 型の値に設定します。 |
クラス 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 |
フィールドの詳細 |
---|
public float x
Ellipse2D
の左上隅の x 座標です。
public float y
Ellipse2D
の左上隅の y 座標です。
public float width
Ellipse2D
の幅です。
public float height
Ellipse2D
の高さです。
コンストラクタの詳細 |
---|
public Ellipse2D.Float()
Ellipse2D
を構築し、位置 (0, 0) およびサイズ (0, 0) に初期化します。
public Ellipse2D.Float(float x, float y, float w, float h)
Ellipse2D
を構築および初期化します。
x, y
- 境界の矩形の座標w
- 境界の矩形領域の幅h
- 境界の矩形領域の高さメソッドの詳細 |
---|
public double getX()
Ellipse2D
の左上隅の X 座標を double
精度で返します。
RectangularShape
内の getX
Ellipse2D
の境界の矩形の左上隅の X 座標public double getY()
Ellipse2D
の左上隅の Y 座標を double
精度で返します。
RectangularShape
内の getY
Ellipse2D
の境界の矩形の左上隅の Y 座標public double getWidth()
Ellipse2D
の幅を double
精度で返します。
RectangularShape
内の getWidth
Ellipse2D
の幅public double getHeight()
Ellipse2D
の高さを double
精度で返します。
RectangularShape
内の getHeight
Ellipse2D
の高さpublic boolean isEmpty()
Ellipse2D
のバウンディングボックスが空であるかどうかを判断します。
RectangularShape
内の isEmpty
Ellipse2D
の境界の矩形が空である場合は true
、そうでない場合は false
public void setFrame(float x, float y, float w, float h)
Ellipse2D
の位置およびサイズを、指定された float
型の値に設定します。
x, y
- この Ellipse2D
のバウンディングボックスの位置を設定する指定された座標w
- この Ellipse2D
の幅に設定する指定された幅h
- +この Ellipse2D
の高さに設定する指定された高さpublic void setFrame(double x, double y, double w, double h)
Ellipse2D
の位置およびサイズを、指定された double
型の値に設定します。
RectangularShape
内の setFrame
x, y
- この Ellipse2D
のバウンディングボックスの位置を設定する指定された座標w
- この Ellipse2D
の幅に設定する指定された幅h
- この Ellipse2D
の高さに設定する指定された高さRectangularShape.getFrame()
public Rectangle2D getBounds2D()
Ellipse2D
の高精度バウンディングボックスを返します。
Ellipse2D
のバウンディングボックスである Rectangle2D
Shape.getBounds()
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。