© 2006-2007 ETH Zurich

org.ximtec.igesture.io.mouseclient
Class SwingMouseReader

java.lang.Object
  extended by org.ximtec.igesture.io.AbstractGestureDevice<org.sigtec.ink.Note,Point>
      extended by org.ximtec.igesture.io.mouseclient.SwingMouseReader
All Implemented Interfaces:
Device, GestureDevice<org.sigtec.ink.Note,Point>
Direct Known Subclasses:
SwingMouseReaderService

public class SwingMouseReader
extends AbstractGestureDevice<org.sigtec.ink.Note,Point>

Comment

Version:
1.0 03.05.2008
Author:
Ueli Kurmann

Constructor Summary
SwingMouseReader()
           
 
Method Summary
 void clear()
          Deletes the current gesture.
 void connect()
          Connect the device.
 void disconnect()
          Disconnect the device.
 void dispose()
          Disposes the device.
 List<Point> getChunks()
          Returns chunks of a gesture while drawing it.
 Gesture<org.sigtec.ink.Note> getGesture()
          Returns the gestures.
 JPanel getPanel()
           
 JPanel getPanel(Dimension dimension)
           
 void init()
          Initializes the device.
 boolean isConnectable()
          Check whether the device can be connected by the user or is automatically connected.
 boolean isDisconnectable()
          Check whether the device can be disconnected by the user.
 
Methods inherited from class org.ximtec.igesture.io.AbstractGestureDevice
addGestureHandler, fireGestureEvent, getConnectionType, getDeviceClass, getDeviceID, getDeviceType, getName, isConnected, isDefaultDevice, removeAllGestureHandler, removeAllListener, removeGestureHandler, setConnectionType, setDefaultDevice, setDeviceID, setDeviceType, setIsConnected, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SwingMouseReader

public SwingMouseReader()
Method Detail

getPanel

public JPanel getPanel()

getPanel

public JPanel getPanel(Dimension dimension)

clear

public void clear()
Description copied from interface: GestureDevice
Deletes the current gesture.


dispose

public void dispose()
Description copied from interface: GestureDevice
Disposes the device. After executing this method, gestures are not captured anymore and all dependent resources are released.


getChunks

public List<Point> getChunks()
Description copied from interface: GestureDevice
Returns chunks of a gesture while drawing it.

Returns:
chunks of a gesture.

getGesture

public Gesture<org.sigtec.ink.Note> getGesture()
Description copied from interface: GestureDevice
Returns the gestures. This method should block, if no gesture is available.

Returns:
the gesture.

init

public void init()
Description copied from interface: GestureDevice
Initializes the device. After executing this method, gestures can be captured.


connect

public void connect()
Description copied from interface: Device
Connect the device.

Specified by:
connect in interface Device
Specified by:
connect in class AbstractGestureDevice<org.sigtec.ink.Note,Point>

disconnect

public void disconnect()
Description copied from interface: Device
Disconnect the device.

Specified by:
disconnect in interface Device
Specified by:
disconnect in class AbstractGestureDevice<org.sigtec.ink.Note,Point>

isConnectable

public boolean isConnectable()
Description copied from interface: Device
Check whether the device can be connected by the user or is automatically connected.

Specified by:
isConnectable in interface Device
Overrides:
isConnectable in class AbstractGestureDevice<org.sigtec.ink.Note,Point>
Returns:

isDisconnectable

public boolean isDisconnectable()
Description copied from interface: Device
Check whether the device can be disconnected by the user.

Specified by:
isDisconnectable in interface Device
Overrides:
isDisconnectable in class AbstractGestureDevice<org.sigtec.ink.Note,Point>
Returns:

© 2006-2007 ETH Zurich

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