else {
Figure oldFigure = oldFigureHolder.getFigure();
super.replace(oldFigure, fig);
removeFromTable(oldFigureHolder);
addToTable(figureHolder);
FigureChangeEvent ev = new FigureChangeEvent(oldFigure);
figureRequestUpdate(ev);
if (sendToFront) {
if (log.isLoggable(Level.FINE)) this.log.fine("update: send to front");
bringToFront(fig);
}
else if (sendToBack) {
if (log.isLoggable(Level.FINE)) this.log.fine("update: send to back");
sendToBack(fig);
}
}
FigureChangeEvent ev1 = new FigureChangeEvent(fig);
figureRequestUpdate(ev1);
}