Package com.teamdev.jxbrowser.ui.event
Interface TouchEvent
- All Known Subinterfaces:
TouchCanceled,TouchEnded,TouchMoved,TouchStarted
public interface TouchEvent
A common interface that all touch events must extend.
- Since:
- 8.0.0
-
Method Summary
Modifier and TypeMethodDescriptionThe touch points that contributed to the event.The touch points that have started on the target element of this event.touches()All touch points that are currently present on the screen.
-
Method Details
-
touches
List<TouchPoint> touches()All touch points that are currently present on the screen.The returned points correspond to the locations of touch contacts on the screen, e.g., to several fingers touching at once.
-
changedTouches
List<TouchPoint> changedTouches()The touch points that contributed to the event.Meaning of these points varies depending on the event type.
- For
TouchStarted, it is a list of the touches that became active with this event. - For
TouchMoved, it is a list of the touches that have changed since the last event. - For
TouchCanceledandTouchEnded, it is a list of the touches that have just been removed, and no longer present on the screen.
- For
-
targetTouches
List<TouchPoint> targetTouches()The touch points that have started on the target element of this event.The result consists of elements from the
touches()list, with their ordering not preserved.
-