net.silentlycrashing.gestures.preset
Class PostCCWTwirlListener

java.lang.Object
  extended by net.silentlycrashing.gestures.GestureListener
      extended by net.silentlycrashing.gestures.PostGestureListener
          extended by net.silentlycrashing.gestures.preset.PostCCWTwirlListener
All Implemented Interfaces:
CCWTwirl

public class PostCCWTwirlListener
extends PostGestureListener
implements CCWTwirl

Listens for a counter-clockwise twirl after the movement is completed.


Field Summary
 
Fields inherited from class net.silentlycrashing.gestures.PostGestureListener
activePattern
 
Fields inherited from class net.silentlycrashing.gestures.GestureListener
active, bounds, ga, inBounds, offAction, onAction, p, startPoint
 
Fields inherited from interface net.silentlycrashing.gestures.preset.CCWTwirl
CCW_PATTERN
 
Constructor Summary
PostCCWTwirlListener(PApplet parent, GestureAnalyzer analyzer)
          Builds a PostCCWTwirlListener covering the entire canvas.
PostCCWTwirlListener(PApplet parent, GestureAnalyzer analyzer, int x, int y, int w, int h)
          Builds a bounded PostCCWTwirlListener.
PostCCWTwirlListener(PApplet parent, GestureAnalyzer analyzer, Rectangle bounds)
          Builds a bounded PostCCWTwirlListener.
 
Method Summary
 
Methods inherited from class net.silentlycrashing.gestures.PostGestureListener
keepListening, reset, startListening, stopListening
 
Methods inherited from class net.silentlycrashing.gestures.GestureListener
activate, deactivate, getStartPoint, isActive, registerOffAction, registerOnAction, setBounds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostCCWTwirlListener

public PostCCWTwirlListener(PApplet parent,
                            GestureAnalyzer analyzer)
Builds a PostCCWTwirlListener covering the entire canvas.

Parameters:
parent - the parent PApplet
analyzer - the linked GestureAnalyzer

PostCCWTwirlListener

public PostCCWTwirlListener(PApplet parent,
                            GestureAnalyzer analyzer,
                            int x,
                            int y,
                            int w,
                            int h)
Builds a bounded PostCCWTwirlListener.

Parameters:
parent - the parent PApplet
analyzer - the linked GestureAnalyzer
x - the x-coordinate of the bounding Rectangle
y - the y-coordinate of the bounding Rectangle
w - the width of the bounding Rectangle
h - the height of the bounding Rectangle

PostCCWTwirlListener

public PostCCWTwirlListener(PApplet parent,
                            GestureAnalyzer analyzer,
                            Rectangle bounds)
Builds a bounded PostCCWTwirlListener.

Parameters:
parent - the parent PApplet
analyzer - the linked GestureAnalyzer
bounds - the bounding Rectangle