*/
protected void fireGraphChanged(Object source,
GraphModelEvent.GraphModelChange edit) {
// Guaranteed to return a non-null array
Object[] listeners = listenerList.getListenerList();
GraphModelEvent e = null;
// Process the listeners last to first, notifying
// those that are interested in this event
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == GraphModelListener.class) {
// Lazily create the event:
if (e == null)
e = new GraphModelEvent(source, edit);
((GraphModelListener) listeners[i + 1]).graphChanged(e);
}
}
}