Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt.geom
Class Point2D.Double  view Point2D.Double download Point2D.Double.java

java.lang.Object
  extended byjava.awt.geom.Point2D
      extended byjava.awt.geom.Point2D.Double
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
Point2D

public static class Point2D.Double
extends Point2D

This class defines a point in double precision.

Since:
1.2

Nested Class Summary
 
Nested classes 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.
 java.lang.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

x

public double x
The X coordinate.


y

public double y
The Y coordinate.

Constructor Detail

Point2D.Double

public Point2D.Double()
Create a new point at (0,0).


Point2D.Double

public Point2D.Double(double x,
                      double y)
Create a new point at (x,y).

Method Detail

getX

public double getX()
Return the x coordinate.

Specified by:
getX in class Point2D

getY

public double getY()
Return the y coordinate.

Specified by:
getY in class Point2D

setLocation

public void setLocation(double x,
                        double y)
Sets the location of this point.

Specified by:
setLocation in class Point2D

toString

public java.lang.String toString()
Returns a string representation of this object. The format is: "Point2D.Double[" + x + ", " + y + ']'.