private void moveHostTo(ModelComponent host, double x, double y) {
		if (host instanceof Atom) {
			Atom a = (Atom) host;
			if (a.isBonded()) {
				Molecule m = model.getMolecules().getMolecule(a);
				m.translateAtomTo(a, x, y);
				boundary.setRBC(m);
			} else {
				a.translateTo(x, y);
				boundary.setRBC(a);
			}
			refreshForces();
		} else if (host instanceof RadialBond) {
			RadialBond rBond = (RadialBond) host;
			Molecule m = rBond.getMolecule();
			m.translateBondCenterTo(rBond, x, y);
			boundary.setRBC(m);
			refreshForces();
		} else if (host instanceof RectangularObstacle) {
			RectangularObstacle obs = (RectangularObstacle) host;
			obs.translateCenterTo(x, y);
		}
	}