org.grinvin.graphs

Class GraphModelSupport


public class GraphModelSupport
extends java.lang.Object

Helper class for implementations of GraphModel. Models can delegate listener management and notification to an object of this class.

Method Summary

void
addGraphListener(GraphListener l)
protected void
fireEdgeAdded(Edge edge)
Notify all listeners of the fact that an edge was added to this graph.
protected void
fireEdgeChanged(Edge edge)
Notify all listeners of the fact that edge information was changed.
protected void
fireEdgeRemoved(Edge edge)
Notify all listeners of the fact that an edge was removed from this graph.
protected void
fireEdgeRestored(Edge edge)
Notify all listeners of the fact that an edge was restored to this graph.
protected void
fireGraphChanged()
Notify all listeners of a bulk change to this graph.
protected void
fireVertexAdded(Vertex vertex)
Notify all listeners of the fact that a vertex was added to this graph.
protected void
fireVertexChanged(Vertex vertex)
Notify all listeners of the fact that vertex information was changed.
protected void
fireVertexRemoved(Vertex vertex)
Notify all listeners of the fact that a vertex was removed from this graph.
protected void
fireVertexRestored(Vertex vertex)
Notify all listeners of the fact that a vertex was restored to this graph.
void
removeGraphListener(GraphListener l)

Method Details

addGraphListener

public void addGraphListener(GraphListener l)

fireEdgeAdded

protected void fireEdgeAdded(Edge edge)
Notify all listeners of the fact that an edge was added to this graph.

fireEdgeChanged

protected void fireEdgeChanged(Edge edge)
Notify all listeners of the fact that edge information was changed.

fireEdgeRemoved

protected void fireEdgeRemoved(Edge edge)
Notify all listeners of the fact that an edge was removed from this graph.

fireEdgeRestored

protected void fireEdgeRestored(Edge edge)
Notify all listeners of the fact that an edge was restored to this graph.

fireGraphChanged

protected void fireGraphChanged()
Notify all listeners of a bulk change to this graph.

fireVertexAdded

protected void fireVertexAdded(Vertex vertex)
Notify all listeners of the fact that a vertex was added to this graph.

fireVertexChanged

protected void fireVertexChanged(Vertex vertex)
Notify all listeners of the fact that vertex information was changed.

fireVertexRemoved

protected void fireVertexRemoved(Vertex vertex)
Notify all listeners of the fact that a vertex was removed from this graph.

fireVertexRestored

protected void fireVertexRestored(Vertex vertex)
Notify all listeners of the fact that a vertex was restored to this graph.

removeGraphListener

public void removeGraphListener(GraphListener l)