public interface TuioListener
TuioClient
class
to dispatch TUIO events to all registered instances of classes that implement the TuioListener interface defined here.
Any class that implements the TuioListener interface is required to implement all of the callback methods defined here.
The TuioClient
makes use of these interface methods in order to dispatch TUIO events to all registered TuioListener implementations.
public class MyTuioListener implements TuioListener
...
MyTuioListener listener = new MyTuioListener();
TuioClient client = new TuioClient();
client.addTuioListener(listener);
client.start();
Modifier and Type | Method and Description |
---|---|
void |
addTuioBlob(TuioBlob tblb)
This callback method is invoked by the TuioClient when a new TuioBlob is added to the session.
|
void |
addTuioCursor(TuioCursor tcur)
This callback method is invoked by the TuioClient when a new TuioCursor is added to the session.
|
void |
addTuioObject(TuioObject tobj)
This callback method is invoked by the TuioClient when a new TuioObject is added to the session.
|
void |
refresh(TuioTime ftime)
This callback method is invoked by the TuioClient to mark the end of a received TUIO message bundle.
|
void |
removeTuioBlob(TuioBlob tblb)
This callback method is invoked by the TuioClient when an existing TuioBlob is removed from the session.
|
void |
removeTuioCursor(TuioCursor tcur)
This callback method is invoked by the TuioClient when an existing TuioCursor is removed from the session.
|
void |
removeTuioObject(TuioObject tobj)
This callback method is invoked by the TuioClient when an existing TuioObject is removed from the session.
|
void |
updateTuioBlob(TuioBlob tblb)
This callback method is invoked by the TuioClient when an existing TuioBlob is updated during the session.
|
void |
updateTuioCursor(TuioCursor tcur)
This callback method is invoked by the TuioClient when an existing TuioCursor is updated during the session.
|
void |
updateTuioObject(TuioObject tobj)
This callback method is invoked by the TuioClient when an existing TuioObject is updated during the session.
|
void addTuioObject(TuioObject tobj)
tobj
- the TuioObject reference associated to the addTuioObject eventvoid updateTuioObject(TuioObject tobj)
tobj
- the TuioObject reference associated to the updateTuioObject eventvoid removeTuioObject(TuioObject tobj)
tobj
- the TuioObject reference associated to the removeTuioObject eventvoid addTuioCursor(TuioCursor tcur)
tcur
- the TuioCursor reference associated to the addTuioCursor eventvoid updateTuioCursor(TuioCursor tcur)
tcur
- the TuioCursor reference associated to the updateTuioCursor eventvoid removeTuioCursor(TuioCursor tcur)
tcur
- the TuioCursor reference associated to the removeTuioCursor eventvoid addTuioBlob(TuioBlob tblb)
tblb
- the TuioBlob reference associated to the addTuioBlob eventvoid updateTuioBlob(TuioBlob tblb)
tblb
- the TuioBlob reference associated to the updateTuioBlob eventvoid removeTuioBlob(TuioBlob tblb)
tblb
- the TuioBlob reference associated to the removeTuioBlob eventvoid refresh(TuioTime ftime)
ftime
- the TuioTime associated to the current TUIO message bundle