visad.collab
Class MonitorEvent
- java.lang.Object
-
- visad.collab.MonitorEvent
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ControlMonitorEvent, MapMonitorEvent, MessageMonitorEvent, ReferenceMonitorEvent
public abstract class MonitorEvent extends java.lang.Object implements java.io.SerializableMonitorEventis the VisAD superclass for events from display monitors.They are sourced by
DisplayMonitorobjects and received byMonitorCallbackobjects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static intCONTROL_CHANGEDThis event occurs whenever the state of aControlattached to aDisplayis changed.static intCONTROL_INIT_REQUESTEDThis event occurs whenever aControlattached to aDisplayrequests that it be initialized to the state of a remoteControl.static intMAP_ADDEDThis event occurs whenever aConstantMaporScalarMapis added to aDisplay.static intMAP_CHANGEDThis event occurs whenever aConstantMaporScalarMapis added to aDisplay.static intMAP_REMOVEDThis event occurs whenever aConstantMaporScalarMapis removed from aDisplay.static intMAPS_CLEAREDThis event occurs whenever theConstantMaps andScalarMaps are cleared from aDisplay.static intMESSAGE_SENTThis event occurs whenever a message is sent.static intREFERENCE_ADDEDThis event occurs whenever aDataReferenceis added to aDisplay.static intREFERENCE_REMOVEDThis event occurs whenever aDataReferenceis removed from aDisplay.
-
Constructor Summary
Constructors Constructor and Description MonitorEvent(int type, int originator)Creates aMonitorEvent
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract java.lang.Objectclone()Returns an exact copy of thisMonitorEvent.abstract java.lang.StringgetKey()Get the key used to uniquely identify this event.intgetOriginator()Gets the originator of thisMonitorEvent.intgetSequenceNumber()Gets the sequence number of thisMonitorEvent.intgetType()Gets the type of thisMonitorEvent.java.lang.StringgetTypeName()Returns aStringdescription of thisMonitorEvent's type.static java.lang.StringgetTypeName(int type)Returns aStringdescription of the specifiedMonitorEventtype.voidsetOriginator(int id)Sets the originator of thisMonitorEvent.java.lang.StringtoString()Returns aStringrepresentation of this object.
-
-
-
Field Detail
-
MAP_ADDED
public static final int MAP_ADDED
This event occurs whenever aConstantMaporScalarMapis added to aDisplay.- See Also:
- Constant Field Values
-
MAP_CHANGED
public static final int MAP_CHANGED
This event occurs whenever aConstantMaporScalarMapis added to aDisplay.- See Also:
- Constant Field Values
-
MAPS_CLEARED
public static final int MAPS_CLEARED
This event occurs whenever theConstantMaps andScalarMaps are cleared from aDisplay.- See Also:
- Constant Field Values
-
MAP_REMOVED
public static final int MAP_REMOVED
This event occurs whenever aConstantMaporScalarMapis removed from aDisplay.- See Also:
- Constant Field Values
-
REFERENCE_ADDED
public static final int REFERENCE_ADDED
This event occurs whenever aDataReferenceis added to aDisplay.- See Also:
- Constant Field Values
-
REFERENCE_REMOVED
public static final int REFERENCE_REMOVED
This event occurs whenever aDataReferenceis removed from aDisplay.- See Also:
- Constant Field Values
-
CONTROL_INIT_REQUESTED
public static final int CONTROL_INIT_REQUESTED
This event occurs whenever aControlattached to aDisplayrequests that it be initialized to the state of a remoteControl.- See Also:
- Constant Field Values
-
CONTROL_CHANGED
public static final int CONTROL_CHANGED
This event occurs whenever the state of aControlattached to aDisplayis changed.- See Also:
- Constant Field Values
-
MESSAGE_SENT
public static final int MESSAGE_SENT
This event occurs whenever a message is sent.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MonitorEvent
public MonitorEvent(int type, int originator)Creates aMonitorEvent- Parameters:
type- The event type.originator- The ID of the connection from which this event came, relative to the receiver of the event.
-
-
Method Detail
-
getType
public int getType()
Gets the type of thisMonitorEvent.
-
getKey
public abstract java.lang.String getKey()
Get the key used to uniquely identify this event.- Returns:
- The unique key.
-
getOriginator
public int getOriginator()
Gets the originator of thisMonitorEvent.
-
getSequenceNumber
public int getSequenceNumber()
Gets the sequence number of thisMonitorEvent.
-
getTypeName
public static java.lang.String getTypeName(int type)
Returns aStringdescription of the specifiedMonitorEventtype.- Parameters:
type- theMonitorEventtype.- Returns:
- name of the specified type.
-
getTypeName
public java.lang.String getTypeName()
Returns aStringdescription of thisMonitorEvent's type.- Returns:
- name of this event's type.
-
setOriginator
public void setOriginator(int id)
Sets the originator of thisMonitorEvent.- Parameters:
id- The ID of the connection from which this event came, relative to the receiver of the event.
-
clone
public abstract java.lang.Object clone()
Returns an exact copy of thisMonitorEvent.- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
Returns aStringrepresentation of this object.- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG