Inheritance diagram for ClickHandler:
Public Member Functions | |
abstract void | clicked (PenEvent e) |
void | handleEvent (PenEvent event) |
This method does the hard work of figuring out when a pen pressed, released, and clicked. | |
abstract void | pressed (PenEvent e) |
abstract void | released (PenEvent e) |
String | toString () |
Protected Attributes | |
int | clickCount = 1 |
Use this variable to see if there was a double click, while handing a clicked() event. | |
int | maxMillisBetweenMultipleClicks = 300 |
Classes | |
class | ClickNotifier |
This software is distributed under the BSD License.
Definition at line 18 of file ClickHandler.java.
abstract void clicked | ( | PenEvent | e | ) | [pure virtual] |
void handleEvent | ( | PenEvent | event | ) | [virtual] |
This method does the hard work of figuring out when a pen pressed, released, and clicked.
It is up to the subclass to do something interesting with it once the events are triggered.
We also use the 20 ms filter heuristic that the InkCollector uses. We assume people can't click faster than 20ms.
Implements EventHandler.
Definition at line 119 of file ClickHandler.java.
References ClickHandler.clickCount, ClickHandler.clicked(), PenEvent.getTimestamp(), PenEvent.isTypePenDown(), PenEvent.isTypePenUp(), ClickHandler.maxMillisBetweenMultipleClicks, ClickHandler.pressed(), and ClickHandler.released().
abstract void pressed | ( | PenEvent | e | ) | [pure virtual] |
abstract void released | ( | PenEvent | e | ) | [pure virtual] |
String toString | ( | ) | [virtual] |
Implements EventHandler.
Definition at line 173 of file ClickHandler.java.