public void mouseClicked(MouseEvent event) {
		if (getDrawer().getAutomaton().getEnvironmentFrame() !=null)
    		((AutomatonEnvironment)getDrawer().getAutomaton().getEnvironmentFrame().getEnvironment()).saveStatus();
		State state = getDrawer().stateAtPoint(event.getPoint());
		if (state != null) {
			getAutomaton().removeState(state);
			getView().repaint();
			return;
		}
		Transition trans = getDrawer().transitionAtPoint(event.getPoint());
		if (trans != null) {
			getAutomaton().removeTransition(trans);
			getView().repaint();
		}
	}