public Molecule whichMolecule(int x, int y) {
		if (selectedComponent instanceof Molecule)
			if (actionID == ROTA_ID && ((Molecule) selectedComponent).getRotationHandle(x, y) != -1)
				return (Molecule) selectedComponent;
		Atom at = whichAtom(x, y);
		if (at == null)
			return null;
		return molecules.getMolecule(at);
	}