C H A P T E R 9
Using the Recognition System
You can solve this problem by setting the top view's
method. (The top view need not handle the taps,
only prevent them from being passed on to the other view.)
flag enables the recognition of geometric shapes such as
circles, straight lines, polygons, and so on. Do not set this flag for views that
handle text input only. This flag is intended for use only in views based on the
class provides the built-in Notepad
application's note stationery with much of its recognition behavior.
The shapes displayed on the screen are
views returned as the children
that accepted the input strokes. There is no developer
interface to shape recognition; to manipulate shapes returned by the recognition
system, you must extract the polygon views from the edit view yourself. In some
cases, you may find the
method useful for this purpose.
message is sent when a child view is added to a view.
When multiple shapes are returned to an edit view, its
method is called once for each shape.
When multiple ink text words are returned to an edit view, the
method is invoked when the
holds the ink text is added as the child of the edit view, but this method is not
invoked as ink text words are added to the paragraph view.
In views not based on the
class, the arrival of each ink word is
signalled by a
Recognizing Standard Gestures
flag supplies system-defined behavior for the
gestures tap, double tap, highlight, scrub, line, caret, and caret-drag. Most input
views set the
flag, as they need to respond to standard
gestures such as scrubbing to delete text or ink. At present, you cannot define new
gestures to the system.
flag is set, the gesture recognizer invokes the
method before handling the gesture. Normally,
you don't need to supply a
views. These views handle all system-defined gestures
method is invoked only for gestures that the view
system does not handle automatically. For information on intercepting standard
gestures before the view system handles them, see "Customized Processing of