Package com.luciad.input.mouse
Class MouseClickEvent
java.lang.Object
com.luciad.input.ClickEvent
com.luciad.input.mouse.MouseClickEvent
- All Implemented Interfaces:
IInputEvent
,AutoCloseable
Specialization of the
ClickEvent
for the mouse.
This class contains the mouse button and the modifiers if any.
-
Constructor Summary
ConstructorDescriptionMouseClickEvent
(Coordinate location, long clickCount, ModifierKeys modifierKeys, MouseButton mouseButton) Creates a click event for a mouse. -
Method Summary
Methods inherited from class com.luciad.input.ClickEvent
getClickCount, getLocation, getModifierKeys
-
Constructor Details
-
MouseClickEvent
public MouseClickEvent(@NotNull Coordinate location, long clickCount, @NotNull ModifierKeys modifierKeys, @NotNull MouseButton mouseButton) Creates a click event for a mouse.- Parameters:
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.
-
-
Method Details
-
finalize
protected void finalize()- Overrides:
finalize
in classClickEvent
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classClickEvent
-
getMouseButton
Returns the mouse button of the event.- Returns:
- the mouse button of the event.
-