public class SwipeRecognizer extends AbstractRecognizer
AbstractRecognizer.State
Constructor and Description |
---|
SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source)
construct a swipe recognizer
|
SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source,
int minDistance)
construct a swipe recognizer
|
SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source,
int minDistance,
int threshold)
construct a swipe recognizer
|
Modifier and Type | Method and Description |
---|---|
int |
getMinDistance()
the distance that needs to be covered before counting as a swipe
|
int |
getThreshold()
the threshold before an event is fired (deadzone)
|
void |
onTouchCancel(com.google.gwt.event.dom.client.TouchCancelEvent event) |
void |
onTouchEnd(com.google.gwt.event.dom.client.TouchEndEvent event) |
void |
onTouchMove(com.google.gwt.event.dom.client.TouchMoveEvent event) |
void |
onTouchStart(com.google.gwt.event.dom.client.TouchStartEvent event) |
public SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source)
source
- the source to fire events onpublic SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source, int minDistance)
source
- the source to fire events onminDistance
- the minimum distance to cover before this counts as a swipepublic SwipeRecognizer(com.google.gwt.event.shared.HasHandlers source, int minDistance, int threshold)
source
- the source to fire events onminDistance
- the minimum distance to cover before this counts as a swipethreshold
- the initial threshold before swipe start is firedpublic void onTouchStart(com.google.gwt.event.dom.client.TouchStartEvent event)
public void onTouchMove(com.google.gwt.event.dom.client.TouchMoveEvent event)
public void onTouchEnd(com.google.gwt.event.dom.client.TouchEndEvent event)
public void onTouchCancel(com.google.gwt.event.dom.client.TouchCancelEvent event)
public int getThreshold()
public int getMinDistance()
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.