Interface MouseDragged

All Superinterfaces:
MouseEvent

public interface MouseDragged extends MouseEvent
An event indicating that the mouse has been moved while the mouse button is pressed.
  • Method Details

    • newBuilder

      static MouseDragged.Builder newBuilder(Point location)
      Creates a new MouseDragged builder with the given required parameters.
      Parameters:
      location - the mouse position relative to the bounds of the browser instance
      Returns:
      a new MouseDragged.Builder instance
    • location

      default Point location()
      Description copied from interface: MouseEvent
      Returns the mouse position relative to the bounds of the browser instance.
      Specified by:
      location in interface MouseEvent
    • locationOnScreen

      default Point locationOnScreen()
      Description copied from interface: MouseEvent
      Returns the mouse position relative to the bounds of the screen.
      Specified by:
      locationOnScreen in interface MouseEvent
    • button

      default MouseButton button()
      Returns the button that is pressed during the move.
    • keyModifiers

      default KeyModifiers keyModifiers()
      Returns the keyboard modifiers applied.
    • mouseModifiers

      default MouseModifiers mouseModifiers()
      Returns the mouse modifiers applied.