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