| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.awt.geom.Point2D
java.awt.geom.Point2D.Float
public static class Point2D.Float
Float クラスは、float 精度で指定された点を定義します。
| 入れ子のクラスの概要 | 
|---|
| クラス java.awt.geom.Point2D から継承された入れ子のクラス/インタフェース | 
|---|
Point2D.Double, Point2D.Float | 
| フィールドの概要 | |
|---|---|
 float | 
x
この Point2D の X 座標です。 | 
 float | 
y
この Point2D の Y 座標です。 | 
| コンストラクタの概要 | |
|---|---|
Point2D.Float()
座標 (0, 0) で Point2D を構築および初期化します。 | 
|
Point2D.Float(float x,
              float y)
指定された座標で Point2D を構築および初期化します。 | 
|
| メソッドの概要 | |
|---|---|
 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 を返します。 | 
| クラス java.awt.geom.Point2D から継承されたメソッド | 
|---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation | 
| クラス java.lang.Object から継承されたメソッド | 
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait | 
| フィールドの詳細 | 
|---|
public float x
Point2D の X 座標です。
public float y
Point2D の Y 座標です。
| コンストラクタの詳細 | 
|---|
public Point2D.Float()
Point2D を構築および初期化します。
public Point2D.Float(float x,
                     float y)
Point2D を構築および初期化します。
x - 新しく構築される Point2D の X 座標y - 新しく構築される Point2D の Y 座標| メソッドの詳細 | 
|---|
public double getX()
Point2D の X 座標を double 精度で返します。
Point2D 内の getXPoint2D の X 座標public double getY()
Point2D の Y 座標を double 精度で返します。
Point2D 内の getYPoint2D の Y 座標
public void setLocation(double x,
                        double y)
Point2D の位置を、指定された double 型の座標に設定します。
Point2D 内の setLocationx - この Point2D の新しい X 座標y - この Point2D の新しい Y 座標
public void setLocation(float x,
                        float y)
Point2D の位置を、指定された float 型の座標に設定します。
x - この Point2D の新しい X 座標y - この Point2D の新しい Y 座標public String toString()
Point2D の値を表す String を返します。
Object 内の toStringPoint2D の文字列表現
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。