/** @deprecated replaced by ImagePlus.setOverlay(Shape, Color, BasicStroke) */
 public void setDisplayList(Shape shape, Color color, BasicStroke stroke) {
   if (shape == null) {
     setOverlay(null);
     return;
   }
   Roi roi = new ShapeRoi(shape);
   roi.setStrokeColor(color);
   roi.setStroke(stroke);
   Overlay list = new Overlay();
   list.add(roi);
   setOverlay(list);
 }
Beispiel #2
0
 private void transferProperties(Roi roi1, Roi roi2) {
   if (roi1 == null || roi2 == null) return;
   roi2.setStrokeColor(roi1.getStrokeColor());
   if (roi1.getStroke() != null) roi2.setStroke(roi1.getStroke());
   roi2.setDrawOffset(roi1.getDrawOffset());
 }