public static final class KeyModifiers.Builder
extends java.lang.Object
KeyModifiers.
Builders are created by invoking KeyModifiers.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 |
|---|---|
KeyModifiers.Builder |
altDown(boolean flag)
Sets the flag indicating whether the Alt is down.
|
KeyModifiers.Builder |
altGraphDown(boolean flag)
Sets the flag indicating whether the AltGraph is down.
|
KeyModifiers |
build()
Returns a new
KeyModifiers instance built from the current state of this
builder. |
KeyModifiers.Builder |
controlDown(boolean flag)
Sets the flag indicating whether the Control is down.
|
KeyModifiers.Builder |
metaDown(boolean flag)
Sets the flag indicating whether the Meta is down.
|
KeyModifiers.Builder |
shiftDown(boolean flag)
Sets the flag indicating whether the Shift is down.
|
public KeyModifiers.Builder altDown(boolean flag)
flag - a new valuepublic KeyModifiers.Builder altGraphDown(boolean flag)
flag - a new valuepublic KeyModifiers.Builder shiftDown(boolean flag)
flag - a new valuepublic KeyModifiers.Builder controlDown(boolean flag)
flag - a new valuepublic KeyModifiers.Builder metaDown(boolean flag)
flag - a new valuepublic KeyModifiers build()
KeyModifiers instance built from the current state of this
builder.KeyModifiers instance