public void setAction(short id) {
		super.setAction(id);
		resetAddObjectIndicator();
		if (actionID == ROTA_ID) {
			if (selectedComponent instanceof GayBerneParticle) {
				((GayBerneParticle) selectedComponent).setSelectedToRotate(true);
			}
		} else {
			if (selectedComponent instanceof GayBerneParticle) {
				((GayBerneParticle) selectedComponent).setSelectedToRotate(false);
			}
		}
		if (actionID == RESI_ID) {
			if (selectedComponent instanceof GayBerneParticle) {
				((GayBerneParticle) selectedComponent).setSelectedToResize(true);
			}
		} else {
			if (selectedComponent instanceof GayBerneParticle) {
				((GayBerneParticle) selectedComponent).setSelectedToResize(false);
			}
		}
		if (actionID == DELE_ID) {
			if (selectedComponent != null) {
				selectedComponent.setSelected(false);
				selectedComponent = null;
			}
		}
		if (actionID != OMEG_ID)
			selectOmega(null);
		if (actionID != VELO_ID)
			selectVelocity(null);
		repaint();
	}