public class GraphAddVertexEvent extends EventObject
source| Constructor and Description |
|---|
GraphAddVertexEvent(Object source,
Vertex newvertex,
Edge edge)
Creates a GraphAddVertexEvent object indicating the source of the event
and the Vertex that was added to a Graph object
|
| Modifier and Type | Method and Description |
|---|---|
Edge |
getEdge()
If this vertex is being added implicitly due to the addition of an
edge, then the edge being added; else null.
|
Vertex |
getVertex()
Returns the Vertex object that was added to a Graph object
|
getSource, toStringpublic GraphAddVertexEvent(Object source, Vertex newvertex, Edge edge)
source - source of the event. This is usually the Graph object
where the Vertex object was added.newvertex - Vertex object that was added to a Graph objectedge - see getEdge()Copyright © 2019 JULIE Lab, Germany. All rights reserved.