package uk.ac.leeds.ccg.geotools; import java.util.*; /** * ViewerDragedEvent, thrown when a user clicks on a Viewer. * @since 0.7.7.2 2 June 2000 * @author James Macgill */ public class ViewerDragedEvent extends ViewerEvent { private GeoPoint point; /** * Thrown whenever a user clicks in a Viewer window. * * @param source The viewer that generated this event. * @param p A GeoPoint for the real world location coresponding to the point that has just been clicked on. */ public ViewerDragedEvent(Object source,GeoPoint p){ super(source); point = p; } /** * Gets the realworld coordinates of the point clicked on to generate this event. * * @return A GeoPoint for the source coordinate. */ public GeoPoint getLocation(){ return point; } }