fang
Class Coordinate

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by fang.Coordinate
All Implemented Interfaces:
java.lang.Cloneable

public class Coordinate
extends java.awt.geom.Point2D

This class represents an (x, y) coordinate within some space.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Constructor Summary
Coordinate()
           
Coordinate(Coordinate other)
           
Coordinate(double x, double y)
           
Coordinate(java.awt.geom.Point2D other)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 double getX()
           
 double getY()
           
 void setLocation(double x, double y)
           
 java.lang.String toString()
           
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Coordinate

public Coordinate()

Coordinate

public Coordinate(double x,
                  double y)

Coordinate

public Coordinate(Coordinate other)

Coordinate

public Coordinate(java.awt.geom.Point2D other)
Method Detail

getX

public double getX()
Specified by:
getX in class java.awt.geom.Point2D

getY

public double getY()
Specified by:
getY in class java.awt.geom.Point2D

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.awt.geom.Point2D

setLocation

public void setLocation(double x,
                        double y)
Specified by:
setLocation in class java.awt.geom.Point2D

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object