Class MouseClickEvent

java.lang.Object
com.luciad.input.ClickEvent
com.luciad.input.mouse.MouseClickEvent
All Implemented Interfaces:
IInputEvent, AutoCloseable

public final class MouseClickEvent extends ClickEvent implements AutoCloseable
Specialization of the ClickEvent for the mouse.

This class contains the mouse button and the modifiers if any.

  • Constructor Details Link icon

    • MouseClickEvent Link icon

      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 Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class ClickEvent
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class ClickEvent
    • getMouseButton Link icon

      @NotNull public MouseButton getMouseButton()
      Returns the mouse button of the event.
      Returns:
      the mouse button of the event.