public class GraphVertexChangeEvent<V> extends GraphChangeEvent
GraphChangeEvent.getType()
method.Modifier and Type | Field and Description |
---|---|
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.
|
type
Constructor and Description |
---|
GraphVertexChangeEvent(java.lang.Object eventSource,
int type,
V vertex)
Creates a new GraphVertexChangeEvent object.
|
Modifier and Type | Method and Description |
---|---|
V |
getVertex()
Returns the vertex that this event is related to.
|
getType
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
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.public V getVertex()