|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.jgrapht.event.GraphChangeEvent
org.jgrapht.event.GraphEdgeChangeEvent<V,E>
public class GraphEdgeChangeEvent<V,E>
An event which indicates that a graph edge has changed, or is about to
change. The event can be used either as an indication after the edge
has been added or removed, or before it is added. The type of the
event can be tested using the GraphChangeEvent.getType()
method.
Field Summary | |
---|---|
static int |
BEFORE_EDGE_ADDED
Before edge added event. |
static int |
BEFORE_EDGE_REMOVED
Before edge removed event. |
protected E |
edge
The edge that this event is related to. |
static int |
EDGE_ADDED
Edge added event. |
static int |
EDGE_REMOVED
Edge removed event. |
Fields inherited from class org.jgrapht.event.GraphChangeEvent |
---|
type |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
GraphEdgeChangeEvent(java.lang.Object eventSource,
int type,
E e)
Constructor for GraphEdgeChangeEvent. |
Method Summary | |
---|---|
E |
getEdge()
Returns the edge that this event is related to. |
Methods inherited from class org.jgrapht.event.GraphChangeEvent |
---|
getType |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int BEFORE_EDGE_ADDED
public static final int BEFORE_EDGE_REMOVED
public static final int EDGE_ADDED
public static final int EDGE_REMOVED
protected E edge
Constructor Detail |
---|
public GraphEdgeChangeEvent(java.lang.Object eventSource, int type, E e)
eventSource
- the source of this event.type
- the event type of this event.e
- the edge that this event is related to.Method Detail |
---|
public E getEdge()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |