public final class MouseDragEvent extends DragEvent implements AutoCloseable
DragEvent
for the mouse.
This class contains the mouse button and the modifiers if any.
Constructor and Description |
---|
MouseDragEvent(Coordinate location,
EventStatus status,
Coordinate startLocation,
ModifierKeys modifierKeys,
MouseButton mouseButton)
Create a drag event for a mouse.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
MouseButton |
getMouseButton() |
getLocation, getModifierKeys, getStartLocation, getStatus
public MouseDragEvent(@NotNull Coordinate location, @NotNull EventStatus status, @NotNull Coordinate startLocation, @NotNull ModifierKeys modifierKeys, @NotNull MouseButton mouseButton)
location
- The current mouse location, defined in device independent pixels.status
- The event status.startLocation
- The mouse location of the first event for this gesture.modifierKeys
- The modifiers of the event.mouseButton
- The mouse button of the event.public void close()
close
in interface AutoCloseable
close
in class DragEvent
@NotNull public MouseButton getMouseButton()