@Override
public void updateOverlay(final RectangleFigure figure,
final OverlayView view)
{
super.updateOverlay(figure, view);
final RectangleOverlay overlay = downcastOverlay(view.getData());
final Rectangle2D.Double bounds = figure.getBounds();
final double x = bounds.getMinX();
final double y = bounds.getMinY();
final double w = bounds.getWidth();
final double h = bounds.getHeight();
overlay.setOrigin(x, 0);
overlay.setOrigin(y, 1);
overlay.setExtent(w, 0);
overlay.setExtent(h, 1);
overlay.update();
toolService.reportRectangle(x, y, w, h);
}