Class MouseDragEvent

java.lang.Object
com.luciad.input.DragEvent
com.luciad.input.mouse.MouseDragEvent
All Implemented Interfaces:
IInputEvent, AutoCloseable

public final class MouseDragEvent extends DragEvent implements AutoCloseable
Specialization of the DragEvent for the mouse.

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

  • Constructor Details Link icon

    • MouseDragEvent Link icon

      public MouseDragEvent(@NotNull Coordinate location, @NotNull EventStatus status, @NotNull Coordinate startLocation, @NotNull ModifierKeys modifierKeys, @NotNull MouseButton mouseButton)
      Create a drag event for a mouse.
      Parameters:
      location - The current mouse location, defined in device independent pixels.
      status - The event status.
      startLocation - The mouse location of the first event for this gesture.
      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 DragEvent
    • close Link icon

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

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