|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.r3.pen.streaming.PenClient
public class PenClient
Connects to the Pen Server and displays some output...
A client who connects to a server can also have local PenListeners to process the samples... TODO: A multithreaded Client for listening to multiple servers... However, does this make sense? Why would we want to listen to multiple pens?
This software is distributed under the BSD License.
Constructor Summary | |
---|---|
PenClient(java.lang.String serverName,
int port,
ClientServerType type)
|
Method Summary | |
---|---|
boolean |
addPenListener(PenListener penListener)
|
void |
connect()
|
void |
disconnect()
Disconnect from the server. |
boolean |
removePenListener(PenListener penListener)
If the pen listener is one of our listeners, detach it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PenClient(java.lang.String serverName, int port, ClientServerType type)
serverName
- port
- type
- Method Detail |
---|
public boolean addPenListener(PenListener penListener)
penListener
-
public void connect()
public void disconnect()
public boolean removePenListener(PenListener penListener)
penListener
-
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |