|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.io.AbstractGestureDevice<E,F>
public abstract class AbstractGestureDevice<E,F>
Comment
| Constructor Summary | |
|---|---|
AbstractGestureDevice()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ximtec.igesture.io.GestureDevice |
|---|
clear, dispose, getChunks, getGesture, init |
| Constructor Detail |
|---|
public AbstractGestureDevice()
| Method Detail |
|---|
public void removeGestureHandler(GestureEventListener listener)
GestureDevice
removeGestureHandler in interface GestureDevice<E,F>public void addGestureHandler(GestureEventListener listener)
GestureDevice
addGestureHandler in interface GestureDevice<E,F>protected void fireGestureEvent(Gesture<?> gesture)
gesture - protected void removeAllListener()
public void removeAllGestureHandler()
public String getDeviceID()
Device
getDeviceID in interface Devicepublic void setDeviceID(String id)
Device
setDeviceID in interface Devicepublic String getName()
Device
getName in interface Devicepublic void setName(String name)
Device
setName in interface Devicepublic abstract void disconnect()
Device
disconnect in interface Devicepublic abstract void connect()
Device
connect in interface Devicepublic boolean isConnectable()
Device
isConnectable in interface Devicepublic boolean isDisconnectable()
Device
isDisconnectable in interface Devicepublic boolean isConnected()
Device
isConnected in interface Devicepublic void setIsConnected(boolean isConnected)
Device
setIsConnected in interface DeviceisConnected - The new connection status.public int getDeviceType()
Device
getDeviceType in interface Devicepublic void setDeviceType(int deviceType)
Device
setDeviceType in interface Devicepublic int getConnectionType()
Device
getConnectionType in interface Devicepublic void setConnectionType(int connectionType)
Device
setConnectionType in interface Devicepublic boolean isDefaultDevice()
Device
isDefaultDevice in interface Devicepublic void setDefaultDevice(boolean isDefault)
Device
setDefaultDevice in interface Devicepublic String toString()
toString in interface DevicetoString in class Objectpublic String getDeviceClass()
Device
getDeviceClass in interface Device
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||