public static final class MouseModifiers.Builder
extends java.lang.Object
MouseModifiers
.
Builders are created by invoking MouseModifiers.newBuilder()
. 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 |
---|---|
MouseModifiers |
build()
Returns a new
MouseModifiers instance built from the current state of this
builder. |
MouseModifiers.Builder |
middleButtonDown(boolean flag)
Sets the flag indicating whether the middle mouse button is down.
|
MouseModifiers.Builder |
primaryButtonDown(boolean flag)
Sets the flag indicating whether the primary mouse button is down.
|
MouseModifiers.Builder |
secondaryButtonDown(boolean flag)
Sets the flag indicating whether the secondary mouse button is down.
|
public MouseModifiers.Builder primaryButtonDown(boolean flag)
flag
- a new valuepublic MouseModifiers.Builder middleButtonDown(boolean flag)
flag
- a new valuepublic MouseModifiers.Builder secondaryButtonDown(boolean flag)
flag
- a new valuepublic MouseModifiers build()
MouseModifiers
instance built from the current state of this
builder.MouseModifiers
instance