public class DragEvent extends Object implements IInputEvent, AutoCloseable
IInputEvent
that represents a drag gesture.
This class contains the current mouse location, the start location and the status of the drag gesture.
Modifier | Constructor and Description |
---|---|
protected |
DragEvent()
Default constructor.
|
|
DragEvent(Coordinate location,
EventStatus status,
Coordinate startLocation)
Creates a drag event.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
Coordinate |
getLocation() |
ModifierKeys |
getModifierKeys() |
Coordinate |
getStartLocation() |
EventStatus |
getStatus() |
protected DragEvent()
public DragEvent(@NotNull Coordinate location, @NotNull EventStatus status, @NotNull Coordinate startLocation)
location
- The current event location, defined in device independent pixels.status
- The event status.startLocation
- The location of the first event for this gesture.public void close()
close
in interface AutoCloseable
@NotNull public Coordinate getLocation()
@NotNull public EventStatus getStatus()
@NotNull public Coordinate getStartLocation()
@NotNull public ModifierKeys getModifierKeys()