* org.openscience.cdk.controller.IChemModelRelay#addAtom(java.lang.String,
* int, javax.vecmath.Point2d)
*/
public IAtom addAtom(String atomType, int isotopeNumber,
Point2d worldCoord, boolean makePseudoAtom) {
IAtomContainer undoRedoContainer = chemModel.getBuilder()
.newInstance(IAtomContainer.class);
undoRedoContainer.addAtom(addAtomWithoutUndo(atomType, isotopeNumber,
worldCoord, makePseudoAtom));
if (getUndoRedoFactory() != null && getUndoRedoHandler() != null) {
IUndoRedoable undoredo = getUndoRedoFactory()
.getAddAtomsAndBondsEdit(chemModel, undoRedoContainer,
null, "Add Atom", this);
getUndoRedoHandler().postEdit(undoredo);
}
return undoRedoContainer.getAtom(0);
}