com.tensegrity.graph.event
Class GraphAdapter

java.lang.Object
  extended bycom.tensegrity.graph.event.GraphAdapter
All Implemented Interfaces:
EventListenerTag, GraphListener

public class GraphAdapter
extends java.lang.Object
implements GraphListener

A convenience adapter-class for graphlisteners.

Version:
$Id: GraphAdapter.java,v 1.7 2006/03/23 11:15:10 MichaelKegel Exp $
Author:
Stepan Rutz

Constructor Summary
GraphAdapter()
          Constructs a GraphAdapter instance.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphAdapter

public GraphAdapter()
Constructs a GraphAdapter instance.

Method Detail

nodePreAdd

public void nodePreAdd(GraphEvent graphevent)
Description copied from interface: GraphListener
Invoked when a node is about to be added to a graph.

Specified by:
nodePreAdd in interface GraphListener

nodePreRemove

public void nodePreRemove(GraphEvent graphevent)
Description copied from interface: GraphListener
Invoked when a node is about to be removed from a graph.

Specified by:
nodePreRemove in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

nodeAdded

public void nodeAdded(GraphEvent graphevent)
Description copied from interface: GraphListener
Invoked after a node was added to the graph.

Specified by:
nodeAdded in interface GraphListener
Parameters:
graphevent - the graphevent structure carrying graphevent information.

nodeRemoved

public void nodeRemoved(GraphEvent graphevent)
Description copied from interface: GraphListener
Invoked after a node was removed from the graph.

Specified by:
nodeRemoved in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

edgePreAdd

public void edgePreAdd(GraphEvent graphevent)
Description copied from interface: GraphListener
Invoked when an edge is about to be added to a graph.

Specified by:
edgePreAdd in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

edgePreRemove

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

Specified by:
edgePreRemove in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

edgeAdded

public void edgeAdded(GraphEvent graphevent)
Description copied from interface: GraphListener
Invoked after an edge was added to the graph.

Specified by:
edgeAdded in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

edgeRemoved

public void edgeRemoved(GraphEvent graphevent)
Description copied from interface: GraphListener
Invoked after an edge was removed from the graph.

Specified by:
edgeRemoved in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

edgeAttachRejected

public void edgeAttachRejected(GraphEvent graphevent)
Description copied from interface: GraphListener
An attachment of an edge was rejected by the graph.

Specified by:
edgeAttachRejected in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

edgePreSplit

public void edgePreSplit(GraphEvent graphevent)
Description copied from interface: GraphListener
An edge is about to be split split and then would be replaced by two new edges.

Specified by:
edgePreSplit in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

edgeSplit

public void edgeSplit(GraphEvent graphevent)
Description copied from interface: GraphListener
An edge was split and replaced by two new edges.

Specified by:
edgeSplit in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

nodePreDeleteEdgeCascade

public void nodePreDeleteEdgeCascade(GraphEvent graphevent)
Description copied from interface: GraphListener
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.

Specified by:
nodePreDeleteEdgeCascade in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.

nodeDeleteEdgeCascade

public void nodeDeleteEdgeCascade(GraphEvent graphevent)
Description copied from interface: GraphListener
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.

Specified by:
nodeDeleteEdgeCascade in interface GraphListener
Parameters:
graphevent - the structure carrying graphevent information.


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