|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.SocketSlaveDisplay
public class SocketSlaveDisplay
A SocketSlaveDisplay server wraps around a VisAD display, providing support for stand-alone remote displays (i.e., not dependent on the VisAD packages) that communicate with the server using sockets. For an example, see examples/Test68.java together with the stand-alone VisAD applet visad.browser.VisADApplet, usable from within a web browser.
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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(String message)
send the given message to this slave display |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SocketSlaveDisplay(DisplayImpl d) throws IOException
IOException
public SocketSlaveDisplay(DisplayImpl d, int port) throws IOException
IOException
Method Detail |
---|
public int getPort()
public void sendImage(int[] pixels, int width, int height, int type) throws RemoteException
sendImage
in interface RemoteSlaveDisplay
RemoteException
public void sendMessage(String message) throws RemoteException
sendMessage
in interface RemoteSlaveDisplay
RemoteException
public void killServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |