public class CommandInterpreter extends MultiStateInterpreter
Modifier and Type | Class and Description |
---|---|
class |
CommandInterpreter.CommandStrokeListener
CommandStrokeListener receives stroke events from the
interpreter and processes these strokes as gesture commands.
|
Modifier and Type | Field and Description |
---|---|
static String |
DELETION_TYPE_ID |
static String |
SELECTION_TYPE_ID |
CLICK_TIMEOUT, HOLD_TIMEOUT, MIN_DRAG_DISTANCE
_controller, _curStroke, _curSymbol, _strokeBuffer
Constructor and Description |
---|
CommandInterpreter(SketchController c,
WhiteboardState state,
MultipageDocument d) |
Modifier and Type | Method and Description |
---|---|
SketchModel |
getGestureModel()
Return a sketch model containing all of the gestures that this
interpreter has processed, for debugging.
|
addClickListener, addHoldListener, addStrokeListener, getClickCount, mouseDragged, mousePressed, mouseReleased, removeClickListener, removeHoldListener, removeStrokeListener, timeout
appendStroke, finishStroke, getController, getCurrentStroke, getCurrentSymbol, isMotionEnabled, mouseEntered, mouseExited, mouseMoved, removeCurrentSymbol, startStroke
accept, getMouseFilter, isConsuming, isEnabled, mouseClicked, setConsuming, setEnabled, setMotionEnabled, setMouseFilter
public static final String DELETION_TYPE_ID
public static final String SELECTION_TYPE_ID
public CommandInterpreter(SketchController c, WhiteboardState state, MultipageDocument d)
public SketchModel getGestureModel()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.