com.sun.j2ee.blueprints.ui.mapviewer
Class MapPoint

java.lang.Object
  extended by com.sun.j2ee.blueprints.ui.mapviewer.MapPoint
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MapMarker

public class MapPoint
extends java.lang.Object
implements java.io.Serializable

Non-visual component that represents an individual geographic point, specified by latitude and longitude properties (measured in degrees).

See Also:
Serialized Form

Constructor Summary
MapPoint()
          Construct an unconfigured MapPoint instance.
MapPoint(double latitude, double longitude)
          Construct a MapPoint instance for the specified geographical coordinates.
 
Method Summary
 double getLatitude()
          Return the geographic latitude of this point.
 double getLongitude()
          Return the geographic longitude of this point.
 void setLatitude(double latitude)
          Set the geographic latitude of this point.
 void setLongitude(double longitude)
          Set the geographic longitude of this point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPoint

public MapPoint()

Construct an unconfigured MapPoint instance.


MapPoint

public MapPoint(double latitude,
                double longitude)

Construct a MapPoint instance for the specified geographical coordinates.

Parameters:
latitude - Latitude (in degrees) for this point
longitude - Longitude (in degrees) for this point
Method Detail

getLatitude

public double getLatitude()

Return the geographic latitude of this point.


setLatitude

public void setLatitude(double latitude)

Set the geographic latitude of this point.

Parameters:
latitude - The new latitude

getLongitude

public double getLongitude()

Return the geographic longitude of this point.


setLongitude

public void setLongitude(double longitude)

Set the geographic longitude of this point.

Parameters:
longitude - The new latitude