com.tensegrity.graph.event
Interface GraphListener

All Superinterfaces:
EventListenerTag
All Known Subinterfaces:
GraphEventMediatorListener
All Known Implementing Classes:
DebugGraphListener, GraphAdapter, GraphEventMediator, GraphEventMediatorAdapter, GraphEventMultiplexer

public interface GraphListener
extends EventListenerTag

The listener interface for receiving events that are related to a Graph instance.

Version:
$Id: GraphListener.java,v 1.17 2003/08/12 12:08:53 sr Exp $
Author:
Stepan Rutz

Method Summary
 void edgeAdded(GraphEvent graphevent)
          Invoked after an edge was added to the graph.
 void edgeAttachRejected(GraphEvent graphevent)
          An attachment of an edge was rejected by the graph.
 void edgePreAdd(GraphEvent graphevent)
          Invoked when an edge is about to be added to a graph.
 void edgePreRemove(GraphEvent graphevent)
          Invoked when an edge is about to be removed from a graph.
 void edgePreSplit(GraphEvent graphevent)
          An edge is about to be split split and then would be replaced by two new edges.
 void edgeRemoved(GraphEvent graphevent)
          Invoked after an edge was removed from the graph.
 void edgeSplit(GraphEvent graphevent)
          An edge was split and replaced by two new edges.
 void nodeAdded(GraphEvent graphevent)
          Invoked after a node was added to the graph.
 void nodeDeleteEdgeCascade(GraphEvent graphevent)
          A node with indegree = outdegree = 1 was deleted and the adjacent edges are deleted as well.
 void nodePreAdd(GraphEvent graphevent)
          Invoked when a node is about to be added to a graph.
 void nodePreDeleteEdgeCascade(GraphEvent graphevent)
          A node with indegree = outdegree = 1 is about to be deleted and the adjacent edges will be deleted as well.
 void nodePreRemove(GraphEvent graphevent)
          Invoked when a node is about to be removed from a graph.
 void nodeRemoved(GraphEvent graphevent)
          Invoked after a node was removed from the graph.
 

Method Detail

nodePreAdd

public void nodePreAdd(GraphEvent graphevent)
Invoked when a node is about to be added to a graph.


nodeAdded

public void nodeAdded(GraphEvent graphevent)
Invoked after a node was added to the graph.

Parameters:
graphevent - the graphevent structure carrying graphevent information.

nodePreRemove

public void nodePreRemove(GraphEvent graphevent)
Invoked when a node is about to be removed from a graph.

Parameters:
graphevent - the structure carrying graphevent information.

nodeRemoved

public void nodeRemoved(GraphEvent graphevent)
Invoked after a node was removed from the graph.

Parameters:
graphevent - the structure carrying graphevent information.

edgePreAdd

public void edgePreAdd(GraphEvent graphevent)
Invoked when an edge is about to be added to a graph.

Parameters:
graphevent - the structure carrying graphevent information.

edgeAdded

public void edgeAdded(GraphEvent graphevent)
Invoked after an edge was added to the graph.

Parameters:
graphevent - the structure carrying graphevent information.

edgePreRemove

public void edgePreRemove(GraphEvent graphevent)
Invoked when an edge is about to be removed from a graph.

Parameters:
graphevent - the structure carrying graphevent information.

edgeRemoved

public void edgeRemoved(GraphEvent graphevent)
Invoked after an edge was removed from the graph.

Parameters:
graphevent - the structure carrying graphevent information.

edgeAttachRejected

public void edgeAttachRejected(GraphEvent graphevent)
An attachment of an edge was rejected by the graph.

Parameters:
graphevent - the structure carrying graphevent information.

edgePreSplit

public void edgePreSplit(GraphEvent graphevent)
An edge is about to be split split and then would be replaced by two new edges.

Parameters:
graphevent - the structure carrying graphevent information.

edgeSplit

public void edgeSplit(GraphEvent graphevent)
An edge was split and replaced by two new edges.

Parameters:
graphevent - the structure carrying graphevent information.

nodePreDeleteEdgeCascade

public void nodePreDeleteEdgeCascade(GraphEvent graphevent)
A node with indegree = outdegree = 1 is about to be deleted and the adjacent edges will be deleted as well. The two deleted edges will be replaced by a new edge.

Parameters:
graphevent - the structure carrying graphevent information.

nodeDeleteEdgeCascade

public void nodeDeleteEdgeCascade(GraphEvent graphevent)
A node with indegree = outdegree = 1 was deleted and the adjacent edges are deleted as well. The two deleted edges were replaced by a new edge.

Parameters:
graphevent - the structure carrying graphevent information.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.