diva.sketch.toolbox
Class PanRecognizer
java.lang.Object
diva.sketch.toolbox.ModedIncrRecognizer
diva.sketch.toolbox.PanRecognizer
- All Implemented Interfaces:
- StrokeRecognizer
public class PanRecognizer
- extends ModedIncrRecognizer
A recognizer that recognizes "pan" gestures ("P") and
then pans left if the events are "left", etc.
- Version:
- $Revision: 1.8 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu), Heloise Hse (hwawen@eecs.berkeley.edu)
Constructor Summary |
PanRecognizer(StrokeRecognizer r)
Construct a pan recognizer with a classifying recognizer which
has been trained on "P" shapes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LETTER_P
public static final String LETTER_P
- See Also:
- Constant Field Values
PanRecognizer
public PanRecognizer(StrokeRecognizer r)
- Construct a pan recognizer with a classifying recognizer which
has been trained on "P" shapes.
processActionStroke
public RecognitionSet processActionStroke(TimedStroke s)
- Emit pan events based on whether the mouse has
gone up or down.
- Specified by:
processActionStroke
in class ModedIncrRecognizer
recognizeActionSignal
public int recognizeActionSignal(TimedStroke s)
- Perform the recognition of the pan signal gesture, which
is a segment that closes on itself.
- Specified by:
recognizeActionSignal
in class ModedIncrRecognizer
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.