クラスPoint2D.Double
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
- 関連項目:
-
ネストされたクラスのサマリー
クラスPoint2Dで宣言されたネストされたクラス/インタフェース
Point2D.Double, Point2D.Float修飾子と型クラス説明static classDoubleクラスは、double精度で指定された点を定義します。static classFloatクラスは、float精度で指定された点を定義します。 -
フィールドのサマリー
フィールド -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明doublegetX()このPoint2DのX座標をdouble精度で返します。doublegetY()このPoint2DのY座標をdouble精度で返します。voidsetLocation(double x, double y) このPoint2Dの位置を、指定されたdouble型の座標に設定します。toString()このPoint2Dの値を表すStringを返します。クラスで宣言されたメソッド Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation修飾子と型メソッド説明clone()このオブジェクトと同じクラスで、同じ内容の新しいオブジェクトを作成します。doubledistance(double px, double py) このPoint2Dから指定された点までの距離を返します。static doubledistance(double x1, double y1, double x2, double y2) 2つの点の間の距離を返します。doubleこのPoint2Dから指定されたPoint2Dまでの距離を返します。doubledistanceSq(double px, double py) このPoint2Dから指定された点までの距離の2乗を返します。static doubledistanceSq(double x1, double y1, double x2, double y2) 2つの点の間の距離の2乗を返します。doubledistanceSq(Point2D pt) このPoint2Dから指定されたPoint2Dまでの距離の2乗を返します。boolean2つの点が等しいかどうかを判定します。inthashCode()このPoint2Dのハッシュ・コードを返します。voidこのPoint2Dの位置を、指定されたPoint2Dオブジェクトと同じ座標に設定します。クラスオブジェクトで宣言されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait修飾子と型メソッド説明protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
フィールド詳細
-
x
public double xこのPoint2DのX座標。- 導入されたバージョン:
- 1.2
-
y
public double yこのPoint2DのY座標。- 導入されたバージョン:
- 1.2
-
-
コンストラクタの詳細
-
Double
public Double()座標(0, 0)でPoint2Dを構築および初期化します。- 導入されたバージョン:
- 1.2
-
Double
public Double(double x, double y) 指定された座標でPoint2Dを構築および初期化します。- パラメータ:
x- 新しく構築されるPoint2DのX座標y- 新しく構築されるPoint2DのY座標- 導入されたバージョン:
- 1.2
-
-
メソッドの詳細
-
getX
-
getY
-
setLocation
public void setLocation(double x, double y) このPoint2Dの位置を、指定されたdouble型の座標に設定します。- 定義:
setLocation、クラスPoint2D- パラメータ:
x-Point2Dの新しいX座標y- このPoint2Dの新しいY座標- 導入されたバージョン:
- 1.2
-
toString
-