public abstract class AbstractGraphModel extends 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, waitcontainsNode, getHead, getNodeCount, getParent, getProperty, getRoot, getSemanticObject, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, outEdges, setProperty, setSemanticObjectprotected GraphEventMulticaster _graphListeners
public void addGraphListener(GraphListener l)
addGraphListener in interface GraphModelpublic void dispatchGraphEvent(GraphEvent e)
This method furthermore ensures that all graph events are dispatched in the event thread.
dispatchGraphEvent in interface GraphModelsetDispatchEnabled(boolean)public void removeGraphListener(GraphListener l)
removeGraphListener in interface GraphModelpublic void setDispatchEnabled(boolean val)
setDispatchEnabled in interface GraphModeldispatchGraphEvent(GraphEvent)Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.