org.graffiti.event
Interface GraphListener

All Superinterfaces:
EventListener, TransactionListener
All Known Implementing Classes:
AbstractGraphListener, SelectionModel

public interface GraphListener
extends TransactionListener

Interface that contains methods which are called when a graph is changed.

Version:
$Revision: 5767 $

Method Summary
 void postEdgeAdded(GraphEvent e)
          Called after an edge has been added to the graph.
 void postEdgeRemoved(GraphEvent e)
          Called after an edge has been removed from the graph.
 void postGraphCleared(GraphEvent e)
          Called after method clear() has been called on a graph.
 void postNodeAdded(GraphEvent e)
          Called after an edge has been added to the graph.
 void postNodeRemoved(GraphEvent e)
          Called after a node has been removed from the graph.
 void preEdgeAdded(GraphEvent e)
          Called just before an edge is added to the graph.
 void preEdgeRemoved(GraphEvent e)
          Called just before an edge is removed from the graph.
 void preGraphCleared(GraphEvent e)
          Called before method clear() is called on a graph.
 void preNodeAdded(GraphEvent e)
          Called just before a node is added to the graph.
 void preNodeRemoved(GraphEvent e)
          Called just before a node is removed from the graph.
 
Methods inherited from interface org.graffiti.event.TransactionListener
transactionFinished, transactionStarted
 

Method Detail

postEdgeAdded

void postEdgeAdded(GraphEvent e)
Called after an edge has been added to the graph.

Parameters:
e - the GraphEvent detailing the changes.

postEdgeRemoved

void postEdgeRemoved(GraphEvent e)
Called after an edge has been removed from the graph.

Parameters:
e - the GraphEvent detailing the changes.

postGraphCleared

void postGraphCleared(GraphEvent e)
Called after method clear() has been called on a graph. No other events (like remove events) are generated.

Parameters:
e - the GraphEvent detailing the changes.

postNodeAdded

void postNodeAdded(GraphEvent e)
Called after an edge has been added to the graph.

Parameters:
e - the GraphEvent detailing the changes.

postNodeRemoved

void postNodeRemoved(GraphEvent e)
Called after a node has been removed from the graph. All edges incident to this node have already been removed (preEdgeRemoved and postEdgeRemoved have been called).

Parameters:
e - the GraphEvent detailing the changes.

preEdgeAdded

void preEdgeAdded(GraphEvent e)
Called just before an edge is added to the graph.

Parameters:
e - the GraphEvent detailing the changes.

preEdgeRemoved

void preEdgeRemoved(GraphEvent e)
Called just before an edge is removed from the graph.

Parameters:
e - the GraphEvent detailing the changes.

preGraphCleared

void preGraphCleared(GraphEvent e)
Called before method clear() is called on a graph. No other events (like remove events) are generated.

Parameters:
e - the GraphEvent detailing the changes.

preNodeAdded

void preNodeAdded(GraphEvent e)
Called just before a node is added to the graph.

Parameters:
e - the GraphEvent detailing the changes.

preNodeRemoved

void preNodeRemoved(GraphEvent e)
Called just before a node is removed from the graph. This method is called before the incident edges are deleted.

Parameters:
e - the GraphEvent detailing the changes.


Generated at 2012-05-30 11:00:14 PM CEST