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