Java プラットフォーム 1.2

java.awt.geom
クラス Point2D.Double

java.lang.Object
  |
  +--java.awt.geom.Point2D
        |
        +--java.awt.geom.Point2D.Double

public static class Point2D.Double
extends Point2D

Double クラスは、double 精度で指定された点を定義します。


クラス java.awt.geom.Point2D から継承した内部クラス
Point2D.Double, Point2D.Float
 
フィールドの概要
 double x
          この Point2D の X 座標です。
 double y
          この Point2D の Y 座標です。
 
コンストラクタの概要
Point2D.Double()
          座標 (0, 0) で Point2D を構築および初期化します。
Point2D.Double(double x, double y)
          指定された座標で Point2D を構築および初期化します。
 
メソッドの概要
 double getX()
          この Point2D の X 座標を double 精度で返します。
 double getY()
          この Point2D の Y 座標を double 精度で返します。
 void setLocation(double x, double y)
          この Point2D の位置を、指定された double 型の座標に設定します。
 String toString()
          この Point2D の値を表す String を返します。
 
クラス java.awt.geom.Point2D から継承したメソッド
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

x

public double x
この Point2D の X 座標です。
導入されたバージョン:
JDK1.2

y

public double y
この Point2D の Y 座標です。
導入されたバージョン:
JDK1.2
コンストラクタの詳細

Point2D.Double

public Point2D.Double()
座標 (0, 0) で Point2D を構築および初期化します。
導入されたバージョン:
JDK1.2

Point2D.Double

public Point2D.Double(double x,
                      double 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

toString

public String toString()
この Point2D の値を表す String を返します。
戻り値:
この Point2D の文字列表現
オーバーライド:
クラス Object 内の toString
導入されたバージョン:
JDK1.2

Java プラットフォーム 1.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.