Package org._3pq.jgrapht.event
Class TraversalListenerAdapter
- java.lang.Object
-
- org._3pq.jgrapht.event.TraversalListenerAdapter
-
- All Implemented Interfaces:
TraversalListener
public class TraversalListenerAdapter extends java.lang.Object implements TraversalListener
An empty do-nothing implementation of theTraversalListenerinterface used for subclasses.- Since:
- Aug 6, 2003
- Author:
- Barak Naveh
-
-
Constructor Summary
Constructors Constructor Description TraversalListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectedComponentFinished(ConnectedComponentTraversalEvent e)Called to inform listeners that the traversal of the current connected component has finished.voidconnectedComponentStarted(ConnectedComponentTraversalEvent e)Called to inform listeners that a traversal of a new connected component has started.voidedgeTraversed(EdgeTraversalEvent e)Called to inform the listener that the specified edge have been visited during the graph traversal.voidvertexTraversed(VertexTraversalEvent e)Called to inform the listener that the specified vertex have been visited during the graph traversal.
-
-
-
Method Detail
-
connectedComponentFinished
public void connectedComponentFinished(ConnectedComponentTraversalEvent e)
Description copied from interface:TraversalListenerCalled to inform listeners that the traversal of the current connected component has finished.- Specified by:
connectedComponentFinishedin interfaceTraversalListener- Parameters:
e- the traversal event.- See Also:
TraversalListener.connectedComponentFinished(ConnectedComponentTraversalEvent)
-
connectedComponentStarted
public void connectedComponentStarted(ConnectedComponentTraversalEvent e)
Description copied from interface:TraversalListenerCalled to inform listeners that a traversal of a new connected component has started.- Specified by:
connectedComponentStartedin interfaceTraversalListener- Parameters:
e- the traversal event.- See Also:
TraversalListener.connectedComponentStarted(ConnectedComponentTraversalEvent)
-
edgeTraversed
public void edgeTraversed(EdgeTraversalEvent e)
Description copied from interface:TraversalListenerCalled to inform the listener that the specified edge have been visited during the graph traversal. Depending on the traversal algorithm, edge might be visited more than once.- Specified by:
edgeTraversedin interfaceTraversalListener- Parameters:
e- the edge traversal event.- See Also:
TraversalListener.edgeTraversed(EdgeTraversalEvent)
-
vertexTraversed
public void vertexTraversed(VertexTraversalEvent e)
Description copied from interface:TraversalListenerCalled to inform the listener that the specified vertex have been visited during the graph traversal. Depending on the traversal algorithm, vertex might be visited more than once.- Specified by:
vertexTraversedin interfaceTraversalListener- Parameters:
e- the vertex traversal event.- See Also:
TraversalListener.vertexTraversed(VertexTraversalEvent)
-
-