jp.sf.mapswidgets
Class Point

java.lang.Object
  extended by jp.sf.mapswidgets.Point
All Implemented Interfaces:
java.lang.Cloneable

public final class Point
extends java.lang.Object
implements java.lang.Cloneable

Instances of this class represent a single, 2-dimensional coordinate.

If a Point represents a latitude/longitude, then x is the longitude and y is the latitude, in decimal notation.

Application code does not need to explicitly release the resources managed by each instance when those instances are no longer required, and thus no dispose() method is provided.

See Google Maps API documentation [Class Reference > GPoint].

See Also:
Bounds, Size

Constructor Summary
Point(double x, double y)
          Construct a new instance of this class given the x and y values.
 
Method Summary
 Point clone()
           
 boolean equals(java.lang.Object tested)
           
 double getX()
          Get the x coordinate.
 double getY()
          Get the y coordinate.
 int hashCode()
           
 void setX(double x)
          Set the x coordinate.
 void setY(double y)
          Set the y coordinate.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(double x,
             double y)
Construct a new instance of this class given the x and y values.

Parameters:
x - the x coordinate
y - the y coordinate
Method Detail

clone

public Point clone()
Overrides:
clone in class java.lang.Object

equals

public boolean equals(java.lang.Object tested)
Overrides:
equals in class java.lang.Object

getX

public double getX()
Get the x coordinate.

See Google Maps API documentation [Class Reference > GPoint > x].

Returns:
the x coordinate

getY

public double getY()
Get the y coordinate.

See Google Maps API documentation [Class Reference > GPoint > y].

Returns:
the y coordinate

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setX

public void setX(double x)
Set the x coordinate.

See Google Maps API documentation [Class Reference > GPoint > x].

Parameters:
x - the x coordinate

setY

public void setY(double y)
Set the y coordinate.

See Google Maps API documentation [Class Reference > GPoint > y].

Parameters:
y - the y coordinate

toString

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