public class GraphEventMulticaster extends Object implements GraphListener
Constructor and Description |
---|
GraphEventMulticaster()
Create an empty multicaster object.
|
Modifier and Type | Method and Description |
---|---|
void |
add(GraphListener l)
Add the given listener to the list of listeners.
|
void |
dispatchEvent(GraphEvent e)
Dispatch an event to the list of listeners, calling
the appropriate method based on the event's ID.
|
void |
edgeHeadChanged(GraphEvent e)
Dispatch the edgeHeadChanged() event to the
listeners.
|
void |
edgeTailChanged(GraphEvent e)
Dispatch the edgeTailChanged() event to the
listeners.
|
Iterator |
listeners()
Return an iterator over the list of listeners.
|
void |
nodeAdded(GraphEvent e)
Dispatch the nodeAdded() event to each of the listeners.
|
void |
nodeRemoved(GraphEvent e)
Dispatch the nodeRemoved() event to each of the listeners.
|
void |
remove(GraphListener l)
Remove the given listener from the list
of listeners.
|
void |
structureChanged(GraphEvent e)
Dispatch the structureChanged() event to each of the listeners.
|
public GraphEventMulticaster()
public void add(GraphListener l)
public void dispatchEvent(GraphEvent e)
public void edgeHeadChanged(GraphEvent e)
edgeHeadChanged
in interface GraphListener
public void edgeTailChanged(GraphEvent e)
edgeTailChanged
in interface GraphListener
public Iterator listeners()
public void nodeAdded(GraphEvent e)
nodeAdded
in interface GraphListener
public void nodeRemoved(GraphEvent e)
nodeRemoved
in interface GraphListener
public void remove(GraphListener l)
public void structureChanged(GraphEvent e)
structureChanged
in interface GraphListener
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.