|
|||||||||
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.GraphVertexChangeEvent<V>
public class GraphVertexChangeEvent<V>
An event which indicates that a graph vertex has changed, or is about to
change. The event can be used either as an indication after the vertex
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_VERTEX_ADDED
Before vertex added event. |
static int |
BEFORE_VERTEX_REMOVED
Before vertex removed event. |
protected V |
vertex
The vertex that this event is related to. |
static int |
VERTEX_ADDED
Vertex added event. |
static int |
VERTEX_REMOVED
Vertex removed event. |
Fields inherited from class org.jgrapht.event.GraphChangeEvent |
---|
type |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
GraphVertexChangeEvent(java.lang.Object eventSource,
int type,
V vertex)
Creates a new GraphVertexChangeEvent object. |
Method Summary | |
---|---|
V |
getVertex()
Returns the vertex 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_VERTEX_ADDED
public static final int BEFORE_VERTEX_REMOVED
public static final int VERTEX_ADDED
public static final int VERTEX_REMOVED
protected V vertex
Constructor Detail |
---|
public GraphVertexChangeEvent(java.lang.Object eventSource, int type, V vertex)
eventSource
- the source of the event.type
- the type of the event.vertex
- the vertex that the event is related to.Method Detail |
---|
public V getVertex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |