com.bbn.openmap.event
Class CenterEvent
java.lang.Object
java.util.EventObject
com.bbn.openmap.event.CenterEvent
- All Implemented Interfaces:
- java.io.Serializable
public class CenterEvent
- extends java.util.EventObject
An event to request the map should recenter to a new latitude and
longitude.
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
CenterEvent(java.lang.Object source,
double lat,
double lon)
Construct a CenterEvent. |
|
Method Summary |
double |
getLatitude()
Get the latitude of the center. |
double |
getLongitude()
Get the latitude of the center. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CenterEvent
public CenterEvent(java.lang.Object source,
double lat,
double lon)
- Construct a CenterEvent.
- Parameters:
source - the source beanlat - float latitude in decimal degreeslon - float longitude in decimal degrees
getLatitude
public double getLatitude()
- Get the latitude of the center.
- Returns:
- float latitude in decimal degrees
getLongitude
public double getLongitude()
- Get the latitude of the center.
- Returns:
- float latitude in decimal degrees
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details