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