Package com.teamdev.jxbrowser.ui.event
Class MouseDragged.Builder
java.lang.Object
com.teamdev.jxbrowser.ui.event.MouseDragged.Builder
- Enclosing interface:
- MouseDragged
A builder of
MouseDragged
.
Builders are created by invoking MouseDragged.newBuilder(Point)
.
Each of the setter methods modifies the state of the builder and returns the same instance.
Builders are not thread-safe and should not be used concurrently from multiple threads
without external synchronization.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newMouseDragged
instance built from the current state of this builder.button
(MouseButton mouseButton) Sets the button that is pressed during the move.keyModifiers
(KeyModifiers keyModifiers) Sets the keyboard modifiers applied.locationOnScreen
(Point locationOnScreen) Sets the mouse position relative to the bounds of the screen.mouseModifiers
(MouseModifiers mouseModifiers) Sets the mouse modifiers applied.
-
Method Details
-
locationOnScreen
Sets the mouse position relative to the bounds of the screen.- Parameters:
locationOnScreen
- the mouse position- Returns:
- this builder
-
button
Sets the button that is pressed during the move.- Parameters:
mouseButton
- the pressed button- Returns:
- this builder
-
keyModifiers
Sets the keyboard modifiers applied.- Parameters:
keyModifiers
- the keyboard modifiers- Returns:
- this builder
-
mouseModifiers
Sets the mouse modifiers applied.- Parameters:
mouseModifiers
- the mouse modifiers- Returns:
- this builder
-
build
Returns a newMouseDragged
instance built from the current state of this builder.- Returns:
- a new
MouseDragged
instance
-