Interface MousePressed

All Superinterfaces:
MouseEvent

public interface MousePressed extends MouseEvent
An event indicating that the mouse button has been pressed.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder of MousePressed.
  • Method Summary

    Modifier and Type
    Method
    Description
    default MouseButton
    Returns the pressed mouse button.
    default int
    Returns the count of consecutive clicks that happened in a short amount of time.
    default KeyModifiers
    Returns the keyboard modifiers applied.
    default Point
    Returns the mouse position relative to the bounds of the browser instance.
    default Point
    Returns the mouse position relative to the bounds of the screen.
    Returns the mouse modifiers applied.
    newBuilder(Point location)
    Creates a new MousePressed builder with the given required parameters.
  • Method Details

    • newBuilder

      static MousePressed.Builder newBuilder(Point location)
      Creates a new MousePressed builder with the given required parameters.
      Parameters:
      location - the mouse position relative to the bounds of the browser instance
      Returns:
      a new MousePressed.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 pressed mouse button.
    • keyModifiers

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

      default MouseModifiers mouseModifiers()
      Returns the mouse modifiers applied.
    • clickCount

      default int clickCount()
      Returns the count of consecutive clicks that happened in a short amount of time.