* @param worldCoord
* @return a AtomContainer containing the atoms/bond that should be affected
* by this action. Otherwise <code>null</code>.
*/
protected IAtomContainer getSelectedAtomContainer(Point2d worldCoord) {
JChemPaintRendererModel rModel =
chemModelRelay.getRenderer().getRenderer2DModel();
IAtom atom = chemModelRelay.getClosestAtom(worldCoord);
IBond bond = chemModelRelay.getClosestBond(worldCoord);
IChemObjectSelection localSelection = rModel.getSelection();
IChemObject chemObject = getHighlighted(worldCoord, atom, bond);
if (localSelection==null || !localSelection.contains(chemObject)) {
if (chemObject != null) {
localSelection = new SingleSelection<IChemObject>(chemObject);