Public Member Functions | |
void | addPenListener (PenListener pl) |
Add a Pen Listener to the internal list. | |
void | exit () |
Stops reading from the COM port. | |
void | serialEvent (SerialPortEvent event) |
Whenever data is available, send bytes one in a row to the processor. | |
Static Public Member Functions | |
static PenStreamingConnection | getInstance () |
Static Public Attributes | |
static final COMPort | DEFAULT_PORT = COMPort.COM5 |
Package Functions | |
SuppressWarnings ("unchecked") public static PenStreamingConnection getInstance(COMPort port) |
The idea for this class is that it reports low-level pen events. It does not do any bit of gesture recognition.
Example code is taken from: http://java.sun.com/products/javacomm/javadocs/API_users_guide.html
This software is distributed under the BSD License.
Definition at line 40 of file PenStreamingConnection.java.
void addPenListener | ( | PenListener | pl | ) |
Add a Pen Listener to the internal list.
Pen Listeners' callbacks will be called when pen events are detected.
pl |
Definition at line 193 of file PenStreamingConnection.java.
Referenced by PenServer.startJavaServer(), and PenServer.startTextServer().
static PenStreamingConnection getInstance | ( | ) | [static] |
Definition at line 72 of file PenStreamingConnection.java.
Referenced by PenServer.startJavaServer(), and PenServer.startTextServer().
void serialEvent | ( | SerialPortEvent | event | ) |
Whenever data is available, send bytes one in a row to the processor.
Definition at line 361 of file PenStreamingConnection.java.
SuppressWarnings | ( | "unchecked" | ) | [package] |
port | if port is null, use the default port (COM5) |
Definition at line 80 of file PenStreamingConnection.java.
References PenStreamingConnection.DEFAULT_PORT.