The MultipointTouchEvents MIDlet consists of two classes:
MultipointTouchEventsExample
ColorCanvas
.
The MultipointTouchEventsExample
is the MIDlet
main class. It displays the ColorCanvas
.
The ColorCanvas
class handles touch events and
draws the worm-like animations on the screen. The worm-like animation
consists of diminishing circles, which are implemented using the nested Point
class. The Point
class has attributes x
, y
, and state
, the latter
of which is either Point.PRESSED
, Point.DRAGGED
, or Point.RELEASED
.
Figure: Multipoint touch events on a Symbian device
For information about implementing the MIDlet, see section Implementation.