IAtom endPointA = (IAtom) mapping.getChemObject(0);
IAtom endPointB = (IAtom) mapping.getChemObject(1);
Point2d pA = endPointA.getPoint2d();
Point2d pB = endPointB.getPoint2d();
elementGroup.add(
new LineElement(pA.x, pA.y, pB.x, pB.y, getWidthForMappingLine(model), mappingColor));
}
return elementGroup;
}