java.lang.Object
java.awt.geom.Point2D
java.awt.geom.Point2D.Double
- すべての実装されたインタフェース:
Serializable,Cloneable
- 含まれているクラス:
- Point2D
public static class Point2D.Double extends Point2D implements Serializable
Doubleクラスは、double精度で指定された点を定義します。- 導入されたバージョン:
- 1.2
- 関連項目:
- 直列化された形式
-
ネストされたクラスのサマリー
-
フィールドのサマリー
-
コンストラクタのサマリー
-
メソッドのサマリー
修飾子と型 メソッド 説明 doublegetX()このPoint2DのX座標をdouble精度で返します。doublegetY()このPoint2DのY座標をdouble精度で返します。voidsetLocation(double x, double y)このPoint2Dの位置を、指定されたdouble型の座標に設定します。StringtoString()このPoint2Dの値を表すStringを返します。クラス java.awt.geom.Point2Dで宣言されたメソッド
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
フィールド詳細
-
コンストラクタの詳細
-
メソッドの詳細
-
getX
public double getX()このPoint2DのX座標をdouble精度で返します。 -
getY
public double getY()このPoint2DのY座標をdouble精度で返します。 -
setLocation
public void setLocation(double x, double y)このPoint2Dの位置を、指定されたdouble型の座標に設定します。- 定義:
setLocation、クラス:Point2D- パラメータ:
x- 次に対する新しいX座標:Point2Dy- 次に対する新しいY座標:Point2D- 導入されたバージョン:
- 1.2
-
toString
public String toString()このPoint2Dの値を表すStringを返します。
-