public final class TouchDragEvent extends DragEvent implements AutoCloseable
IInputEvent
that represents a touch drag gesture.
It contains the initial and the current centroid location of the touch points in addition to the number of touch points currently detected and the current status of the gesture.
Constructor and Description |
---|
TouchDragEvent(Coordinate initialCenterLocation,
Coordinate currentCenterLocation,
long touchPointCount,
EventStatus status)
Create a touch drag event.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
Coordinate |
getCurrentCenterLocation() |
Coordinate |
getInitialCenterLocation() |
long |
getTouchPointCount() |
getLocation, getModifierKeys, getStartLocation, getStatus
public TouchDragEvent(@NotNull Coordinate initialCenterLocation, @NotNull Coordinate currentCenterLocation, long touchPointCount, @NotNull EventStatus status)
initialCenterLocation
- The center location at the beginning of the gesture, defined in device independent pixels.currentCenterLocation
- The current center location, defined in device independent pixels.touchPointCount
- How many touch points are used in the gesture.status
- The status of the gesture.public void close()
close
in interface AutoCloseable
close
in class DragEvent
@NotNull public Coordinate getInitialCenterLocation()
@NotNull public Coordinate getCurrentCenterLocation()
public long getTouchPointCount()