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.Float

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

public static class Point2D.Float
extends Point2D
implements Serializable

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

          Constructs and initializes a Point2D with coordinates (0, 0).
Point2D.Float(float x, float 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.
 void
setLocation(float x, float y)

          Sets the location of this Point2D to the specified float 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 float x
The X coordinate of this Point2D.

y

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

Point2D.Float

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


Point2D.Float

public Point2D.Float(float x,
                     float 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

setLocation

public void setLocation(float x,
                        float y)
Sets the location of this Point2D to the specified float coordinates.

Parameters:
x - the new X coordinate of this {@code Point2D}
y - the new Y coordinate of this {@code Point2D}

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/.