src.gov.nasa.worldwind.event.DragSelectEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwindx Show documentation
Show all versions of worldwindx Show documentation
World Wind is a collection of components that interactively display 3D geographic information within Java applications or applets.
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind.event;
import gov.nasa.worldwind.pick.PickedObjectList;
import java.awt.event.*;
/**
* This class is a specialization of {@link SelectEvent} and includes the pick point screen position of the most recent
* drag event prior to the current one.
*
* @author tag
* @version $Id: DragSelectEvent.java 1171 2013-02-11 21:45:02Z dcollins $
*/
public class DragSelectEvent extends SelectEvent
{
private final java.awt.Point previousPickPoint;
public DragSelectEvent(Object source, String eventAction, MouseEvent mouseEvent, PickedObjectList pickedObjects,
java.awt.Point previousPickPoint)
{
super(source, eventAction, mouseEvent, pickedObjects);
this.previousPickPoint = previousPickPoint;
}
/**
* Indicates the most screen position of the drag event immediately prior to this one.
*
* @return the screen position of the event just prior to this one.
*/
public java.awt.Point getPreviousPickPoint()
{
return this.previousPickPoint;
}
}