public class MouseReader extends AbstractGestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point> implements MouseHandler
| Constructor and Description |
|---|
MouseReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deletes the current gesture.
|
void |
connect()
Connect the device.
|
void |
disconnect()
Disconnect the device.
|
void |
dispose()
Disposes the device.
|
List<org.sigtec.ink.Point> |
getChunks()
Returns chunks of a gesture while drawing it.
|
Gesture<org.sigtec.ink.Note> |
getGesture()
Returns the gestures.
|
void |
handleMouseEvent(int x,
int y,
EnumSet<MouseUtils.MouseButton> buttons)
Receives mouse events
|
void |
init()
Initializes the device.
|
addGestureHandler, fireGestureEvent, getConnectionType, getDeviceClass, getDeviceID, getDeviceType, getName, isConnectable, isConnected, isDefaultDevice, isDisconnectable, removeAllGestureHandler, removeAllListener, removeGestureHandler, setConnectionType, setDefaultDevice, setDeviceID, setDeviceType, setIsConnected, setName, toStringpublic void handleMouseEvent(int x,
int y,
EnumSet<MouseUtils.MouseButton> buttons)
MouseHandlerhandleMouseEvent in interface MouseHandlerpublic List<org.sigtec.ink.Point> getChunks()
GestureDevicegetChunks in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public Gesture<org.sigtec.ink.Note> getGesture()
GestureDevicegetGesture in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void init()
GestureDeviceinit in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void dispose()
GestureDevicedispose in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void clear()
GestureDeviceclear in interface GestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void connect()
Deviceconnect in interface Deviceconnect in class AbstractGestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>public void disconnect()
Devicedisconnect in interface Devicedisconnect in class AbstractGestureDevice<org.sigtec.ink.Note,org.sigtec.ink.Point>Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.