@Override
public void handleDragFinish(MouseEvent e) {
Rectangle newBounds = getNewBounds(e);
if (!newBounds.equals(initialBounds)) {
mapEditor.addEdit(new ResizeObjectEdit(targetObject, initialBounds, newBounds));
targetObject.setBounds(newBounds);
}
}