no.geodata.maputil
Class MapPoint

java.lang.Object
  extended by no.geodata.maputil.MapPoint

public class MapPoint
extends Object

Class that defines a map point.


Constructor Summary
MapPoint()
          Creates a new instance of MapPoint.
MapPoint(double x, double y)
          Creates a new instance of MapPoint.
 
Method Summary
 int getId()
          Gets single value.
 long getPxX()
          Gets single value.
 long getPxY()
          Gets single value.
 double getX()
          Gets single value.
 double getY()
          Gets a single value.
 void setId(int id)
          Sets single value.
 void setPxX(long pxX)
          Sets single value.
 void setPxY(long pxY)
          Sets single value.
 void setX(double x)
          Sets single value.
 void setY(double y)
          Sets a single value.
 String toString()
          Gets a string representation of the map point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapPoint

public MapPoint()
Creates a new instance of MapPoint.


MapPoint

public MapPoint(double x,
                double y)
Creates a new instance of MapPoint.

Parameters:
x - X-coordinate (longitude) for the map point.
y - Y-coordinate (latitude) for the map point.
Method Detail

setX

public void setX(double x)
Sets single value.

Parameters:
x - X-coordinate (longitude) for the map point.

getX

public double getX()
Gets single value.

Parameters:
y - X-coordinate (longitude) for the map point.

setY

public void setY(double y)
Sets a single value.


getY

public double getY()
Gets a single value.

Returns:
X-coordinate (longitude) for the map point.

setPxX

public void setPxX(long pxX)
Sets single value.

Parameters:
pxX - imagepixel-coordinate for the map point.

getPxX

public long getPxX()
Gets single value.

Parameters:
pxX - imagepixel-coordinate for the map point.

setPxY

public void setPxY(long pxY)
Sets single value.

Parameters:
pxY - imagepixel-coordinate for the map point.

getPxY

public long getPxY()
Gets single value.

Parameters:
pxY - imagepixel-coordinate for the map point.

setId

public void setId(int id)
Sets single value.

Parameters:
id - identity number.

getId

public int getId()
Gets single value.

Returns:
id identity number.

toString

public String toString()
Gets a string representation of the map point.

Overrides:
toString in class Object
Returns:
x @ y.


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.