com.kuka.graph.event
Class GraphNodeSetListener<N,E>
java.lang.Object
com.kuka.graph.event.GraphNodeSetListener<N,E>
- Type Parameters:
N - the type of the nodes.E - the type of the edges.
- All Implemented Interfaces:
- GraphListener<N,E>
public abstract class GraphNodeSetListener<N,E>
- extends Object
- implements GraphListener<N,E>
Abstract super class for node listeners. Extend this class to be notified
about changes in the set of nodes of a graph.
The class implements the GraphListener-interface, and realizes the
notification-methods about changes in the edges by doing nothing. These
realizations cannot be overriden by subclasses, thus, any node listener can
only react to changes in the nodes.
|
Method Summary |
void |
edgeAdded(E edge)
Called when an edge has been added to the graph. |
void |
edgeRemoved(E edge)
Called when an edge has been removed from the graph. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphNodeSetListener
public GraphNodeSetListener()
edgeAdded
public final void edgeAdded(E edge)
- Description copied from interface:
GraphListener
- Called when an edge has been added to the graph.
- Specified by:
edgeAdded in interface GraphListener<N,E>
- Parameters:
edge - the added edge.
edgeRemoved
public final void edgeRemoved(E edge)
- Description copied from interface:
GraphListener
- Called when an edge has been removed from the graph.
- Specified by:
edgeRemoved in interface GraphListener<N,E>
- Parameters:
edge - the edge that has been removed.
Copyright © 2019. All rights reserved.