public class MessageMonitorEvent extends MonitorEvent
MessageMonitorEvent is the VisAD class for
MessageEvent-related events from display monitors.
They are sourced by DisplayMonitor objects and received by
MonitorCallback objects.CONTROL_CHANGED, CONTROL_INIT_REQUESTED, MAP_ADDED, MAP_CHANGED, MAP_REMOVED, MAPS_CLEARED, MESSAGE_SENT, REFERENCE_ADDED, REFERENCE_REMOVED, seqNum, type| Constructor and Description |
|---|
MessageMonitorEvent(int type,
int originator,
MessageEvent msg)
Creates a
MessageMonitorEvent for the specified
MessageEvent. |
MessageMonitorEvent(int type,
MessageEvent msg)
Creates a
MessageMonitorEvent for the specified
MessageEvent. |
MessageMonitorEvent(MessageEvent msg)
Creates a
MessageMonitorEvent for the specified
MessageEvent. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns an exact clone of this object.
|
boolean |
equals(Object o)
Returns
true if the specified object matches this object. |
String |
getKey()
Get the key used to uniquely identify this event.
|
MessageEvent |
getMessage()
Gets the
ScalarMap to which this event refers. |
String |
toString()
Returns a
String representation of this object. |
getOriginator, getSequenceNumber, getType, getTypeName, getTypeName, setOriginatorpublic MessageMonitorEvent(MessageEvent msg) throws RemoteException, VisADException
MessageMonitorEvent for the specified
MessageEvent.msg - the MessageEvent.VisADException - When a bad type is specified.RemoteExceptionpublic MessageMonitorEvent(int type,
MessageEvent msg)
throws RemoteException,
VisADException
MessageMonitorEvent for the specified
MessageEvent.type - The event type (currently only
MonitorEvent.MESSAGE_SENT.)msg - the MessageEvent.VisADException - When a bad type is specified.RemoteExceptionpublic MessageMonitorEvent(int type,
int originator,
MessageEvent msg)
throws RemoteException,
VisADException
MessageMonitorEvent for the specified
MessageEvent.type - The event type (currently only
MonitorEvent.MESSAGE_SENT.)originator - The ID of the connection from which this event came,
relative to the receiver of the event.msg - the MessageEvent.VisADException - When a bad type is specified.RemoteExceptionpublic String getKey()
getKey in class MonitorEventpublic MessageEvent getMessage()
ScalarMap to which this event refers.public boolean equals(Object o)
true if the specified object matches this object.public Object clone()
clone in class MonitorEventpublic String toString()
String representation of this object.toString in class MonitorEventCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.