public static final class MouseReleased.Builder
extends java.lang.Object
MouseReleased
.
Builders are created by invoking MouseReleased.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 |
---|---|
MouseReleased |
build()
Returns a new
MouseReleased instance built from the current state of this
builder. |
MouseReleased.Builder |
button(MouseButton mouseButton)
Sets the button that is released.
|
MouseReleased.Builder |
clickCount(int clickCount)
Sets the count of consecutive clicks that happened in a short amount of time.
|
MouseReleased.Builder |
keyModifiers(KeyModifiers keyModifiers)
Sets the keyboard modifiers applied.
|
MouseReleased.Builder |
locationOnScreen(Point locationOnScreen)
Sets the mouse position relative to the bounds of the screen.
|
MouseReleased.Builder |
mouseModifiers(MouseModifiers mouseModifiers)
Sets the mouse modifiers applied.
|
public MouseReleased.Builder locationOnScreen(Point locationOnScreen)
locationOnScreen
- the mouse positionpublic MouseReleased.Builder button(MouseButton mouseButton)
mouseButton
- the released buttonpublic MouseReleased.Builder keyModifiers(KeyModifiers keyModifiers)
keyModifiers
- the keyboard modifierspublic MouseReleased.Builder mouseModifiers(MouseModifiers mouseModifiers)
mouseModifiers
- the mouse modifierspublic MouseReleased.Builder clickCount(int clickCount)
clickCount
- the count of clicksjava.lang.IllegalArgumentException
- when clickCount
is negativepublic MouseReleased build()
MouseReleased
instance built from the current state of this
builder.MouseReleased
instance