java.awt.geom
クラス Point2D.Float
java.lang.Object
|
+--java.awt.geom.Point2D
|
+--java.awt.geom.Point2D.Float
- public static class Point2D.Float
- extends Point2D
Float
クラスは、float 精度で指定された点を定義します。
フィールドの概要 |
float |
x
この Point2D の X 座標です。 |
float |
y
この Point2D の Y 座標です。 |
メソッドの概要 |
double |
getX()
この Point2D の X 座標を double 精度で返します。 |
double |
getY()
この Point2D の Y 座標を double 精度で返します。 |
void |
setLocation(double x,
double y)
この Point2D の位置を、指定された double 型の座標に設定します。 |
void |
setLocation(float x,
float y)
この Point2D の位置を、指定された float 型の座標に設定します。 |
String |
toString()
この Point2D の値を表す String を返します。 |
x
public float x
- この
Point2D
の X 座標です。
- 導入されたバージョン:
- JDK1.2
y
public float y
- この
Point2D
の Y 座標です。
- 導入されたバージョン:
- JDK1.2
Point2D.Float
public Point2D.Float()
- 座標 (0, 0) で
Point2D
を構築および初期化します。
- 導入されたバージョン:
- JDK1.2
Point2D.Float
public Point2D.Float(float x,
float y)
- 指定された座標で
Point2D
を構築および初期化します。
- パラメータ:
x, y
- 新しく構築される Point2D
の座標- 導入されたバージョン:
- JDK1.2
getX
public double getX()
- この
Point2D
の X 座標を double
精度で返します。
- 戻り値:
- この
Point2D
の X 座標 - オーバーライド:
- クラス Point2D 内の getX
- 導入されたバージョン:
- JDK1.2
getY
public double getY()
- この
Point2D
の Y 座標を double
精度で返します。
- 戻り値:
- この
Point2D
の Y 座標 - オーバーライド:
- クラス Point2D 内の getY
- 導入されたバージョン:
- JDK1.2
setLocation
public void setLocation(double x,
double y)
- この
Point2D
の位置を、指定された double
型の座標に設定します。
- パラメータ:
x, y
- この Point2D
の座標- オーバーライド:
- クラス Point2D 内の setLocation
- 導入されたバージョン:
- JDK1.2
setLocation
public void setLocation(float x,
float y)
- この
Point2D
の位置を、指定された float
型の座標に設定します。
- パラメータ:
x, y
- この Point2D
の座標- 導入されたバージョン:
- JDK1.2
toString
public String toString()
- この
Point2D
の値を表す String
を返します。
- 戻り値:
- この
Point2D
の文字列表現 - オーバーライド:
- クラス Object 内の toString
- 導入されたバージョン:
- JDK1.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.