|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
beowulf.event.GraphEvent
This class is an immutable encapsulation of all the data necessary to
define events that can occur to change an instance of a graph.
| Field Summary | |
static int |
EDGE_ADDED
Identifies that an edge was added. |
static int |
EDGE_REMOVED
Identifies that an edge was removed. |
protected int |
eventType
Holds the even type. |
static int |
NODE_ADDED
Identifies that a node was added. |
static int |
NODE_REMOVED
Identifies that a node was removed. |
protected Object |
value
Holds the associated value. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
GraphEvent(Object g,
int eventType,
Object value)
The basic constructor for a GraphEvent. |
|
| Method Summary | |
int |
getEventType()
Returns the type of graph event. |
Object |
getValue()
Returns the node value/edge affected by this event. |
String |
toString()
|
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NODE_ADDED
public static final int NODE_REMOVED
public static final int EDGE_ADDED
public static final int EDGE_REMOVED
protected int eventType
protected Object value
| Constructor Detail |
public GraphEvent(Object g,
int eventType,
Object value)
g - The graph which was affected by this event.eventType - The type of event which occurred.value - The node value/edge which was affected by this event.| Method Detail |
public int getEventType()
public Object getValue()
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||