public interface DisplayMonitor extends ControlListener, DisplayListener, MessageListener, ScalarMapListener, Serializable
DisplayMonitor
is the interface for objects which monitor
the state of Control
s, Display
s and
ScalarMap
s.Modifier and Type | Field and Description |
---|---|
static int |
UNKNOWN_LISTENER_ID
Connection ID used to indicate errors
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(MonitorCallback callback,
int id)
Adds the specified listener to receive
MonitorEvent s
when the monitored Display 's state changes. |
void |
addListener(RemoteDisplay rd,
int id)
Adds the specified remote display to receive
MonitorEvent s
when the monitored Display 's state changes. |
void |
addRemoteListener(RemoteDisplay rd)
Initializes links so that
MonitorEvent s will be
exchanged with the specified remote Display . |
int |
checkID(int id)
Returns a suggestion for a unique listener identifier which is
equal to or greater than the supplied ID.
|
void |
destroy()
destroy this monitor
|
int |
getConnectionID(RemoteDisplay rmtDpy)
Return the ID associated with the specified RemoteDisplay.
|
boolean |
hasEventQueued(Control ctl)
Returns
true if there is a MonitorEvent
for the specified Control waiting to be delivered to
any listener. |
boolean |
hasEventQueued(int listenerID,
Control ctl)
Returns
true if there is a MonitorEvent
for the specified Control waiting to be delivered to the
listener with the specified id. |
boolean |
isEmpty() |
void |
notifyListeners(MonitorEvent evt)
Forwards the
MonitorEvent to all the listeners
associated with this DisplayMonitor . |
void |
setDisplaySync(DisplaySync sync)
Set the display synchronization object for this display
|
controlChanged
displayChanged
receiveMessage
controlChanged, mapChanged
static final int UNKNOWN_LISTENER_ID
void addListener(MonitorCallback callback, int id) throws RemoteException, VisADException
MonitorEvent
s
when the monitored Display
's state changes.callback
- The object to which events are delivered.id
- The unique identifier.RemoteException
- If there was an RMI-related problem.VisADException
- If the listener Vector
is uninitialized.void addListener(RemoteDisplay rd, int id) throws RemoteException, VisADException
MonitorEvent
s
when the monitored Display
's state changes.rd
- The remote display to add.id
- The unique listener identifier.RemoteException
- If there was an RMI-related problem.VisADException
- If the listener Vector
is uninitialized.void addRemoteListener(RemoteDisplay rd) throws RemoteException, RemoteVisADException
MonitorEvent
s will be
exchanged with the specified remote Display
.rd
- The remote Display
to synchronize.RemoteException
- If there was an RMI-related problem.RemoteVisADException
- If the inter-Display
links could not be made.int checkID(int id) throws RemoteException
id
- The identifier to check.RemoteException
- If there was an RMI-related problem.void destroy() throws RemoteException, RemoteVisADException
RemoteException
RemoteVisADException
int getConnectionID(RemoteDisplay rmtDpy) throws RemoteException
RemoteException
boolean hasEventQueued(Control ctl) throws RemoteException
true
if there is a MonitorEvent
for the specified Control
waiting to be delivered to
any listener.ctl
- The Control
being found.RemoteException
- If there was an RMI-related problem.boolean hasEventQueued(int listenerID, Control ctl) throws RemoteException
true
if there is a MonitorEvent
for the specified Control
waiting to be delivered to the
listener with the specified id.listenerID
- The identifier for the listener.ctl
- The Control
being found.RemoteException
- If there was an RMI-related problem.boolean isEmpty() throws RemoteException
RemoteException
void notifyListeners(MonitorEvent evt) throws RemoteException, RemoteVisADException
MonitorEvent
to all the listeners
associated with this DisplayMonitor
.evt
- The event to forward.RemoteException
- If there was an RMI-related problem.RemoteVisADException
- If there is an internal error.void setDisplaySync(DisplaySync sync) throws RemoteException
RemoteException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.