public abstract class MonitorEvent extends Object implements Serializable
MonitorEvent
is the VisAD superclass for events from
display monitors.
They are sourced by DisplayMonitor
objects and received by
MonitorCallback
objects.
Modifier and Type | Field and Description |
---|---|
static int |
CONTROL_CHANGED
This event occurs whenever the state of a
Control attached
to a Display is changed. |
static int |
CONTROL_INIT_REQUESTED
This event occurs whenever a
Control attached to a
Display requests that it be initialized to the state of
a remote Control . |
static int |
MAP_ADDED
This event occurs whenever a
ConstantMap or
ScalarMap is added to a Display . |
static int |
MAP_CHANGED
This event occurs whenever a
ConstantMap or
ScalarMap is added to a Display . |
static int |
MAP_REMOVED
This event occurs whenever a
ConstantMap or
ScalarMap is removed from a Display . |
static int |
MAPS_CLEARED
This event occurs whenever the
ConstantMap s and
ScalarMap s are cleared from a Display . |
static int |
MESSAGE_SENT
This event occurs whenever a message is sent.
|
static int |
REFERENCE_ADDED
This event occurs whenever a
DataReference is added to
a Display . |
static int |
REFERENCE_REMOVED
This event occurs whenever a
DataReference is removed
from a Display . |
protected int |
seqNum |
protected int |
type |
Constructor and Description |
---|
MonitorEvent(int type,
int originator)
Creates a
MonitorEvent |
Modifier and Type | Method and Description |
---|---|
abstract Object |
clone()
Returns an exact copy of this
MonitorEvent . |
abstract String |
getKey()
Get the key used to uniquely identify this event.
|
int |
getOriginator()
Gets the originator of this
MonitorEvent . |
int |
getSequenceNumber()
Gets the sequence number of this
MonitorEvent . |
int |
getType()
Gets the type of this
MonitorEvent . |
String |
getTypeName()
Returns a
String description of this
MonitorEvent 's type. |
static String |
getTypeName(int type)
Returns a
String description of the
specified MonitorEvent type. |
void |
setOriginator(int id)
Sets the originator of this
MonitorEvent . |
String |
toString()
Returns a
String representation of this object. |
public static final int MAP_ADDED
ConstantMap
or
ScalarMap
is added to a Display
.public static final int MAP_CHANGED
ConstantMap
or
ScalarMap
is added to a Display
.public static final int MAPS_CLEARED
ConstantMap
s and
ScalarMap
s are cleared from a Display
.public static final int MAP_REMOVED
ConstantMap
or
ScalarMap
is removed from a Display
.public static final int REFERENCE_ADDED
DataReference
is added to
a Display
.public static final int REFERENCE_REMOVED
DataReference
is removed
from a Display
.public static final int CONTROL_INIT_REQUESTED
Control
attached to a
Display
requests that it be initialized to the state of
a remote Control
.public static final int CONTROL_CHANGED
Control
attached
to a Display
is changed.public static final int MESSAGE_SENT
protected int seqNum
protected int type
public MonitorEvent(int type, int originator)
MonitorEvent
type
- The event type.originator
- The ID of the connection from which this event came,
relative to the receiver of the event.public int getType()
MonitorEvent
.public abstract String getKey()
public int getOriginator()
MonitorEvent
.public int getSequenceNumber()
MonitorEvent
.public static String getTypeName(int type)
String
description of the
specified MonitorEvent
type.type
- the MonitorEvent
type.public String getTypeName()
String
description of this
MonitorEvent
's type.public void setOriginator(int id)
MonitorEvent
.id
- The ID of the connection from which this event came,
relative to the receiver of the event.public abstract Object clone()
MonitorEvent
.Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.