public final class MouseClickEvent extends ClickEvent implements AutoCloseable
ClickEvent
for the mouse.
This class contains the mouse button and the modifiers if any.
Constructor and Description |
---|
MouseClickEvent(Coordinate location,
long clickCount,
ModifierKeys modifierKeys,
MouseButton mouseButton)
Creates a click event for a mouse.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
MouseButton |
getMouseButton() |
getClickCount, getLocation, getModifierKeys
public MouseClickEvent(@NotNull Coordinate location, long clickCount, @NotNull ModifierKeys modifierKeys, @NotNull MouseButton mouseButton)
location
- The location of the event, defined in device independent pixels.clickCount
- The number of clicks.modifierKeys
- The modifiers of the event.mouseButton
- The mouse button of the event.protected void finalize()
finalize
in class ClickEvent
public void close()
close
in interface AutoCloseable
close
in class ClickEvent
@NotNull public MouseButton getMouseButton()