Package com.teamdev.jxbrowser.ui.event
Interface MousePressed
- All Superinterfaces:
MouseEvent
An event indicating that the mouse button has been pressed.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault MouseButton
button()
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
location()
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.default MouseModifiers
Returns the mouse modifiers applied.static MousePressed.Builder
newBuilder
(Point location) Creates a newMousePressed
builder with the given required parameters.
-
Method Details
-
newBuilder
Creates a newMousePressed
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
Description copied from interface:MouseEvent
Returns the mouse position relative to the bounds of the browser instance.- Specified by:
location
in interfaceMouseEvent
-
locationOnScreen
Description copied from interface:MouseEvent
Returns the mouse position relative to the bounds of the screen.- Specified by:
locationOnScreen
in interfaceMouseEvent
-
button
Returns the pressed mouse button. -
keyModifiers
Returns the keyboard modifiers applied. -
mouseModifiers
Returns the mouse modifiers applied. -
clickCount
default int clickCount()Returns the count of consecutive clicks that happened in a short amount of time.
-