|
|||||||||
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.PenServer
public class PenServer
This software is distributed under the BSD License.
Field Summary | |
---|---|
static int |
DEFAULT_JAVA_PORT
The default port to which pen clients can connect... |
static int |
DEFAULT_PLAINTEXT_PORT
|
static COMPort |
DEFAULT_SERIAL_PORT
|
Constructor Summary | |
---|---|
PenServer(java.net.ServerSocket ss,
ClientServerType type)
|
Method Summary | |
---|---|
boolean |
isPenUp()
|
static boolean |
javaServerStarted()
|
static void |
main(java.lang.String[] args)
|
void |
penDown(PenSample s)
Since with a PenListener... |
void |
penUp(PenSample s)
Samples for penUp have x & y set to 0. |
void |
sample(PenSample sample)
A sample happened. |
static void |
startBothServers(COMPort serialPortName,
int tcpipPortJava,
int tcpipPortPlainText)
Provides default implementation. |
static void |
startJavaServer()
Provides default implementation. |
static void |
startJavaServer(COMPort serialPort)
Use the default java port... |
static void |
startJavaServer(COMPort serialPort,
int tcpipPort)
Start a Java server on this machine at the corresponding TCP/IP port. |
static void |
startTextServer()
|
static void |
startTextServer(COMPort serialPort,
int tcpipPort)
NOTE, you can only start one PenStreamingConnection at a time, on the local machine. |
static void |
stopServers()
|
static boolean |
textServerStarted()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_JAVA_PORT
public static final int DEFAULT_PLAINTEXT_PORT
public static final COMPort DEFAULT_SERIAL_PORT
Constructor Detail |
---|
public PenServer(java.net.ServerSocket ss, ClientServerType type)
ss
- type
- Method Detail |
---|
public static boolean javaServerStarted()
public static void main(java.lang.String[] args)
args
- public static void startBothServers(COMPort serialPortName, int tcpipPortJava, int tcpipPortPlainText)
public static void startJavaServer()
public static void startJavaServer(COMPort serialPort)
serialPort
- public static void startJavaServer(COMPort serialPort, int tcpipPort)
tcpipPort
- public static void startTextServer()
public static void startTextServer(COMPort serialPort, int tcpipPort)
tcpipPort
- public static void stopServers()
public static boolean textServerStarted()
public boolean isPenUp()
public void penDown(PenSample s)
penDown
in interface PenListener
public void penUp(PenSample s)
PenListener
penUp
in interface PenListener
public void sample(PenSample sample)
PenListener
sample
in interface PenListener
PenListener.sample(edu.stanford.hci.r3.pen.PenSample)
|
Copyright 2006 Stanford University | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |