public class GraphAddEdgeEvent extends EventObject
source| Constructor and Description |
|---|
GraphAddEdgeEvent(Object source,
Edge newedge,
boolean addingVertexA,
boolean addingVertexB)
Creates a GraphAddEdgeEvent object indicating the source of the event
and the Edge that was added to a Graph object
|
| Modifier and Type | Method and Description |
|---|---|
Edge |
getEdge()
Returns the Edge object that was added to a Graph object
|
boolean |
isAddingVertexA() |
boolean |
isAddingVertexB() |
getSource, toStringpublic GraphAddEdgeEvent(Object source, Edge newedge, boolean addingVertexA, boolean addingVertexB)
source - source of the event. This is usually the Graph object *
where the Edge object was added.newedge - Edge object that was added to a Graph objectaddingVertexA - see isAddingVertexA()addingVertexB - see isAddingVertexB()public Edge getEdge()
public boolean isAddingVertexA()
public boolean isAddingVertexB()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.