visad.collab
Class ReferenceMonitorEvent
- java.lang.Object
-
- visad.collab.MonitorEvent
-
- visad.collab.ReferenceMonitorEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class ReferenceMonitorEvent extends MonitorEvent
ReferenceMonitorEventis the VisAD class forRemoteReferenceLink-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 ReferenceMonitorEvent(int type, int originator, RemoteReferenceLink link)Creates aReferenceMonitorEventfor the specifiedRemoteReferenceLink.ReferenceMonitorEvent(int type, RemoteReferenceLink link)Creates aReferenceMonitorEventfor the specifiedRemoteReferenceLink.
-
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.RemoteReferenceLinkgetLink()Gets theRemoteReferenceLinkto 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
-
ReferenceMonitorEvent
public ReferenceMonitorEvent(int type, RemoteReferenceLink link) throws VisADExceptionCreates aReferenceMonitorEventfor the specifiedRemoteReferenceLink.- Parameters:
type- The event type (eitherMonitorEvent.REFERENCE_ADDEDorMonitorEvent.REFERENCE_REMOVED.)link- TheRemoteReferenceLink.- Throws:
VisADException- When a badtypeis specified.
-
ReferenceMonitorEvent
public ReferenceMonitorEvent(int type, int originator, RemoteReferenceLink link) throws VisADExceptionCreates aReferenceMonitorEventfor the specifiedRemoteReferenceLink.- Parameters:
type- The event type (eitherMonitorEvent.REFERENCE_ADDEDorMonitorEvent.REFERENCE_REMOVED.)originator- The ID of the connection from which this event came, relative to the receiver of the event.link- TheRemoteReferenceLink.- Throws:
VisADException- When a badtypeis specified.
-
-
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.
-
getLink
public RemoteReferenceLink getLink()
Gets theRemoteReferenceLinkto 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