Package com.luciad.input.mouse
Class MouseReleasedEvent
java.lang.Object
com.luciad.input.mouse.MouseReleasedEvent
- All Implemented Interfaces:
IInputEvent
,AutoCloseable
Implementation of
IInputEvent
that represents a mouse released.
This class contains the location, the mouse button and the modifiers if any.
-
Constructor Summary
ConstructorDescriptionMouseReleasedEvent
(Coordinate location, ModifierKeys modifierKeys, MouseButton mouseButton) Creates an event representing a mouse button being released. -
Method Summary
-
Constructor Details
-
MouseReleasedEvent
public MouseReleasedEvent(@NotNull Coordinate location, @NotNull ModifierKeys modifierKeys, @NotNull MouseButton mouseButton) Creates an event representing a mouse button being released.- Parameters:
location
- The mouse location, defined in device independent pixelsmodifierKeys
- The modifiers of the event.mouseButton
- The mouse button of the event.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getLocation
Returns the position of the event.It is expressed in device independent pixel coordinates with top-left corner of the map being the (0,0) position.
- Returns:
- the position of the event.
-
getModifierKeys
Returns the modifiers of the event.- Returns:
- the modifiers of the event.
-
getMouseButton
Returns the mouse button of the event.- Returns:
- the mouse button of the event.
-