public class SimplePathListener extends NullGraphListener implements AbstractPathListener
| Constructor and Description |
|---|
SimplePathListener(SimplePath simplePath)
Creates a new SimplePathListener for the given SimplePath.
|
| 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 |
afterEdgeRemoved(GraphRemoveEdgeEvent event)
Called when an edge is being removed from 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.
|
void |
beforeVertexAdded(GraphAddVertexEvent event)
Called when a vertex is being added to a graph, just before the graph
structure is actually changed.
|
Vertex |
getFirstVertex() |
Vertex |
getLastVertex() |
protected SimplePath |
getPath() |
protected boolean |
isEndpoint(Vertex v) |
void |
remove() |
beforeVertexRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeforeVertexRemovedpublic SimplePathListener(SimplePath simplePath)
simplePath - 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 AbstractPathListenerPath.getFirstVertex()public Vertex getLastVertex()
getLastVertex in interface AbstractPathListenerPath.getLastVertex()protected SimplePath getPath()
public void remove()
throws Exception
ExceptionPath.remove()public void beforeVertexAdded(GraphAddVertexEvent event) throws Exception
GraphListenerbeforeVertexAdded in interface GraphListenerbeforeVertexAdded in class NullGraphListenerevent - the event describing the vertex additionExceptionpublic 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 additionprotected boolean isEndpoint(Vertex v)
public void beforeEdgeRemoved(GraphRemoveEdgeEvent event) throws Exception
GraphListenerbeforeEdgeRemoved in interface GraphListenerbeforeEdgeRemoved in class NullGraphListenerevent - the event describing the edge removalExceptionpublic void afterEdgeRemoved(GraphRemoveEdgeEvent event)
GraphListenerafterEdgeRemoved in interface GraphListenerafterEdgeRemoved in class NullGraphListenerevent - the event describing the edge removalCopyright © 2019 JULIE Lab, Germany. All rights reserved.