|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.collab.MonitorEvent visad.collab.ControlMonitorEvent
public class ControlMonitorEvent
ControlMonitorEvent
is the VisAD class for
Control
-related Event
s
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 | |
---|---|
ControlMonitorEvent(int type,
Control ctl)
Creates a ControlMonitorEvent for the specified
Control . |
|
ControlMonitorEvent(int type,
int originator,
Control ctl)
Creates a ControlMonitorEvent for the specified
Control . |
Method Summary | |
---|---|
Object |
clone()
Returns an exact clone of this object. |
boolean |
equals(Object o)
Returns true if the specified object matches this object. |
Control |
getControl()
Gets the Control to which this event refers. |
static String |
getControlKey(Control ctl)
Get the key used to uniquely identify this control. |
String |
getKey()
Get the key used to uniquely identify this event. |
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 ControlMonitorEvent(int type, Control ctl) throws VisADException
ControlMonitorEvent
for the specified
Control
.
type
- The event type (either
MonitorEvent.CONTROL_INIT_REQUESTED
or MonitorEvent.CONTROL_CHANGED
.)ctl
- The Control
.
VisADException
- When a bad type
is specified.public ControlMonitorEvent(int type, int originator, Control ctl) throws VisADException
ControlMonitorEvent
for the specified
Control
.
type
- The event type (either
MonitorEvent.CONTROL_INIT_REQUESTED
or MonitorEvent.CONTROL_CHANGED
.)originator
- The ID of the connection from which this event came,
relative to the receiver of the event.ctl
- The Control
.
VisADException
- When a bad type
is specified.Method Detail |
---|
public Control getControl()
Control
to which this event refers.
public static String getControlKey(Control ctl)
public String getKey()
getKey
in class MonitorEvent
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 |