@Override
	public void actionPerformed(ActionEvent arg0) {

		JCheckBoxMenuItem clickedItem = (JCheckBoxMenuItem) arg0
				.getSource();

		if (arg0.getActionCommand().equals("paintDoorLabels")) {

			paintDoorLabels = clickedItem.isSelected();

		} else if (arg0.getActionCommand().equals("paintSensorLabels")) {

			paintSensorLabels = clickedItem.isSelected();

		} else if (arg0.getActionCommand().equals("paintRoomLabels")) {

			paintRoomLabels = clickedItem.isSelected();

		} else if (arg0.getActionCommand().equals("paintSensorMonitoringArea")) {

			paintSensorMonitoringArea = clickedItem.isSelected();

		} else if (arg0.getActionCommand().equals("paintDoorCentralPoints")) {

			paintDoorCentralPoints = clickedItem.isSelected();

		} else if (arg0.getActionCommand().equals("paintRoomCentralPoints")) {

			paintRoomCentralPoints = clickedItem.isSelected();

		} else if (arg0.getActionCommand().equals("paintSensors")) {

			paintSensors = clickedItem.isSelected();
		}

		simulationPanel.paintScaledSimulation();
	}