public static final class WheelEventParams.Builder
extends java.lang.Object
WheelEventParams
.
Builders are created by invoking WheelEventParams.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 |
---|---|
WheelEventParams |
build()
Returns a new
WheelEventParams instance built from the current state of this
builder. |
WheelEventParams.Builder |
deltaMode(WheelEvent.DeltaMode mode)
Sets the delta units type.
|
WheelEventParams.Builder |
deltaX(double deltaX)
Sets the amount of units to scroll horizontally.
|
WheelEventParams.Builder |
deltaY(double deltaY)
Sets the amount of units to scroll vertically.
|
WheelEventParams.Builder |
mouseEventParams(MouseEventParams params)
Sets the DOM mouse event parameters.
|
public WheelEventParams.Builder mouseEventParams(MouseEventParams params)
params
- the DOM mouse event parameterspublic WheelEventParams.Builder deltaX(double deltaX)
public WheelEventParams.Builder deltaY(double deltaY)
public WheelEventParams.Builder deltaMode(WheelEvent.DeltaMode mode)
public WheelEventParams build()
WheelEventParams
instance built from the current state of this
builder.WheelEventParams
instance