java.lang.Object
java.util.EventObject
org.jgrapht.event.GraphChangeEvent
org.jgrapht.event.GraphVertexChangeEvent<V>
- Type Parameters:
V
- the graph vertex type
- All Implemented Interfaces:
Serializable
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.- Author:
- Barak Naveh
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Before vertex added event.static final int
Before vertex removed event.protected V
The vertex that this event is related to.static final int
Vertex added event.static final int
Vertex removed event.Fields inherited from class org.jgrapht.event.GraphChangeEvent
type
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionGraphVertexChangeEvent
(Object eventSource, int type, V vertex) Creates a new GraphVertexChangeEvent object. -
Method Summary
Methods inherited from class org.jgrapht.event.GraphChangeEvent
getType
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
BEFORE_VERTEX_ADDED
public static final int BEFORE_VERTEX_ADDEDBefore vertex added event. This event is fired before a vertex is added to a graph.- See Also:
-
BEFORE_VERTEX_REMOVED
public static final int BEFORE_VERTEX_REMOVEDBefore vertex removed event. This event is fired before a vertex is removed from a graph.- See Also:
-
VERTEX_ADDED
public static final int VERTEX_ADDEDVertex added event. This event is fired after a vertex is added to a graph.- See Also:
-
VERTEX_REMOVED
public static final int VERTEX_REMOVEDVertex removed event. This event is fired after a vertex is removed from a graph.- See Also:
-
vertex
The vertex that this event is related to.
-
-
Constructor Details
-
GraphVertexChangeEvent
Creates a new GraphVertexChangeEvent object.- Parameters:
eventSource
- the source of the event.type
- the type of the event.vertex
- the vertex that the event is related to.
-
-
Method Details
-
getVertex
Returns the vertex that this event is related to.- Returns:
- the vertex that this event is related to.
-