public class ClickEvent extends Object implements IInputEvent, AutoCloseable
IInputEvent
that represents a click event.
This class contains the location and the click count. The click count is reset if the interval between two clicks exceeds MouseGestureRecognizer#getMultiClickInterval
.
Modifier | Constructor and Description |
---|---|
protected |
ClickEvent()
Default constructor.
|
|
ClickEvent(Coordinate location,
long clickCount)
Creates an event representing a click.
|
|
ClickEvent(Coordinate location,
long clickCount,
ModifierKeys modifierKeys)
Creates an event representing a click.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
long |
getClickCount() |
Coordinate |
getLocation() |
ModifierKeys |
getModifierKeys() |
protected ClickEvent()
public ClickEvent(@NotNull Coordinate location, long clickCount)
location
- The location of the event, defined in device independent pixelsclickCount
- The number of clicks.public ClickEvent(@NotNull Coordinate location, long clickCount, @NotNull ModifierKeys modifierKeys)
location
- The location of the event, defined in device independent pixelsclickCount
- The number of clicks.modifierKeys
- The modifiers of the event.public void close()
close
in interface AutoCloseable
@NotNull public Coordinate getLocation()
public long getClickCount()
MouseGestureRecognizer#getMultiClickInterval
@NotNull public ModifierKeys getModifierKeys()