r.setText("#"+n);
r.setLabel("#"+n);
    private void undoEraseAll(ROIShape roi)    {        int n = listROIErase.size();        Iterator i = listROI.iterator();        ROIShape r;        while (i.hasNext()) {            r = (ROIShape) i.next();            r.setIndex(n);            r.setText("#"+n);            n++;        }        listROI.addAll(listROIErase);        listROIErase.removeAll(listROIErase);        currentROI = roi;        currentShape = roi.getShape();        eraseAll = false;        view.setIndexSelected(roi.getIndex());    }