@SuppressWarnings("unchecked") @Override protected void creationFinished(final Figure figure) { super.creationFinished(figure); final JHotDrawService jHotDrawService = getDisplay().getContext().getService(JHotDrawService.class); jHotDrawService.linkOverlay((F)figure, getAdapter(), getDisplay()); }
@SuppressWarnings("unchecked") @Override protected void creationFinished(final Figure figure) { super.creationFinished(figure); final JHotDrawService jHotDrawService = getDisplay().getContext().getService(JHotDrawService.class); jHotDrawService.linkOverlay((F)figure, getAdapter(), getDisplay()); }
r.add(evt.getX(), evt.getY()); maybeFireBoundsInvalidated(r); creationFinished(createdFigure); createdFigure = null;