diva.whiteboard
Class CommandInterpreter

java.lang.Object
  extended by diva.canvas.interactor.AbstractInteractor
      extended by diva.sketch.BasicInterpreter
          extended by diva.sketch.MultiStateInterpreter
              extended by diva.whiteboard.CommandInterpreter
All Implemented Interfaces:
LayerListener, LayerMotionListener, Interactor, EventListener

public class CommandInterpreter
extends MultiStateInterpreter

This interpreter handles selection and deletion of a stroke or a group of strokes.

Version:
$Revision: 1.39 $
Author:
Heloise Hse (hwawen@eecs.berkeley.edu)

Nested Class Summary
 class CommandInterpreter.CommandStrokeListener
          CommandStrokeListener receives stroke events from the interpreter and processes these strokes as gesture commands.
 
Field Summary
static String DELETION_TYPE_ID
           
static String SELECTION_TYPE_ID
           
 
Fields inherited from class diva.sketch.MultiStateInterpreter
CLICK_TIMEOUT, HOLD_TIMEOUT, MIN_DRAG_DISTANCE
 
Fields inherited from class diva.sketch.BasicInterpreter
_controller, _curStroke, _curSymbol, _strokeBuffer
 
Constructor Summary
CommandInterpreter(SketchController c, WhiteboardState state, MultipageDocument d)
           
 
Method Summary
 SketchModel getGestureModel()
          Return a sketch model containing all of the gestures that this interpreter has processed, for debugging.
 
Methods inherited from class diva.sketch.MultiStateInterpreter
addClickListener, addHoldListener, addStrokeListener, getClickCount, mouseDragged, mousePressed, mouseReleased, removeClickListener, removeHoldListener, removeStrokeListener, timeout
 
Methods inherited from class diva.sketch.BasicInterpreter
appendStroke, finishStroke, getController, getCurrentStroke, getCurrentSymbol, isMotionEnabled, mouseEntered, mouseExited, mouseMoved, removeCurrentSymbol, startStroke
 
Methods inherited from class diva.canvas.interactor.AbstractInteractor
accept, getMouseFilter, isConsuming, isEnabled, mouseClicked, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELETION_TYPE_ID

public static final String DELETION_TYPE_ID
See Also:
Constant Field Values

SELECTION_TYPE_ID

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

CommandInterpreter

public CommandInterpreter(SketchController c,
                          WhiteboardState state,
                          MultipageDocument d)
Method Detail

getGestureModel

public SketchModel getGestureModel()
Return a sketch model containing all of the gestures that this interpreter has processed, for debugging.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.