gov.nasa.worldwind.event.DragSelectEvent Maven / Gradle / Ivy
The newest version!
/*
* 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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy