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
(Overlay overlay)
| 3490 | * @see ij.gui.Roi#setNonScalable |
| 3491 | */ |
| 3492 | public void setOverlay(Overlay overlay) { |
| 3493 | this.overlay = overlay; |
| 3494 | setHideOverlay(false); |
| 3495 | ImageCanvas ic = getCanvas(); |
| 3496 | if (ic!=null) |
| 3497 | ic.repaintOverlay(); |
| 3498 | } |
| 3499 | |
| 3500 | /** Creates an Overlay from the specified Shape, Color |
| 3501 | * and BasicStroke, and assigns it to this image. |
no test coverage detected