net.silentlycrashing.gestures.preset
Class ConcurrentCWTwirlListener
java.lang.Object
net.silentlycrashing.gestures.GestureListener
net.silentlycrashing.gestures.ConcurrentGestureListener
net.silentlycrashing.gestures.preset.ConcurrentCWTwirlListener
- All Implemented Interfaces:
- CWTwirl
public class ConcurrentCWTwirlListener
- extends ConcurrentGestureListener
- implements CWTwirl
Listens for a clockwise twirl while the movement is being made.
| Fields inherited from interface net.silentlycrashing.gestures.preset.CWTwirl |
CW_PATTERN |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConcurrentCWTwirlListener
public ConcurrentCWTwirlListener(PApplet parent,
GestureAnalyzer analyzer)
- Builds a ConcurrentCWTwirlListener covering the entire canvas.
- Parameters:
parent - the parent PAppletanalyzer - the linked GestureAnalyzer
ConcurrentCWTwirlListener
public ConcurrentCWTwirlListener(PApplet parent,
GestureAnalyzer analyzer,
int x,
int y,
int w,
int h)
- Builds a bounded ConcurrentCWTwirlListener.
- 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
ConcurrentCWTwirlListener
public ConcurrentCWTwirlListener(PApplet parent,
GestureAnalyzer analyzer,
Rectangle bounds)
- Builds a bounded ConcurrentCWTwirlListener.
- Parameters:
parent - the parent PAppletanalyzer - the linked GestureAnalyzerbounds - the bounding Rectangle