@Override
protected void copyPoints(final IShape sh) {
super.copyPoints(sh);
if(sh instanceof IControlPointShape) {
final IControlPointShape cpSh = (IControlPointShape)sh;
List<IPoint> pts = cpSh.getFirstCtrlPts();
firstCtrlPts.clear();
for(final IPoint pt : pts)
firstCtrlPts.add(ShapeFactory.createPoint(pt));
pts = cpSh.getSecondCtrlPts();
secondCtrlPts.clear();
for(final IPoint pt : pts)
secondCtrlPts.add(ShapeFactory.createPoint(pt));
}
}