public class RemoteDisplayMonitorImpl extends UnicastRemoteObject implements RemoteDisplayMonitor
RemoteDisplayMonitorImpl
is the implementation of the VisAD
RemoteDisplayMonitor
class.ref
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
|
String |
toString()
Returns a string representation of this object.
|
clone, exportObject, exportObject, exportObject, unexportObject
getClientHost, getLog, setLog
equals, getRef, hashCode, toStub
public RemoteDisplayMonitorImpl(DisplayMonitorImpl dpyMonitor) throws RemoteException
DisplayMonitor
dpyMonitor
- 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 DisplayListener
e
- 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 ScalarMapListener
e
- The ScalarMapEvent
to forward.public void controlChanged(ScalarMapControlEvent e)
DisplayMonitor
.controlChanged
in interface ScalarMapListener
e
- The ScalarMapEvent
to forward.public void controlChanged(ControlEvent e) throws RemoteVisADException
DisplayMonitor
.controlChanged
in interface ControlListener
e
- 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 DisplayMonitor
id
- The identifier to check for uniqueness.RemoteException
- If there was an RMI-related problem.public void destroy() throws RemoteVisADException
destroy
in interface DisplayMonitor
RemoteVisADException
public void addListener(MonitorCallback l, int id) throws RemoteException, RemoteVisADException
DisplayMonitor
.addListener
in interface DisplayMonitor
l
- 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 DisplayMonitor
rd
- 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 DisplayMonitor
rd
- Ignored.RemoteException
- If there was an RMI-related problem.RemoteVisADException
- ALWAYS thrown.public int getConnectionID(RemoteDisplay rmtDpy) throws RemoteException
getConnectionID
in interface DisplayMonitor
RemoteException
public void notifyListeners(MonitorEvent evt) throws RemoteVisADException
DisplayMonitor
.notifyListeners
in interface DisplayMonitor
evt
- The event to forward.RemoteVisADException
- If there was an internal problem.public boolean hasEventQueued(int originator, Control ctl) throws RemoteException
hasEventQueued
in interface DisplayMonitor
originator
- Ignored.ctl
- Ignored.RemoteException
- ALWAYS thrown.public boolean isEmpty() throws RemoteException
isEmpty
in interface DisplayMonitor
RemoteException
public boolean hasEventQueued(Control ctl) throws RemoteException
hasEventQueued
in interface DisplayMonitor
ctl
- Ignored.RemoteException
- ALWAYS thrown.public void receiveMessage(MessageEvent msg) throws RemoteException
receiveMessage
in interface MessageListener
msg
- The message to forward.RemoteException
public void setDisplaySync(DisplaySync sync) throws RemoteException
setDisplaySync
in interface DisplayMonitor
RemoteException
public String toString()
toString
in class RemoteObject
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.