public class CyclePathListener extends SimplePathListener
| Constructor and Description |
|---|
CyclePathListener(CyclePath cyclePath,
boolean bClosed)
Creates a new CyclePathListener for the given graph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeEdgeAdded(GraphAddEdgeEvent event)
Called when an edge is being added to a graph, just before the graph
structure is actually changed.
|
afterEdgeAdded, afterEdgeRemoved, afterVertexAdded, afterVertexRemoved, beforeEdgeRemoved, beforeVertexAdded, getFirstVertex, getLastVertex, getPath, isEndpoint, removebeforeVertexRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeforeVertexRemovedpublic CyclePathListener(CyclePath cyclePath, boolean bClosed)
cyclePath - the graph to which this listener is to be attached;
this constructor will automatically register the listener
to receive all eventsbClosed - true if cyclePath is already closedpublic void beforeEdgeAdded(GraphAddEdgeEvent event) throws Exception
GraphListenerbeforeEdgeAdded in interface GraphListenerbeforeEdgeAdded in class SimplePathListenerevent - the event describing the edge additionExceptionCopyright © 2019 JULIE Lab, Germany. All rights reserved.