g2D.drawString(roi.getText(), p.x, p.y);
g2D.drawString(roi.getLabel(), p.x, p.y);
    private void paintROICollection(Graphics2D g2D, List l)    {        Iterator i = l.iterator();        ROIShape roi;        Shape s;        Rectangle r;        magFactor = manager.getCurrentImageAffineTransform().getMagFactor();        while (i.hasNext()) {            roi = (ROIShape) i.next();            setShapeBounds(roi);            s = roi.getShape();            g2D.setColor(roi.getLineColor());            g2D.draw(s);            r = s.getBounds();            if (textOnOff) {                Point p = ROIFactory.setLabelLocation(s, roi.getShapeType(),                                                         LENGTH);                g2D.drawString(roi.getText(), p.x, p.y);            }            if (roi.getIndex() == indexSelected) {                                square.setRect(r.x-LENGTH/2, r.y+r.height/2-LENGTH/2, LENGTH,                                LENGTH);                g2D.setPaint(squareColor);                g2D.fill(square);            }        }    }