public class RemoteDisplayMonitorImpl extends UnicastRemoteObject implements RemoteDisplayMonitor
RemoteDisplayMonitorImpl is the implementation of the VisAD
RemoteDisplayMonitor class.refUNKNOWN_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
|
String |
toString()
Returns a string representation of this object.
|
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogequals, getRef, hashCode, toStubpublic RemoteDisplayMonitorImpl(DisplayMonitorImpl dpyMonitor) throws RemoteException
DisplayMonitordpyMonitor - The local DisplayMonitor object to adapt.RemoteException - If there was an RMI-related problem.public void displayChanged(DisplayEvent e) throws RemoteException, RemoteVisADException
DisplayMonitor.displayChanged in interface DisplayListenere - The DisplayEvent to forward.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 RemoteException
DisplayMonitor to check this ID for uniqueness.checkID in interface DisplayMonitorid - The identifier to check for uniqueness.RemoteException - If there was an RMI-related problem.public void destroy()
throws RemoteVisADException
destroy in interface DisplayMonitorRemoteVisADExceptionpublic void addListener(MonitorCallback l, int id) throws RemoteException, RemoteVisADException
DisplayMonitor.addListener in interface DisplayMonitorl - The listener to addid - The unique identifer (determined with checkID.)RemoteException - If there was an RMI-related problem.RemoteVisADException - If there was an internal problem.public void addListener(RemoteDisplay rd, int id) throws RemoteException, RemoteVisADException
DisplayMonitor.addListener in interface DisplayMonitorrd - The remote display to addid - The unique identifer (determined with checkID.)RemoteException - If there was an RMI-related problem.RemoteVisADException - If there was an internal problem.public void addRemoteListener(RemoteDisplay rd) throws RemoteException, RemoteVisADException
addRemoteListener in interface DisplayMonitorrd - Ignored.RemoteException - If there was an RMI-related problem.RemoteVisADException - ALWAYS thrown.public int getConnectionID(RemoteDisplay rmtDpy) throws RemoteException
getConnectionID in interface DisplayMonitorRemoteExceptionpublic 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 RemoteException
hasEventQueued in interface DisplayMonitororiginator - Ignored.ctl - Ignored.RemoteException - ALWAYS thrown.public boolean isEmpty()
throws RemoteException
isEmpty in interface DisplayMonitorRemoteExceptionpublic boolean hasEventQueued(Control ctl) throws RemoteException
hasEventQueued in interface DisplayMonitorctl - Ignored.RemoteException - ALWAYS thrown.public void receiveMessage(MessageEvent msg) throws RemoteException
receiveMessage in interface MessageListenermsg - The message to forward.RemoteExceptionpublic void setDisplaySync(DisplaySync sync) throws RemoteException
setDisplaySync in interface DisplayMonitorRemoteExceptionpublic String toString()
toString in class RemoteObjectCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.