return (CacheListener[]) listenerList.getListeners(CacheListener.class);
}
protected void fireGraphicNodesCompositeEvent(Object source, List nodeEvents, List edgeEvents) {
//System.out.println("fireGraphicNodesCompositeEvent: \n\t"+nodeEvents+"\n\t"+edgeEvents/*+", source="+source*/);
Object[] listeners = listenerList.getListenerList();
CompositeCacheEvent e = null;
for (int i = listeners.length - 2; i >= 0; i -= 2) {
if (listeners[i] == CacheListener.class) {
if (e == null) {
e = new CompositeCacheEvent(source,
nodeEvents,edgeEvents);
}
((CacheListener) listeners[i + 1]).graphicNodesCompositeEvent(e);
}
}