- java.lang.Object
-
- java.awt.geom.Point2D
-
- java.awt.geom.Point2D.Double
-
- All Implemented Interfaces:
-
Serializable,Cloneable
- Enclosing class:
- Point2D
public static class Point2D.Double extends Point2D implements Serializable
Double类定义了double精度指定的点。- 从以下版本开始:
- 1.2
- 另请参见:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
-
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 doublegetX()返回double精度的Point2D的X坐标。doublegetY()返回double精度的Point2D的Y坐标。voidsetLocation(double x, double y)将此Point2D的位置设置为指定的double坐标。StringtoString()返回一个表示String的值的Point2D。-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
-
-
-
-
方法详细信息
-
getX
public double getX()
以double精度返回此Point2D的X坐标。
-
getY
public double getY()
返回此的Y坐标Point2D在double精度。
-
setLocation
public void setLocation(double x, double y)将此Point2D的位置设置为指定的double坐标。- Specified by:
-
setLocation中的Point2D - 参数
-
x- 这个Point2D的新X坐标 -
y- 这个Point2D的新的Y坐标 - 从以下版本开始:
- 1.2
-
-