- 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
 
 public class GraphVertexChangeEvent<V> extends GraphChangeEvent 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 theGraphChangeEvent.getType()method.- Author:
- Barak Naveh
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static intBEFORE_VERTEX_ADDEDBefore vertex added event.static intBEFORE_VERTEX_REMOVEDBefore vertex removed event.protected VvertexThe vertex that this event is related to.static intVERTEX_ADDEDVertex added event.static intVERTEX_REMOVEDVertex removed event.- 
Fields inherited from class org.jgrapht.event.GraphChangeEventtype
 - 
Fields inherited from class java.util.EventObjectsource
 
- 
 - 
Constructor SummaryConstructors Constructor Description GraphVertexChangeEvent(Object eventSource, int type, V vertex)Creates a new GraphVertexChangeEvent object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description VgetVertex()Returns the vertex that this event is related to.- 
Methods inherited from class org.jgrapht.event.GraphChangeEventgetType
 - 
Methods inherited from class java.util.EventObjectgetSource, toString
 
- 
 
- 
- 
- 
Field Detail- 
BEFORE_VERTEX_ADDEDpublic static final int BEFORE_VERTEX_ADDED Before vertex added event. This event is fired before a vertex is added to a graph.- See Also:
- Constant Field Values
 
 - 
BEFORE_VERTEX_REMOVEDpublic static final int BEFORE_VERTEX_REMOVED Before vertex removed event. This event is fired before a vertex is removed from a graph.- See Also:
- Constant Field Values
 
 - 
VERTEX_ADDEDpublic static final int VERTEX_ADDED Vertex added event. This event is fired after a vertex is added to a graph.- See Also:
- Constant Field Values
 
 - 
VERTEX_REMOVEDpublic static final int VERTEX_REMOVED Vertex removed event. This event is fired after a vertex is removed from a graph.- See Also:
- Constant Field Values
 
 - 
vertexprotected V vertex The vertex that this event is related to.
 
- 
 - 
Method Detail- 
getVertexpublic V getVertex() Returns the vertex that this event is related to.- Returns:
- the vertex that this event is related to.
 
 
- 
 
-