/**
* @see edu.indiana.extreme.xbaya.event.EventListener#eventReceived(edu.indiana.extreme.xbaya.event.Event)
*/
public void eventReceived(Event event) {
logger.entering();
Type type = event.getType();
if (type.equals(Event.Type.MONITOR_CONFIGURATION_CHANGED)) {
MonitorConfiguration configuration = this.engine.getMonitor()
.getConfiguration();
boolean valid = configuration.isValid();
this.startMenuItem.setEnabled(valid);
} else if (type.equals(Event.Type.MONITOR_STARTED)) {
this.startMenuItem.setEnabled(false);
this.stopMenuItem.setEnabled(true);
this.resetMenuItem.setEnabled(true);
} else if (type.equals(Event.Type.MONITOR_STOPED)) {
this.startMenuItem.setEnabled(true);
this.stopMenuItem.setEnabled(false);
} else if (type.equals(Event.Type.KARMA_STARTED)) {
this.resetMenuItem.setEnabled(true);
}
}