This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.awt.geom
class Point2D.Double

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

public static class Point2D.Double
extends Point2D
implements Serializable

The Double class defines a point specified 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 of this Point2D.
 double y
          The Y coordinate of this Point2D.
 
Constructor Summary

          Constructs and initializes a Point2D with coordinates (0, 0).
Point2D.Double(double x, double y)

          Constructs and initializes a Point2D with the specified coordinates.
 
Method Summary
 double

          Returns the X coordinate of this Point2D in double precision.
 double

          Returns the Y coordinate of this Point2D in double precision.
 void
setLocation(double x, double y)

          Sets the location of this Point2D to the specified double coordinates.
 String

          Returns a String that represents the value of this Point2D.
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, getX, getY, hashCode, setLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public double x
The X coordinate of this Point2D.

y

public double y
The Y coordinate of this Point2D.
Constructor Detail

Point2D.Double

public Point2D.Double()
Constructs and initializes a Point2D with coordinates (0, 0).


Point2D.Double

public Point2D.Double(double x,
                      double y)
Constructs and initializes a Point2D with the specified coordinates.

Parameters:
x - the X coordinate of the newly constructed Point2D
y - the Y coordinate of the newly constructed Point2D
Method Detail

getX

public double getX()
{@inheritDoc}

Overrides:
getX in class Point2D

getY

public double getY()
{@inheritDoc}

Overrides:
getY in class Point2D

setLocation

public void setLocation(double x,
                        double y)
{@inheritDoc}

Overrides:
setLocation in class Point2D
Parameters:
x
y

toString

public String toString()
Returns a String that represents the value of this Point2D.

Overrides:
toString in class Object
Returns:
a string representation of this Point2D.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.