Package com.teamdev.jxbrowser.ui.event
Class TouchMoved.Builder
java.lang.Object
com.teamdev.jxbrowser.ui.event.TouchMoved.Builder
- Enclosing interface:
- TouchMoved
A builder of
TouchMoved.
Builders are created by invoking TouchMoved.newBuilder(List)}.
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newTouchMovedinstance on top of this builder.changedTouches(List<TouchPoint> points) Sets the touch points that have changed since the last touch event.keyModifiers(KeyModifiers keyModifiers) Sets the keyboard modifiers to apply.targetTouches(List<TouchPoint> points) Sets the touch points that started on the target element of this event.
-
Method Details
-
changedTouches
Sets the touch points that have changed since the last touch event.- Parameters:
points- the touch points- Returns:
- this builder
-
targetTouches
Sets the touch points that started on the target element of this event.- Parameters:
points- the touch points- Returns:
- this builder
-
keyModifiers
Sets the keyboard modifiers to apply.- Parameters:
keyModifiers- the keyboard modifiers- Returns:
- this builder
-
build
Creates a newTouchMovedinstance on top of this builder.- Returns:
- a new
TouchMovedinstance
-