org.grinvin.graphs

Interface GraphModel

All Superinterfaces:
GraphView
Known Subinterfaces:
MutableGraphModel
Known Implementing Classes:
DefaultGraphModel

public interface GraphModel
extends GraphView

A GraphView which at the same time functions as a model in a model-view-controller triple. A GraphListener may register itself with this model to be informed about various changes:

Method Summary

void
addGraphListener(GraphListener l)
Register a graph listener with this model.
void
removeGraphListener(GraphListener l)
Unregister a previously registered graph listener.

Methods inherited from interface org.grinvin.graphs.GraphView

areAdjacent, contains, contains, edgeIterator, edges, getEdge, getNumberOfEdges, getNumberOfVertices, getVertex, vertexIterator, vertices

Method Details

addGraphListener

public void addGraphListener(GraphListener l)
Register a graph listener with this model.

removeGraphListener

public void removeGraphListener(GraphListener l)
Unregister a previously registered graph listener.