net.silentlycrashing.gestures.preset
Class ConcurrentVShakeListener
java.lang.Object
net.silentlycrashing.gestures.GestureListener
net.silentlycrashing.gestures.ConcurrentGestureListener
net.silentlycrashing.gestures.preset.ConcurrentVShakeListener
- All Implemented Interfaces:
- VShake
public class ConcurrentVShakeListener
- extends ConcurrentGestureListener
- implements VShake
Listens for a vertical shake while the movement is being made.
| Fields inherited from interface net.silentlycrashing.gestures.preset.VShake |
VS_PATTERN |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcurrentVShakeListener
public ConcurrentVShakeListener(PApplet parent,
GestureAnalyzer analyzer)
- Builds a ConcurrentVShakeListener covering the entire canvas.
- Parameters:
parent - the parent PAppletanalyzer - the linked GestureAnalyzer
ConcurrentVShakeListener
public ConcurrentVShakeListener(PApplet parent,
GestureAnalyzer analyzer,
int x,
int y,
int w,
int h)
- Builds a bounded ConcurrentVShakeListener.
- Parameters:
parent - the parent PAppletanalyzer - the linked GestureAnalyzerx - the x-coordinate of the bounding Rectangley - the y-coordinate of the bounding Rectanglew - the width of the bounding Rectangleh - the height of the bounding Rectangle
ConcurrentVShakeListener
public ConcurrentVShakeListener(PApplet parent,
GestureAnalyzer analyzer,
Rectangle bounds)
- Builds a bounded ConcurrentVShakeListener.
- Parameters:
parent - the parent PAppletanalyzer - the linked GestureAnalyzerbounds - the bounding Rectangle