shape = getPolygon(c);
} else if ("text".equals(type) && text != null) {
// text x y
c = imageToScreenCoords(c);
Point2D.Double pos = new Point2D.Double(c[0], c[1]);
ImageLabel fig = new ImageLabel(text, pos, fill, font, graphics.getSelectionInteractor());
canvasDraw.addFigure(fig);
} else if ("path".equals(type)) {
shape = getPath(c);
}
if (shape != null) {
// ImageFigure fig = new ImageFigure(shape, fill, outline, lineWidth, interactor);
RoiFigure fig = new RoiFigure(shape, fill, outline, lineWidth, interactor);
if (composite != null) {
fig.setComposite((AlphaComposite) composite);
}
canvasDraw.addFigure(fig);
}
}
}