public class PathListener extends NullGraphListener implements AbstractPathListener
| Modifier and Type | Class and Description |
|---|---|
class |
PathListener.PathTraversal |
| Constructor and Description |
|---|
PathListener(Path path)
Creates a new PathListener for the given graph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterEdgeAdded(GraphAddEdgeEvent event)
Called when an edge is being added to a graph, just after the graph
structure has actually been changed.
|
void |
afterVertexAdded(GraphAddVertexEvent event)
Called when a vertex is being added to a graph, just after the graph
structure has actually been changed.
|
void |
afterVertexRemoved(GraphRemoveVertexEvent event)
Called when a vertex is being removed from a graph, just after the
graph structure has actually been changed.
|
void |
beforeEdgeAdded(GraphAddEdgeEvent event)
Called when an edge is being added to a graph, just before the graph
structure is actually changed.
|
void |
beforeEdgeRemoved(GraphRemoveEdgeEvent event)
Called when an edge is being removed from a graph, just before the
graph structure is actually changed.
|
Vertex |
getFirstVertex()
Returns the first Vertex in the Path.
|
Vertex |
getLastVertex()
Returns the last Vertex in the Path.
|
GraphTraversal |
getTraversal() |
afterEdgeRemoved, beforeVertexAdded, beforeVertexRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterEdgeRemoved, beforeVertexAdded, beforeVertexRemovedpublic PathListener(Path path)
graph - the graph to which this listener is to be attached;
this constructor will automatically register the listener
to receive all eventspublic Vertex getFirstVertex()
getFirstVertex in interface AbstractPathListenerpublic Vertex getLastVertex()
getLastVertex in interface AbstractPathListenerpublic void afterVertexAdded(GraphAddVertexEvent event)
GraphListenerafterVertexAdded in interface GraphListenerafterVertexAdded in class NullGraphListenerevent - the event describing the vertex additionpublic void afterVertexRemoved(GraphRemoveVertexEvent event)
GraphListenerafterVertexRemoved in interface GraphListenerafterVertexRemoved in class NullGraphListenerevent - the event describing the vertex removalpublic void beforeEdgeAdded(GraphAddEdgeEvent event) throws Exception
GraphListenerbeforeEdgeAdded in interface GraphListenerbeforeEdgeAdded in class NullGraphListenerevent - the event describing the edge additionExceptionpublic void afterEdgeAdded(GraphAddEdgeEvent event)
GraphListenerafterEdgeAdded in interface GraphListenerafterEdgeAdded in class NullGraphListenerevent - the event describing the edge additionpublic void beforeEdgeRemoved(GraphRemoveEdgeEvent event) throws Exception
GraphListenerbeforeEdgeRemoved in interface GraphListenerbeforeEdgeRemoved in class NullGraphListenerevent - the event describing the edge removalExceptionpublic GraphTraversal getTraversal()
Copyright © 2019 JULIE Lab, Germany. All rights reserved.