public void setAction(short id) {
		super.setAction(id);
		if (actionID == DELE_ID) {
			if (selectedComponent != null) {
				selectedComponent.setSelected(false);
				selectedComponent = null;
			}
		}
		if (selectedComponent instanceof Rotatable) {
			if (actionID == ROTA_ID) {
				// calling the following method should cause the positions of the rotation handles to be re-calculated
				selectedComponent.setSelected(true);
				((Rotatable) selectedComponent).setSelectedToRotate(true);
			} else {
				((Rotatable) selectedComponent).setSelectedToRotate(false);
			}
		}
		resetAddObjectIndicator();
		if (actionID != VELO_ID)
			selectVelocity(null);
		repaint();
	}