|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HWRListener
Implementors of this interface will receive Handwriting Recognition (HWR) events. HWR events are sent as the system processes strokes written by the user.
| Method Summary | |
|---|---|
void |
hwrCrossingOut(long time,
String result)
This method is not currently supported, but may be supported in a future release. |
void |
hwrError(long time,
String error)
Called when the HWR engine is unable to process strokes due to an error. |
void |
hwrResult(long time,
String result)
Called when the HWR engine has recognized a set of user drawn strokes as text. |
void |
hwrUserPause(long time,
String result)
Called when the HWR engine has not processed input for a specified time interval. |
| Method Detail |
|---|
void hwrResult(long time,
String result)
The result text contains all the handwriting recognized since the last
time the strokes were cleared.
Note that there is no guarantee that all the strokes pending in the recognition queue will have been sent and/or processed. In other words, the result given here may not be so-called "final". If it is known that no more strokes will be added to the engine then the application should wait for the user pause event.
time - the timestamp of this eventresult - all the handwriting recognized as text since the strokes
were clearedICRContext.clearStrokes()
void hwrUserPause(long time,
String result)
hwrResult(long, java.lang.String).
More specifically, the time interval starts when one of the
addStroke methods is
called.
The result text contains all the handwriting recognized since the
the strokes were cleared or the context
was created.
time - the timestamp of this eventresult - all the handwriting recognized as text since the strokes
were cleared or the context was createdICRContext.addStroke(PageInstance, long),
ICRContext.addStroke(Stroke),
ICRContext.clearStrokes(),
PenletContext.getICRContext(int, HWRListener)
void hwrError(long time,
String error)
time - the timestamp of this eventerror - the error message
void hwrCrossingOut(long time,
String result)
Called when the HWR engine detects that the user has crossed out previously written strokes.
time - the timestamp of this eventresult - all the handwriting recognized as text up to this point
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||