|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.rmi.server.RemoteObject java.rmi.server.RemoteServer java.rmi.server.UnicastRemoteObject visad.collab.RemoteDisplayMonitorImpl
public class RemoteDisplayMonitorImpl
RemoteDisplayMonitorImpl
is the implementation of the VisAD
RemoteDisplayMonitor
class.
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Fields inherited from interface visad.collab.DisplayMonitor |
---|
UNKNOWN_LISTENER_ID |
Constructor Summary | |
---|---|
RemoteDisplayMonitorImpl(DisplayMonitorImpl dpyMonitor)
Creates a remotely-accessible wrapper for the specified DisplayMonitor |
Method Summary | |
---|---|
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. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RemoteDisplayMonitorImpl(DisplayMonitorImpl dpyMonitor) throws RemoteException
DisplayMonitor
dpyMonitor
- The local DisplayMonitor object to adapt.
RemoteException
- If there was an RMI-related problem.Method Detail |
---|
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 forward
RemoteVisADException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |