public static final class MouseDragged.Builder
extends java.lang.Object
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.
Modifier and Type | Method and Description |
---|---|
MouseDragged |
build()
Returns a new
MouseDragged instance built from the current state of this
builder. |
MouseDragged.Builder |
button(MouseButton mouseButton)
Sets the button that is pressed during the move.
|
MouseDragged.Builder |
keyModifiers(KeyModifiers keyModifiers)
Sets the keyboard modifiers applied.
|
MouseDragged.Builder |
locationOnScreen(Point locationOnScreen)
Sets the mouse position relative to the bounds of the screen.
|
MouseDragged.Builder |
mouseModifiers(MouseModifiers mouseModifiers)
Sets the mouse modifiers applied.
|
public MouseDragged.Builder locationOnScreen(Point locationOnScreen)
locationOnScreen
- the mouse positionpublic MouseDragged.Builder button(MouseButton mouseButton)
mouseButton
- the pressed buttonpublic MouseDragged.Builder keyModifiers(KeyModifiers keyModifiers)
keyModifiers
- the keyboard modifierspublic MouseDragged.Builder mouseModifiers(MouseModifiers mouseModifiers)
mouseModifiers
- the mouse modifierspublic MouseDragged build()
MouseDragged
instance built from the current state of this
builder.MouseDragged
instance