public void setZoomManager(ZoomManager manager) {

        if ( zoomManager != null ) {
            zoomManager.removeZoomListener( this );
        }

        zoomManager = manager;

        if ( zoomManager != null ) {
            zoomManager.addZoomListener( this );
        }

    }
public void setZoomManager(ZoomManager manager) {

        if ( zoomManager != null ) {
            zoomManager.removeZoomListener( this );
        }

        zoomManager = manager;

        if ( zoomManager != null ) {
            zoomManager.addZoomListener( this );
        }

    }
public void setZoomManager ( ZoomManager manager ) { if ( zoomManager != null ) { zoomManager . removeZoomListener ( this ) ; } zoomManager = manager ; if ( zoomManager != null ) { zoomManager . addZoomListener ( this ) ; } }
Replaces existing zoomManager with the new one.

Implementation is null-safe.

@param newManager new zoom manager
Replaces existing zoomManager with the new one .