beowulf.event
Interface GraphListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
JGraph

public interface GraphListener
extends EventListener

This interface provides the basic manner through which a programmer can allow his classes to respond to Graph Events.

Version:
1.0, 6/15/2003
Author:
Andy Scukanec (ags at cs dot cornell dot edu)

Method Summary
 void edgeAdded(GraphEvent e)
          This method is called when an edge is added to a Graph.
 void edgeRemoved(GraphEvent e)
          This method is called when an edge is removed from a Graph.
 void nodeAdded(GraphEvent e)
          This method is called when a node is added to a Graph.
 void nodeRemoved(GraphEvent e)
          This method is called when a node is removed from a Graph.
 

Method Detail

nodeAdded

public void nodeAdded(GraphEvent e)
This method is called when a node is added to a Graph.

Parameters:
e - The graph event containing all of the necessary data.

nodeRemoved

public void nodeRemoved(GraphEvent e)
This method is called when a node is removed from a Graph.

Parameters:
e - The graph event containing all of the necessary data.

edgeAdded

public void edgeAdded(GraphEvent e)
This method is called when an edge is added to a Graph.

Parameters:
e - The graph event containing all of the necessary data.

edgeRemoved

public void edgeRemoved(GraphEvent e)
This method is called when an edge is removed from a Graph.

Parameters:
e - The graph event containing all of the necessary data.