public class ZoomRecognizer extends ModedIncrRecognizer
| Modifier and Type | Class and Description |
|---|---|
static class |
ZoomRecognizer.ZoomData
A classification type for zooming.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
LETTER_Z |
ACTION, IDLE, UNKNOWN| Constructor and Description |
|---|
ZoomRecognizer(double zoomFactor,
StrokeRecognizer r)
Construct a zoom recognizer with the given scaling factor and a
classifying recognizer which has been trained on "Z" shapes..
|
ZoomRecognizer(StrokeRecognizer r)
Construct a zoom recognizer with a default scaling factor of
1.0 and a classifying recognizer which has been trained on "Z"
shapes.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getZoomFactor()
Return the zoom scaling factor for this recognizer.
|
RecognitionSet |
processActionStroke(TimedStroke s)
Emit zoom events based on whether the mouse has
gone up or down.
|
int |
recognizeActionSignal(TimedStroke s)
Perform the recognition of the "Z".
|
void |
setZoomFactor(double zoomFactor)
Set the zoom scaling factor for this recognizer.
|
strokeCompleted, strokeModified, strokeStartedpublic static final String LETTER_Z
public ZoomRecognizer(StrokeRecognizer r)
public ZoomRecognizer(double zoomFactor,
StrokeRecognizer r)
setZoomFactor(double)public double getZoomFactor()
setZoomFactor(double)public RecognitionSet processActionStroke(TimedStroke s)
processActionStroke in class ModedIncrRecognizerpublic int recognizeActionSignal(TimedStroke s)
recognizeActionSignal in class ModedIncrRecognizerpublic void setZoomFactor(double zoomFactor)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.