© 2006-2007 ETH Zurich

org.ximtec.igesture.io
Interface Gesture3DDevice<E,F>

All Known Implementing Classes:
TuioReader

public interface Gesture3DDevice<E,F>

Author:
Bjorn Puype, bpuype@gmail.com

Method Summary
 void addGestureHandler(GestureEventListener listener)
          Add a gesture handler
 void clear()
          Deletes the current gesture.
 void connect()
          Connect the device.
 void disconnect()
          Disconnect the device.
 void dispose()
          Disposes the device.
 List<F> getChunks3D()
          Returns chunks of a gesture while drawing it.
 int getConnectionType()
          Get the connection type of the device.
 String getDeviceID()
          Get the unique identifier of the device.
 int getDeviceType()
          Get the device type of the device.
 Gesture<E> getGesture3D()
          Returns the gestures.
 String getName()
          Get the display name for the device.
 void init()
          Initializes 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 a default device.
 boolean isDisconnectable()
          Check whether the device can be disconnected by the user.
 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 device 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()
           
 

Method Detail

init

void init()
Initializes the device. After executing this method, gestures can be captured.


dispose

void dispose()
Disposes the device. After executing this method, gestures are not captured anymore and all dependent resources are released.


getGesture3D

Gesture<E> getGesture3D()
Returns the gestures. This method should block, if no gesture is available.

Returns:
the gesture.

clear

void clear()
Deletes the current gesture.


getChunks3D

List<F> getChunks3D()
Returns chunks of a gesture while drawing it.

Returns:
chunks of a gesture.

addGestureHandler

void addGestureHandler(GestureEventListener listener)
Add a gesture handler

Parameters:
listener -

removeGestureHandler

void removeGestureHandler(GestureEventListener listener)
Remove a gesture handler

Parameters:
listener -

getDeviceID

String getDeviceID()
Get the unique identifier of the device. (e.g. MAC address)


setDeviceID

void setDeviceID(String id)
Set the unique identifier of the device. (e.g. MAC address)

Parameters:
id -

getName

String getName()
Get the display name for the device.


setName

void setName(String name)
Set the display name for the device.

Parameters:
name -

disconnect

void disconnect()
Disconnect the device.


connect

void connect()
Connect the device.


isConnectable

boolean isConnectable()
Check whether the device can be connected by the user or is automatically connected.

Returns:

isDisconnectable

boolean isDisconnectable()
Check whether the device can be disconnected by the user.

Returns:

isConnected

boolean isConnected()
Check whether the device is connected or not.

Returns:
True if connected, else false.

setIsConnected

void setIsConnected(boolean isConnected)
Change the connection status of the device.

Parameters:
isConnected - The new connection status.

getDeviceType

int getDeviceType()
Get the device type of the device. (E.g. 2D or 3D)


setDeviceType

void setDeviceType(int deviceType)
Set the device type of the device. (E.g. 2D or 3D)

Parameters:
deviceType -

getConnectionType

int getConnectionType()
Get the connection type of the device. (E.g. USB, BlueTooth)


setConnectionType

void setConnectionType(int connectionType)
Set the connection type of the device. (E.g. USB, BlueTooth)

Parameters:
connectionType -

isDefaultDevice

boolean isDefaultDevice()
Check whether the device is a default device.

Returns:

setDefaultDevice

void setDefaultDevice(boolean isDefault)
Set the default device status of the device.

Parameters:
isDefault -

toString

String toString()
Overrides:
toString in class Object

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.