|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.Point2D
java.awt.geom.Point2D.Float
public static class Point2D.Float
This class defines a point in float precision.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Point2D |
|---|
Point2D.Double, Point2D.Float |
| Field Summary | |
|---|---|
float |
x
The X coordinate. |
float |
y
The Y coordinate. |
| Constructor Summary | |
|---|---|
Point2D.Float()
Create a new point at (0,0). |
|
Point2D.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. |
| Methods inherited from class java.awt.geom.Point2D |
|---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public float x
public float y
| Constructor Detail |
|---|
public Point2D.Float()
public Point2D.Float(float x,
float y)
x - the x coordinatey - the y coordinate| Method Detail |
|---|
public double getX()
getX in class Point2Dpublic double getY()
getY in class Point2D
public void setLocation(double x,
double y)
setLocation in class Point2Dx - the new x coordinatey - the new y coordinate
public void setLocation(float x,
float y)
x - the new x coordinatey - the new y coordinatepublic String toString()
"Point2D.Float[" + x + ", " + y + ']'.
toString in class ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||