public interface MousePressed extends MouseEvent
| Modifier and Type | Interface and Description |
|---|---|
static class |
MousePressed.Builder
A builder of
MousePressed. |
| Modifier and Type | Method and Description |
|---|---|
default MouseButton |
button()
Returns the pressed mouse button.
|
default int |
clickCount()
Returns the count of consecutive clicks that happened in a short amount of time.
|
default KeyModifiers |
keyModifiers()
Returns the keyboard modifiers applied.
|
default Point |
location()
Returns the mouse position relative to the bounds of the browser instance.
|
default Point |
locationOnScreen()
Returns the mouse position relative to the bounds of the screen.
|
static MousePressed.Builder |
newBuilder(Point location)
Creates a new
MousePressed builder with the given required parameters. |
static MousePressed.Builder newBuilder(Point location)
MousePressed builder with the given required parameters.location - the mouse position relative to the bounds of the browser instanceMousePressed.Builder instancedefault Point location()
MouseEventlocation in interface MouseEventdefault Point locationOnScreen()
MouseEventlocationOnScreen in interface MouseEventdefault MouseButton button()
default KeyModifiers keyModifiers()
default int clickCount()