public static final class MouseMoved.Builder
extends java.lang.Object
MouseMoved.
Builders are created by invoking MouseMoved.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 |
|---|---|
MouseMoved |
build()
Returns a new
MouseMoved instance built from the current state of this builder. |
MouseMoved.Builder |
keyModifiers(KeyModifiers keyModifiers)
Sets the keyboard modifiers applied.
|
MouseMoved.Builder |
locationOnScreen(Point locationOnScreen)
Sets the mouse position relative to the bounds of the screen.
|
MouseMoved.Builder |
mouseModifiers(MouseModifiers mouseModifiers)
Sets the mouse modifiers applied.
|
public MouseMoved.Builder locationOnScreen(Point locationOnScreen)
locationOnScreen - the mouse positionpublic MouseMoved.Builder keyModifiers(KeyModifiers keyModifiers)
keyModifiers - the keyboard modifierspublic MouseMoved.Builder mouseModifiers(MouseModifiers mouseModifiers)
mouseModifiers - the mouse modifierspublic MouseMoved build()
MouseMoved instance built from the current state of this builder.MouseMoved instance