visad.collab
Class MapMonitorEvent
- java.lang.Object
-
- visad.collab.MonitorEvent
-
- visad.collab.MapMonitorEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class MapMonitorEvent extends MonitorEvent
MapMonitorEventis the VisAD class forScalarMap-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 MapMonitorEvent(int type, int originator, ScalarMap map)Creates aMapMonitorEventfor the specifiedScalarMap.MapMonitorEvent(int type, ScalarMap map)Creates aMapMonitorEventfor the specifiedScalarMap.
-
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.ScalarMapgetMap()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
-
MapMonitorEvent
public MapMonitorEvent(int type, ScalarMap map) throws VisADExceptionCreates aMapMonitorEventfor the specifiedScalarMap.- Parameters:
type- The event type (eitherMonitorEvent.MAP_ADDED,MonitorEvent.MAP_REMOVED, orMonitorEvent.MAP_CHANGED, orMonitorEvent.MAPS_CLEARED.)map- theScalarMap(orConstantMap).- Throws:
VisADException- When a badtypeis specified.
-
MapMonitorEvent
public MapMonitorEvent(int type, int originator, ScalarMap map) throws VisADExceptionCreates aMapMonitorEventfor the specifiedScalarMap.- Parameters:
type- The event type (eitherMonitorEvent.MAP_ADDED,MonitorEvent.MAP_REMOVED, orMonitorEvent.MAP_CHANGED, orMonitorEvent.MAPS_CLEARED.)originator- The ID of the connection from which this event came, relative to the receiver of the event.map- theScalarMap(orConstantMap).- 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.
-
getMap
public ScalarMap getMap()
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