com.kuka.graph.event
Interface GraphListener<N,E>

Type Parameters:
N - the type of nodes in the graph.
E - the type of edges in the graph.
All Known Implementing Classes:
GraphEdgeSetListener, GraphNodeSetListener

public interface GraphListener<N,E>

Listener interface to be implemented to obtain notifications about changes in a graph.


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.
 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.
 

Method Detail

nodeAdded

void nodeAdded(N node)
Called when a node has been added to the graph.

Parameters:
node - the added node.

edgeAdded

void edgeAdded(E edge)
Called when an edge has been added to the graph.

Parameters:
edge - the added edge.

nodeRemoved

void nodeRemoved(N node)
Called when a node has been removed from the graph.

Parameters:
node - the node that has been removed.

edgeRemoved

void edgeRemoved(E edge)
Called when an edge has been removed from the graph.

Parameters:
edge - the edge that has been removed.


Copyright © 2019. All rights reserved.