java.awt.geom
public static class Point2D.Double extends Point2D
double precision.
Since: 1.2
UNKNOWN: updated to 1.4
| Field Summary | |
|---|---|
| double | x The X coordinate. |
| double | y The Y coordinate. |
| Constructor Summary | |
|---|---|
| Double()
Create a new point at (0,0). | |
| Double(double x, double y)
Create a new point at (x,y).
| |
| Method Summary | |
|---|---|
| double | getX()
Return the x coordinate.
|
| double | getY()
Return the y coordinate.
|
| void | setLocation(double x, double y)
Sets the location of this point.
|
| String | toString()
Returns a string representation of this object. |
Parameters: x the x coordinate y the y coordinate
Returns: the x coordinate
Returns: the y coordinate
Parameters: x the new x coordinate y the new y coordinate
"Point2D.Double[" + x + ", " + y + ']'.
Returns: a string representation of this object