public class SocketSlaveDisplay extends 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(String message)
send the given message to this slave display
|
public SocketSlaveDisplay(DisplayImpl d) throws IOException
IOException
public SocketSlaveDisplay(DisplayImpl d, int port) throws IOException
IOException
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()
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.