public abstract class AbstractGraphModel extends java.lang.Object implements GraphModel
Modifier and Type | Field and Description |
---|---|
protected GraphEventMulticaster |
_graphListeners
The list of graph listeners.
|
Constructor and Description |
---|
AbstractGraphModel() |
Modifier and Type | Method and Description |
---|---|
void |
addGraphListener(GraphListener l)
Add a graph listener to the model.
|
void |
dispatchGraphEvent(GraphEvent e)
Send an graph event to all of the graph listeners.
|
void |
removeGraphListener(GraphListener l)
Remove the given listener from this graph model.
|
void |
setDispatchEnabled(boolean val)
Turn on/off all event dispatches from this graph model, for use
in an inner-loop algorithm.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
containsNode, getHead, getNodeCount, getParent, getProperty, getRoot, getSemanticObject, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, nodesAfterEdges, nodesBeforeEdges, outEdges, setProperty, setSemanticObject
protected GraphEventMulticaster _graphListeners
public void addGraphListener(GraphListener l)
addGraphListener
in interface GraphModel
public void dispatchGraphEvent(GraphEvent e)
This method furthermore ensures that all graph events are dispatched in the event thread.
dispatchGraphEvent
in interface GraphModel
setDispatchEnabled(boolean)
public void removeGraphListener(GraphListener l)
removeGraphListener
in interface GraphModel
public void setDispatchEnabled(boolean val)
setDispatchEnabled
in interface GraphModel
dispatchGraphEvent(GraphEvent)