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 |
locationOnScreen(Point locationOnScreen)
Sets the mouse position relative to the bounds of the screen.
|
public MouseMoved.Builder locationOnScreen(Point locationOnScreen)
locationOnScreen
- the mouse positionpublic MouseMoved build()
MouseMoved
instance built from the current state of this builder.MouseMoved
instance