|
|||||||||
| 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
A point with float coordinates.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Point2D |
|---|
Point2D.Double, Point2D.Float |
| Field Summary | |
|---|---|
float |
x
The x coordinate of the point |
float |
y
The y coordinate of the point |
| Constructor Summary | |
|---|---|
Point2D.Float()
Create a point at (0,0) with float coordinates |
|
Point2D.Float(float x,
float y)
Create a point at (x,y) with float coordinates |
|
| Method Summary | |
|---|---|
double |
getX()
Get the x coordinate as a double |
double |
getY()
Get the y coordinate as a double |
void |
setLocation(double x,
double y)
Set the location of this Point2D using double coordinates |
void |
setLocation(float x,
float y)
Set the location of the point |
String |
toString()
Represent the Point2SD.Float as a String |
| Methods inherited from class java.awt.geom.Point2D |
|---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, setLocation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, 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()
Point2D
getX in class Point2Dpublic double getY()
Point2D
getY in class Point2D
public void setLocation(double x,
double y)
Point2D
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()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||