/** Installs a list of ROIs that will be drawn on this image as a non-destructive overlay. * @see ij.gui.Roi#setStrokeColor * @see ij.gui.Roi#setStrokeWidth * @see ij.gui.Roi#setFillColor * @see ij.gui.Roi#setLocation * @see ij.gui.Roi#setNonScalable */ public void setOverlay(Overlay overlay) { ImageCanvas ic = getCanvas(); if (ic!=null) { ic.setOverlay(overlay); overlay = null; } else this.overlay = overlay; setHideOverlay(false); }
/** * @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); }
/** Installs a list of ROIs that will be drawn on this image as a non-destructive overlay. * @see ij.gui.Roi#setStrokeColor * @see ij.gui.Roi#setStrokeWidth * @see ij.gui.Roi#setFillColor * @see ij.gui.Roi#setLocation * @see ij.gui.Roi#setNonScalable */ public void setOverlay(Overlay overlay) { ImageCanvas ic = getCanvas(); if (ic!=null) { ic.setOverlay(overlay); overlay = null; } else this.overlay = overlay; setHideOverlay(false); }
/** * @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); }
/** * @deprecated * replaced by ImagePlus.setOverlay(Roi, Color, int, Color) */ public void setDisplayList(Roi roi, Color color) { roi.setStrokeColor(color); Overlay list = new Overlay(); list.add(roi); setOverlay(list); }
/** * @deprecated * replaced by ImagePlus.setOverlay(Roi, Color, int, Color) */ public void setDisplayList(Roi roi, Color color) { roi.setStrokeColor(color); Overlay list = new Overlay(); list.add(roi); setOverlay(list); }
/** * @deprecated * replaced by ImagePlus.setOverlay(ij.gui.Overlay) */ public void setDisplayList(Vector list) { if (list!=null) { Overlay list2 = new Overlay(); list2.setVector(list); setOverlay(list2); } else setOverlay(null); if (overlay!=null) overlay.drawLabels(overlay.size()>0&&overlay.get(0).getStrokeColor()==null); else customRoi = false; repaint(); }
/** * @deprecated * replaced by ImagePlus.setOverlay(ij.gui.Overlay) */ public void setDisplayList(Vector list) { if (list!=null) { Overlay list2 = new Overlay(); list2.setVector(list); setOverlay(list2); } else setOverlay(null); if (overlay!=null) overlay.drawLabels(overlay.size()>0&&overlay.get(0).getStrokeColor()==null); else customRoi = false; repaint(); }
ic2.setOverlay(overlay2); ImageCanvas ic = getCanvas(); if (ic!=null)
ic2.setOverlay(overlay2); ImageCanvas ic = getCanvas(); if (ic!=null)
if (roi!=null) roi.setImage(this); if (overlay!=null && getCanvas()!=null) getCanvas().setOverlay(overlay); draw(); IJ.showStatus(statusMessage);
if (roi!=null) roi.setImage(this); if (overlay!=null && getCanvas()!=null) getCanvas().setOverlay(overlay); draw(); IJ.showStatus(statusMessage);