diva.sketch.toolbox
Class PanRecognizer

java.lang.Object
  extended by diva.sketch.toolbox.ModedIncrRecognizer
      extended by 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)

Nested Class Summary
static class PanRecognizer.PanData
          A classification type for paning.
 
Field Summary
static String LETTER_P
           
 
Fields inherited from class diva.sketch.toolbox.ModedIncrRecognizer
ACTION, IDLE, UNKNOWN
 
Constructor Summary
PanRecognizer(StrokeRecognizer r)
          Construct a pan recognizer with a classifying recognizer which has been trained on "P" shapes.
 
Method Summary
 RecognitionSet processActionStroke(TimedStroke s)
          Emit pan events based on whether the mouse has gone up or down.
 int recognizeActionSignal(TimedStroke s)
          Perform the recognition of the pan signal gesture, which is a segment that closes on itself.
 
Methods inherited from class diva.sketch.toolbox.ModedIncrRecognizer
strokeCompleted, strokeModified, strokeStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LETTER_P

public static final String LETTER_P
See Also:
Constant Field Values
Constructor Detail

PanRecognizer

public PanRecognizer(StrokeRecognizer r)
Construct a pan recognizer with a classifying recognizer which has been trained on "P" shapes.

Method Detail

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.