java.awt.geom
public static class Point2D.Float extends Point2D
float
precision.
Since: 1.2
UNKNOWN: updated to 1.4
Field Summary | |
---|---|
float | x The X coordinate. |
float | y The Y coordinate. |
Constructor Summary | |
---|---|
Float()
Create a new point at (0,0). | |
Float(float x, float 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.
|
void | setLocation(float x, float 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
Parameters: x the new x coordinate y the new y coordinate
"Point2D.Float[" + x + ", " + y + ']'
.
Returns: a string representation of this object