|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.graph.AbstractGraphModel
public abstract class AbstractGraphModel
An abstract implementation of the GraphModel interface that provides the basic event notification system
Field Summary | |
---|---|
protected GraphEventMulticaster |
_graphListeners
The list of graph listeners. |
Constructor Summary | |
---|---|
AbstractGraphModel()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface diva.graph.GraphModel |
---|
containsNode, getHead, getNodeCount, getParent, getProperty, getRoot, getSemanticObject, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, outEdges, setProperty, setSemanticObject |
Field Detail |
---|
protected GraphEventMulticaster _graphListeners
Constructor Detail |
---|
public AbstractGraphModel()
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |