public class ControlMonitorEvent extends MonitorEvent
ControlMonitorEvent
is the VisAD class for
Control
-related Event
s
from display monitors. They are sourced by DisplayMonitor
objects and received by MonitorCallback
objects.CONTROL_CHANGED, CONTROL_INIT_REQUESTED, MAP_ADDED, MAP_CHANGED, MAP_REMOVED, MAPS_CLEARED, MESSAGE_SENT, REFERENCE_ADDED, REFERENCE_REMOVED, seqNum, type
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
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. |
getOriginator, getSequenceNumber, getType, getTypeName, getTypeName, setOriginator
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.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.public Object clone()
clone
in class MonitorEvent
public String toString()
String
representation of this object.toString
in class MonitorEvent
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.