Package com.luciad.input
Class DragEvent
java.lang.Object
com.luciad.input.DragEvent
- All Implemented Interfaces:
IInputEvent
,AutoCloseable
- Direct Known Subclasses:
MouseDragEvent
,TouchDragEvent
Implementation of
IInputEvent
that represents a drag gesture.
This class contains the current mouse location, the start location and the status of the drag gesture.
-
Constructor Summary
ConstructorDescriptionDragEvent
(Coordinate location, EventStatus status, Coordinate startLocation) Creates a drag event. -
Method Summary
-
Constructor Details
-
DragEvent
public DragEvent(@NotNull Coordinate location, @NotNull EventStatus status, @NotNull Coordinate startLocation) Creates a drag event.- Parameters:
location
- The current event location, defined in device independent pixels.status
- The event status.startLocation
- The location of the first event for this gesture.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getLocation
Returns the position of the event.The location is defined in device independent pixel coordinates with top-left corner of the map being the (0,0) position.
- Returns:
- the position of the event.
-
getStatus
Returns the status of the event.- Returns:
- the status of the event.
-
getStartLocation
Returns the initial location of the entire drag gesture.The location is defined in screen coordinates with top-left corner of the map being the (0,0) position.
- Returns:
- the initial location of the entire drag gesture.
-
getModifierKeys
Returns the modifier keys.- Returns:
- the modifier keys.
-