public class RemoteSlaveDisplayImpl extends UnicastRemoteObject implements RemoteSlaveDisplay, MouseListener, MouseMotionListener
ref
Constructor and Description |
---|
RemoteSlaveDisplayImpl(RemoteDisplay d)
Construct a new slaved display linked to the given RemoteDisplay
|
Modifier and Type | Method and Description |
---|---|
void |
addDisplayListener(DisplayListener l)
Add a display listener to this slave display.
|
JComponent |
getComponent()
Get this slave display's component, for adding to a user interface
|
BufferedImage |
getImage()
Get this slave display's current image
|
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
removeDisplayListener(DisplayListener l)
Remove a display listener from this slave display
|
void |
sendImage(int[] pixels,
int width,
int height,
int type)
Update this slave display with the given RLE-encoded image pixels
|
void |
sendMessage(String message)
Send the given message to this slave display
|
void |
unlink()
Remove the link from this slaved display to its remote display
|
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
public RemoteSlaveDisplayImpl(RemoteDisplay d) throws VisADException, RemoteException
VisADException
RemoteException
public void unlink() throws VisADException, RemoteException
VisADException
RemoteException
public JComponent getComponent()
public void addDisplayListener(DisplayListener l)
public void removeDisplayListener(DisplayListener l)
public BufferedImage getImage()
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 mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.