visad.collab
Class MessageMonitorEvent
- java.lang.Object
-
- visad.collab.MonitorEvent
-
- visad.collab.MessageMonitorEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class MessageMonitorEvent extends MonitorEvent
MessageMonitorEventis the VisAD class forMessageEvent-related events from display monitors. They are sourced byDisplayMonitorobjects and received byMonitorCallbackobjects.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class visad.collab.MonitorEvent
CONTROL_CHANGED, CONTROL_INIT_REQUESTED, MAP_ADDED, MAP_CHANGED, MAP_REMOVED, MAPS_CLEARED, MESSAGE_SENT, REFERENCE_ADDED, REFERENCE_REMOVED
-
-
Constructor Summary
Constructors Constructor and Description MessageMonitorEvent(int type, int originator, MessageEvent msg)Creates aMessageMonitorEventfor the specifiedMessageEvent.MessageMonitorEvent(int type, MessageEvent msg)Creates aMessageMonitorEventfor the specifiedMessageEvent.MessageMonitorEvent(MessageEvent msg)Creates aMessageMonitorEventfor the specifiedMessageEvent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Returns an exact clone of this object.booleanequals(java.lang.Object o)Returnstrueif the specified object matches this object.java.lang.StringgetKey()Get the key used to uniquely identify this event.MessageEventgetMessage()Gets theScalarMapto which this event refers.java.lang.StringtoString()Returns aStringrepresentation of this object.-
Methods inherited from class visad.collab.MonitorEvent
getOriginator, getSequenceNumber, getType, getTypeName, getTypeName, setOriginator
-
-
-
-
Constructor Detail
-
MessageMonitorEvent
public MessageMonitorEvent(MessageEvent msg) throws java.rmi.RemoteException, VisADException
Creates aMessageMonitorEventfor the specifiedMessageEvent.- Parameters:
msg- theMessageEvent.- Throws:
VisADException- When a badtypeis specified.java.rmi.RemoteException
-
MessageMonitorEvent
public MessageMonitorEvent(int type, MessageEvent msg) throws java.rmi.RemoteException, VisADExceptionCreates aMessageMonitorEventfor the specifiedMessageEvent.- Parameters:
type- The event type (currently onlyMonitorEvent.MESSAGE_SENT.)msg- theMessageEvent.- Throws:
VisADException- When a badtypeis specified.java.rmi.RemoteException
-
MessageMonitorEvent
public MessageMonitorEvent(int type, int originator, MessageEvent msg) throws java.rmi.RemoteException, VisADExceptionCreates aMessageMonitorEventfor the specifiedMessageEvent.- Parameters:
type- The event type (currently onlyMonitorEvent.MESSAGE_SENT.)originator- The ID of the connection from which this event came, relative to the receiver of the event.msg- theMessageEvent.- Throws:
VisADException- When a badtypeis specified.java.rmi.RemoteException
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Get the key used to uniquely identify this event.- Specified by:
getKeyin classMonitorEvent- Returns:
- The unique key.
-
getMessage
public MessageEvent getMessage()
Gets theScalarMapto which this event refers.
-
equals
public boolean equals(java.lang.Object o)
Returnstrueif the specified object matches this object.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- The object to compare.
-
clone
public java.lang.Object clone()
Returns an exact clone of this object.- Specified by:
clonein classMonitorEvent
-
toString
public java.lang.String toString()
Returns aStringrepresentation of this object.- Overrides:
toStringin classMonitorEvent
-
-
DMelt 3.0 © DataMelt by jWork.ORG