public class MultiTapRecognizer extends Object implements TouchHandler
MultiTapRecognizer
recognizes multiple taps with multiple fingers on the screenModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DISTANCE |
static int |
DEFAULT_TIME_IN_MS |
Constructor and Description |
---|
MultiTapRecognizer(com.google.gwt.event.shared.HasHandlers source,
int numberOfFingers)
Construct a
MultiTapRecognizer |
MultiTapRecognizer(com.google.gwt.event.shared.HasHandlers source,
int numberOfFingers,
int numberOfTabs)
Construct a
MultiTapRecognizer |
MultiTapRecognizer(com.google.gwt.event.shared.HasHandlers source,
int numberOfFingers,
int numberOfTabs,
int distance)
Construct a
MultiTapRecognizer |
MultiTapRecognizer(com.google.gwt.event.shared.HasHandlers source,
int numberOfFingers,
int numberOfTabs,
int distance,
int time)
Construct a
MultiTapRecognizer |
Modifier and Type | Method and Description |
---|---|
protected void |
handleTouchEnd() |
void |
onTouchCanceled(TouchCancelEvent event)
Called when a touch cancel event is fired.
|
void |
onTouchEnd(TouchEndEvent event)
Called when a touch end event is fired.
|
void |
onTouchMove(TouchMoveEvent event)
Called when a touch end move is fired.
|
void |
onTouchStart(TouchStartEvent event)
onTouchStart
|
protected void |
reset() |
protected void |
setTimeProvider(TimeProvider timeProvider) |
public static final int DEFAULT_DISTANCE
public static final int DEFAULT_TIME_IN_MS
public MultiTapRecognizer(com.google.gwt.event.shared.HasHandlers source, int numberOfFingers)
MultiTapRecognizer
source
- the source on which behalf to fire events onnumberOfFingers
- the number of fingers needed for a tappublic MultiTapRecognizer(com.google.gwt.event.shared.HasHandlers source, int numberOfFingers, int numberOfTabs)
MultiTapRecognizer
source
- the source on which behalf to fire events onnumberOfFingers
- the number of fingers needed for a tapnumberOfTabs
- the number of times all fingers have to touch and leave the displaypublic MultiTapRecognizer(com.google.gwt.event.shared.HasHandlers source, int numberOfFingers, int numberOfTabs, int distance)
MultiTapRecognizer
source
- the source on which behalf to fire events onnumberOfFingers
- the number of fingers needed for a tapnumberOfTabs
- the number of times all fingers have to touch and leave the displaydistance
- the maximum distance a finger can move on the displaypublic MultiTapRecognizer(com.google.gwt.event.shared.HasHandlers source, int numberOfFingers, int numberOfTabs, int distance, int time)
MultiTapRecognizer
source
- the source on which behalf to fire events onnumberOfFingers
- the number of fingers needed for a tapnumberOfTabs
- the number of times all fingers have to touch and leave the displaydistance
- the maximum distance a finger can move on the displaytime
- the maximum amount of time for the gesture to happenpublic void onTouchStart(TouchStartEvent event)
TouchStartHandler
onTouchStart
onTouchStart
in interface TouchStartHandler
event
- a TouchStartEvent
object.public void onTouchMove(TouchMoveEvent event)
TouchMoveHandler
onTouchMove
in interface TouchMoveHandler
event
- the TouchMoveEvent
that was firedpublic void onTouchEnd(TouchEndEvent event)
TouchEndHandler
onTouchEnd
in interface TouchEndHandler
event
- the TouchEndEvent
that was firedpublic void onTouchCanceled(TouchCancelEvent event)
TouchCancelHandler
onTouchCanceled
in interface TouchCancelHandler
event
- the TouchCancelEvent
that was firedprotected void handleTouchEnd()
protected void reset()
protected void setTimeProvider(TimeProvider timeProvider)
Copyright © 2018 Magnolia International Ltd.. All rights reserved.