|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.collab.MonitorEvent visad.collab.MapMonitorEvent
public class MapMonitorEvent
MapMonitorEvent
is the VisAD class for
ScalarMap
-related events from display monitors.
They are sourced by DisplayMonitor
objects and received by
MonitorCallback
objects.
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, seqNum, type |
Constructor Summary | |
---|---|
MapMonitorEvent(int type,
int originator,
ScalarMap map)
Creates a MapMonitorEvent for the specified
ScalarMap . |
|
MapMonitorEvent(int type,
ScalarMap map)
Creates a MapMonitorEvent for the specified
ScalarMap . |
Method Summary | |
---|---|
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. |
ScalarMap |
getMap()
Gets the ScalarMap to which this event refers. |
String |
toString()
Returns a String representation of this object. |
Methods inherited from class visad.collab.MonitorEvent |
---|
getOriginator, getSequenceNumber, getType, getTypeName, getTypeName, setOriginator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapMonitorEvent(int type, ScalarMap map) throws VisADException
MapMonitorEvent
for the specified
ScalarMap
.
type
- The event type (either MonitorEvent.MAP_ADDED
,
MonitorEvent.MAP_REMOVED
, or
MonitorEvent.MAP_CHANGED
, or
MonitorEvent.MAPS_CLEARED
.)map
- the ScalarMap
(or ConstantMap
).
VisADException
- When a bad type
is specified.public MapMonitorEvent(int type, int originator, ScalarMap map) throws VisADException
MapMonitorEvent
for the specified
ScalarMap
.
type
- The event type (either MonitorEvent.MAP_ADDED
,
MonitorEvent.MAP_REMOVED
, or
MonitorEvent.MAP_CHANGED
, or
MonitorEvent.MAPS_CLEARED
.)originator
- The ID of the connection from which this event came,
relative to the receiver of the event.map
- the ScalarMap
(or ConstantMap
).
VisADException
- When a bad type
is specified.Method Detail |
---|
public String getKey()
getKey
in class MonitorEvent
public ScalarMap getMap()
ScalarMap
to which this event refers.
public boolean equals(Object o)
true
if the specified object matches this object.
equals
in class Object
o
- The object to compare.public Object clone()
clone
in class MonitorEvent
public String toString()
String
representation of this object.
toString
in class MonitorEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |