if (mng.getCurrentROI() != null) mng.erase();
ROIShape roi = mng.getCurrentROI(); if (roi != null && roi.getAnnotation() != null && mng.isAnnotationOnOff()) { setAnnotation(null); } if (roi != null) mng.erase();
    public void erase()    {        DrawingCanvasMng mng = drawingCanvas.getManager();        if (mng.getCurrentROI() != null) mng.erase();     }