|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--visad.collab.MonitorEvent
MonitorEvent is the VisAD superclass for events from
display monitors.
They are sourced by DisplayMonitor objects and received by
MonitorCallback objects.
| Field Summary | |
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 ConstantMaps and
ScalarMaps 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 Summary | |
MonitorEvent(int type,
int originator)
Creates a MonitorEvent |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
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
ConstantMaps and
ScalarMaps 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
| Constructor Detail |
public MonitorEvent(int type,
int originator)
MonitorEventtype - The event type.originator - The ID of the connection from which this event came,
relative to the receiver of the event.| Method Detail |
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.public String toString()
String representation of this object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||