com.nutiteq.components
Class Point

java.lang.Object
  extended by com.nutiteq.components.Point

public class Point
extends java.lang.Object

This class implements a point on a map, identified by WGS84 coordinates, longitude (x) and latitude (y). Both values are converted to int by multiplying with 1000000


Constructor Summary
Point(int x, int y)
          Constructor for Point.
 
Method Summary
 boolean equals(java.lang.Object other)
          Check for equality.
 int getX()
           
 int getY()
           
 int hashCode()
           
 java.lang.String toString()
          Non-static toString().
static java.lang.String toString(Point p)
          Convert a point to a string.
 WgsPoint toWgsPoint()
          Not part of public API
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point

public Point(int x,
             int y)
Constructor for Point.

Method Detail

getX

public int getX()

getY

public int getY()

toWgsPoint

public WgsPoint toWgsPoint()
Not part of public API

Returns:
point as double wgs

toString

public static java.lang.String toString(Point p)
Convert a point to a string.

Parameters:
p - point to convert
Returns:
the string "y.yyyyyyN, x.xxxxxxE"

toString

public java.lang.String toString()
Non-static toString().

Overrides:
toString in class java.lang.Object
Returns:
string representation
See Also:
Object.toString()

equals

public boolean equals(java.lang.Object other)
Check for equality.

Overrides:
equals in class java.lang.Object
Parameters:
other - other object to check against
Returns:
true if equal, false otherwise
See Also:
Object.equals(java.lang.Object)

hashCode

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