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

Quick Search    Search Deep

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

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

public static class Point2D.Float
extends Point2D

This class defines a point in float precision.

Since:
1.2

Nested Class Summary
 
Nested classes inherited from class java.awt.geom.Point2D
Point2D.Double, Point2D.Float
 
Field Summary
 float x
          The X coordinate.
 float y
          The Y coordinate.
 
Constructor Summary
Point2D.Float()
          Create a new point at (0,0).
Point2D.Float(float x, float 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.
 void setLocation(float x, float 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 float x
The X coordinate.


y

public float y
The Y coordinate.

Constructor Detail

Point2D.Float

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


Point2D.Float

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

setLocation

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


toString

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