visad.collab
Class ControlMonitorEvent
- java.lang.Object
-
- visad.collab.MonitorEvent
-
- visad.collab.ControlMonitorEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class ControlMonitorEvent extends MonitorEvent
ControlMonitorEventis the VisAD class forControl-relatedEvents 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 ControlMonitorEvent(int type, Control ctl)Creates aControlMonitorEventfor the specifiedControl.ControlMonitorEvent(int type, int originator, Control ctl)Creates aControlMonitorEventfor the specifiedControl.
-
Method Summary
All Methods Static 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.ControlgetControl()Gets theControlto which this event refers.static java.lang.StringgetControlKey(Control ctl)Get the key used to uniquely identify this control.java.lang.StringgetKey()Get the key used to uniquely identify this event.java.lang.StringtoString()Returns aStringrepresentation of this object.-
Methods inherited from class visad.collab.MonitorEvent
getOriginator, getSequenceNumber, getType, getTypeName, getTypeName, setOriginator
-
-
-
-
Constructor Detail
-
ControlMonitorEvent
public ControlMonitorEvent(int type, Control ctl) throws VisADExceptionCreates aControlMonitorEventfor the specifiedControl.- Parameters:
type- The event type (eitherMonitorEvent.CONTROL_INIT_REQUESTEDorMonitorEvent.CONTROL_CHANGED.)ctl- TheControl.- Throws:
VisADException- When a badtypeis specified.
-
ControlMonitorEvent
public ControlMonitorEvent(int type, int originator, Control ctl) throws VisADExceptionCreates aControlMonitorEventfor the specifiedControl.- Parameters:
type- The event type (eitherMonitorEvent.CONTROL_INIT_REQUESTEDorMonitorEvent.CONTROL_CHANGED.)originator- The ID of the connection from which this event came, relative to the receiver of the event.ctl- TheControl.- Throws:
VisADException- When a badtypeis specified.
-
-
Method Detail
-
getControl
public Control getControl()
Gets theControlto which this event refers.
-
getControlKey
public static java.lang.String getControlKey(Control ctl)
Get the key used to uniquely identify this control.- Returns:
- The unique key.
-
getKey
public java.lang.String getKey()
Get the key used to uniquely identify this event.- Specified by:
getKeyin classMonitorEvent- Returns:
- The unique key.
-
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