|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.sketch.toolbox.LineRecognizer
public class LineRecognizer
This recognizer recognizes lines from strokes. It forms a line with the first and last points in a stroke, and for each point on the stroke, it calculates the distance of the point from the line and computes the confidence value based on the maximum distance.
Field Summary | |
---|---|
static double |
DEFAULT_DIST_THRESH
|
static String |
LINE_TYPE_ID
The type ID for lines. |
Constructor Summary | |
---|---|
LineRecognizer()
|
Method Summary | |
---|---|
RecognitionSet |
strokeCompleted(TimedStroke s)
Invoked when a stroke is completed. |
RecognitionSet |
strokeModified(TimedStroke s)
Invoked when a stroke has been modified, for example, points have been added to the stroke. |
RecognitionSet |
strokeStarted(TimedStroke s)
Invoked when a stroke starts. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String LINE_TYPE_ID
public static final double DEFAULT_DIST_THRESH
Constructor Detail |
---|
public LineRecognizer()
Method Detail |
---|
public RecognitionSet strokeCompleted(TimedStroke s)
strokeCompleted
in interface StrokeRecognizer
public RecognitionSet strokeModified(TimedStroke s)
strokeModified
in interface StrokeRecognizer
public RecognitionSet strokeStarted(TimedStroke s)
strokeStarted
in interface StrokeRecognizer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |