Rectangle r = new Rectangle();
int limit = rect.x + rect.width / 2;
while (iterator.hasNext()) {
Figure figure = (Figure) iterator.next();
if (!(figure instanceof ConnectionFigure)) {
figure.moveBy(limit - figure.center().x, 0);
}
}
drawingEditor.getCurrentView().repairDamage();
}