public class RemoteDisplayMonitorImpl extends java.rmi.server.UnicastRemoteObject implements RemoteDisplayMonitor
RemoteDisplayMonitorImpl is the implementation of the VisAD
RemoteDisplayMonitor class.UNKNOWN_LISTENER_ID| Constructor and Description |
|---|
RemoteDisplayMonitorImpl(DisplayMonitorImpl dpyMonitor)
Creates a remotely-accessible wrapper for the specified
DisplayMonitor |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(MonitorCallback l,
int id)
Adds this listener to the remote
DisplayMonitor. |
void |
addListener(RemoteDisplay rd,
int id)
Adds this remote display to the remote
DisplayMonitor. |
void |
addRemoteListener(RemoteDisplay rd)
Unusable stub.
|
int |
checkID(int id)
Asks remote
DisplayMonitor to check this ID for uniqueness. |
void |
controlChanged(ControlEvent e)
Forwards the event to the adapted remote
DisplayMonitor. |
void |
controlChanged(ScalarMapControlEvent e)
Forwards the event to the adapted remote
DisplayMonitor. |
void |
destroy()
destroy this monitor
|
void |
displayChanged(DisplayEvent e)
Forwards the event to the adapted remote
DisplayMonitor. |
int |
getConnectionID(RemoteDisplay rmtDpy)
Return the ID associated with the specified RemoteDisplay.
|
boolean |
hasEventQueued(Control ctl)
Unusable stub.
|
boolean |
hasEventQueued(int originator,
Control ctl)
Unusable stub.
|
boolean |
isEmpty() |
void |
mapChanged(ScalarMapEvent e)
Forwards the event to the adapted remote
DisplayMonitor. |
void |
notifyListeners(MonitorEvent evt)
Forwards the event to the remote
DisplayMonitor. |
void |
receiveMessage(MessageEvent msg)
Handles MessageEvent forwarding.
|
void |
setDisplaySync(DisplaySync sync)
Set the display synchronization object for this display
|
java.lang.String |
toString()
Returns a string representation of this object.
|
public RemoteDisplayMonitorImpl(DisplayMonitorImpl dpyMonitor) throws java.rmi.RemoteException
DisplayMonitordpyMonitor - The local DisplayMonitor object to adapt.java.rmi.RemoteException - If there was an RMI-related problem.public void displayChanged(DisplayEvent e) throws java.rmi.RemoteException, RemoteVisADException
DisplayMonitor.displayChanged in interface DisplayListenere - The DisplayEvent to forward.java.rmi.RemoteException - If there was an RMI-related problem.RemoteVisADException - If there was an internal problem.public void mapChanged(ScalarMapEvent e)
DisplayMonitor.mapChanged in interface ScalarMapListenere - The ScalarMapEvent to forward.public void controlChanged(ScalarMapControlEvent e)
DisplayMonitor.controlChanged in interface ScalarMapListenere - The ScalarMapEvent to forward.public void controlChanged(ControlEvent e) throws RemoteVisADException
DisplayMonitor.controlChanged in interface ControlListenere - ControlEvent to forwardRemoteVisADException - If there was an internal problem.public int checkID(int id)
throws java.rmi.RemoteException
DisplayMonitor to check this ID for uniqueness.checkID in interface DisplayMonitorid - The identifier to check for uniqueness.java.rmi.RemoteException - If there was an RMI-related problem.public void destroy()
throws RemoteVisADException
destroy in interface DisplayMonitorRemoteVisADExceptionpublic void addListener(MonitorCallback l, int id) throws java.rmi.RemoteException, RemoteVisADException
DisplayMonitor.addListener in interface DisplayMonitorl - The listener to addid - The unique identifer (determined with checkID.)java.rmi.RemoteException - If there was an RMI-related problem.RemoteVisADException - If there was an internal problem.public void addListener(RemoteDisplay rd, int id) throws java.rmi.RemoteException, RemoteVisADException
DisplayMonitor.addListener in interface DisplayMonitorrd - The remote display to addid - The unique identifer (determined with checkID.)java.rmi.RemoteException - If there was an RMI-related problem.RemoteVisADException - If there was an internal problem.public void addRemoteListener(RemoteDisplay rd) throws java.rmi.RemoteException, RemoteVisADException
addRemoteListener in interface DisplayMonitorrd - Ignored.java.rmi.RemoteException - If there was an RMI-related problem.RemoteVisADException - ALWAYS thrown.public int getConnectionID(RemoteDisplay rmtDpy) throws java.rmi.RemoteException
getConnectionID in interface DisplayMonitorjava.rmi.RemoteExceptionpublic void notifyListeners(MonitorEvent evt) throws RemoteVisADException
DisplayMonitor.notifyListeners in interface DisplayMonitorevt - The event to forward.RemoteVisADException - If there was an internal problem.public boolean hasEventQueued(int originator,
Control ctl)
throws java.rmi.RemoteException
hasEventQueued in interface DisplayMonitororiginator - Ignored.ctl - Ignored.java.rmi.RemoteException - ALWAYS thrown.public boolean isEmpty()
throws java.rmi.RemoteException
isEmpty in interface DisplayMonitorjava.rmi.RemoteExceptionpublic boolean hasEventQueued(Control ctl) throws java.rmi.RemoteException
hasEventQueued in interface DisplayMonitorctl - Ignored.java.rmi.RemoteException - ALWAYS thrown.public void receiveMessage(MessageEvent msg) throws java.rmi.RemoteException
receiveMessage in interface MessageListenermsg - The message to forward.java.rmi.RemoteExceptionpublic void setDisplaySync(DisplaySync sync) throws java.rmi.RemoteException
setDisplaySync in interface DisplayMonitorjava.rmi.RemoteExceptionpublic java.lang.String toString()
toString in class java.rmi.server.RemoteObject