final MTTextArea tapAndHoldOnly = new MTTextArea(mtApplication, font);
tapAndHoldOnly.setFillColor(textAreaColor);
tapAndHoldOnly.setStrokeColor(textAreaColor);
tapAndHoldOnly.setText("Tap&Hold me! ---");
this.clearAllGestures(tapAndHoldOnly);
tapAndHoldOnly.registerInputProcessor(new TapAndHoldProcessor(app, 2000));
tapAndHoldOnly.addGestureListener(TapAndHoldProcessor.class, new TapAndHoldVisualizer(app, getCanvas()));
tapAndHoldOnly.addGestureListener(TapAndHoldProcessor.class, new IGestureEventListener() {
public boolean processGestureEvent(MTGestureEvent ge) {
TapAndHoldEvent th = (TapAndHoldEvent)ge;
switch (th.getId()) {