public abstract class AbstractGestureDevice<E,F> extends Object implements GestureDevice<E,F>
| Constructor and Description |
|---|
AbstractGestureDevice() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGestureHandler(GestureEventListener listener)
Add a gesture handler
|
abstract void |
connect()
Connect the device.
|
abstract void |
disconnect()
Disconnect the device.
|
protected void |
fireGestureEvent(Gesture<?> gesture)
Fires a Gesture Event
|
int |
getConnectionType()
Get the connection type of the device.
|
String |
getDeviceClass()
Get the device type (E.g.
|
String |
getDeviceID()
Get the unique identifier of the device.
|
int |
getDeviceType()
Get the type of the device.
|
String |
getName()
Get the display name for the device.
|
boolean |
isConnectable()
Check whether the device can be connected by the user or is automatically connected.
|
boolean |
isConnected()
Check whether the device is connected or not.
|
boolean |
isDefaultDevice()
Check whether the device is the default device.
|
boolean |
isDisconnectable()
Check whether the device can be disconnected by the user.
|
void |
removeAllGestureHandler() |
protected void |
removeAllListener()
Removes all Gesture listeners
|
void |
removeGestureHandler(GestureEventListener listener)
Remove a gesture handler
|
void |
setConnectionType(int connectionType)
Set the connection type of the device.
|
void |
setDefaultDevice(boolean isDefault)
Set the default device status of the device.
|
void |
setDeviceID(String id)
Set the unique identifier of the device.
|
void |
setDeviceType(int deviceType)
Set the type of the device.
|
void |
setIsConnected(boolean isConnected)
Change the connection status of the device.
|
void |
setName(String name)
Set the display name for the device.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, dispose, getChunks, getGesture, initpublic void removeGestureHandler(GestureEventListener listener)
GestureDeviceremoveGestureHandler in interface GestureDevice<E,F>public void addGestureHandler(GestureEventListener listener)
GestureDeviceaddGestureHandler in interface GestureDevice<E,F>protected void fireGestureEvent(Gesture<?> gesture)
gesture - protected void removeAllListener()
public void removeAllGestureHandler()
public String getDeviceID()
DevicegetDeviceID in interface Devicepublic void setDeviceID(String id)
DevicesetDeviceID in interface Devicepublic String getName()
Devicepublic void setName(String name)
Devicepublic abstract void disconnect()
Devicedisconnect in interface Devicepublic abstract void connect()
Devicepublic boolean isConnectable()
DeviceisConnectable in interface Devicepublic boolean isDisconnectable()
DeviceisDisconnectable in interface Devicepublic boolean isConnected()
DeviceisConnected in interface Devicepublic void setIsConnected(boolean isConnected)
DevicesetIsConnected in interface DeviceisConnected - The new connection status.public int getDeviceType()
DevicegetDeviceType in interface Devicepublic void setDeviceType(int deviceType)
DevicesetDeviceType in interface Devicepublic int getConnectionType()
DevicegetConnectionType in interface Devicepublic void setConnectionType(int connectionType)
DevicesetConnectionType in interface Devicepublic boolean isDefaultDevice()
DeviceisDefaultDevice in interface Devicepublic void setDefaultDevice(boolean isDefault)
DevicesetDefaultDevice in interface Devicepublic String toString()
public String getDeviceClass()
DevicegetDeviceClass in interface DeviceCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.