public class SocketSlaveDisplay extends java.lang.Object implements RemoteSlaveDisplay
| Constructor and Description |
|---|
SocketSlaveDisplay(DisplayImpl d)
construct a SocketSlaveDisplay for the given VisAD display
|
SocketSlaveDisplay(DisplayImpl d,
int port)
construct a SocketSlaveDisplay for the given VisAD display,
and communicate with clients using the given port
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
get the socket port used by this SocketSlaveDisplay
|
void |
killServer()
destroy this server and kills all associated threads
|
void |
sendImage(int[] pixels,
int width,
int height,
int type)
display automatically calls sendImage when its content changes
|
void |
sendMessage(java.lang.String message)
send the given message to this slave display
|
public SocketSlaveDisplay(DisplayImpl d) throws java.io.IOException
java.io.IOExceptionpublic SocketSlaveDisplay(DisplayImpl d, int port) throws java.io.IOException
java.io.IOExceptionpublic int getPort()
public void sendImage(int[] pixels,
int width,
int height,
int type)
throws java.rmi.RemoteException
sendImage in interface RemoteSlaveDisplayjava.rmi.RemoteExceptionpublic void sendMessage(java.lang.String message)
throws java.rmi.RemoteException
sendMessage in interface RemoteSlaveDisplayjava.rmi.RemoteExceptionpublic void killServer()