/**
* {@inheritDoc}
*/
public void notifyEventListeners(final HUDEvent e) {
if (listeners != null) {
eventQueue.add(new HUDEvent(e));
if (notifying) {
// already notifying, let the current notification loop handle
// this new event as well
return;
} else {
notifying = true;
}
//logger.finest("=== [" + id + "] START notifying listeners");
while (!eventQueue.isEmpty()) {
HUDEvent ev = (HUDEvent) eventQueue.remove();
//HUDEventType type = ev.getEventType();
Iterator<HUDEventListener> iterator = listeners.iterator();
//int num = listeners.size();
//int i = 1;
while (iterator.hasNext()) {