class ResizeControlImpl extends AbstractCanvasHandlerRegistrationControl<AbstractCanvasHandler> implements ResizeControl<AbstractCanvasHandler, Element> {

    @SuppressWarnings("unchecked")
    protected void onCanvasSelectionEvent(@Observes CanvasSelectionEvent event) {
        checkNotNull("event",
                     event);
        if (event.getIdentifiers().size() == 1) {
            final String uuid = event.getIdentifiers().iterator().next();
            if (isSameCanvas(event) && isRegistered(uuid)) {
                hideALLCPs();
                final HasControlPoints<?> hasControlPoints = getControlPointsInstance(uuid);
                if (!hasControlPoints.areControlsVisible()) {
                    showCPs(hasControlPoints);
                }
            }
        } else if (event.getIdentifiers().size() > 1){
            hideALLCPs();
        }
    }

    protected  ResizeControlImpl();
    @Inject public  ResizeControlImpl(final CanvasCommandFactory<AbstractCanvasHandler> canvasCommandFactory);

}