org.dishevelled.observable.graph.event
Interface GraphChangeListener<N,E>

Type Parameters:
N - node value type
E - edge value type
All Superinterfaces:
EventListener

public interface GraphChangeListener<N,E>
extends EventListener

A listener that receives notification of changes made to an observable graph.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Method Summary
 void cleared(GraphChangeEvent<N,E> e)
          Notify this listener that the observable graph has been cleared.
 void edgeCreated(GraphChangeEvent<N,E> e)
          Notify this listener that an edge has been created in the observable graph.
 void edgeRemoved(GraphChangeEvent<N,E> e)
          Notify this listener that an edge has been removed from the observable graph.
 void nodeCreated(GraphChangeEvent<N,E> e)
          Notify this listener that a node has been created in the observable graph.
 void nodeRemoved(GraphChangeEvent<N,E> e)
          Notify this listener than a node has been removed from the observable graph.
 

Method Detail

cleared

void cleared(GraphChangeEvent<N,E> e)
Notify this listener that the observable graph has been cleared.

Parameters:
e - graph change event

nodeCreated

void nodeCreated(GraphChangeEvent<N,E> e)
Notify this listener that a node has been created in the observable graph.

Parameters:
e - graph change event

edgeCreated

void edgeCreated(GraphChangeEvent<N,E> e)
Notify this listener that an edge has been created in the observable graph.

Parameters:
e - graph change event

nodeRemoved

void nodeRemoved(GraphChangeEvent<N,E> e)
Notify this listener than a node has been removed from the observable graph.

Parameters:
e - graph change event

edgeRemoved

void edgeRemoved(GraphChangeEvent<N,E> e)
Notify this listener that an edge has been removed from the observable graph.

Parameters:
e - graph change event


Copyright (c) 2008-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).