MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / setRoi

Method setRoi

ij/src/main/java/ij/ImagePlus.java:2155–2157  ·  view source on GitHub ↗

Assigns the specified ROI to this image and displays it. Any existing ROI is deleted if roi is null or its width or height is zero.

(Roi newRoi)

Source from the content-addressed store, hash-verified

2153 /** Assigns the specified ROI to this image and displays it. Any existing
2154 ROI is deleted if <code>roi</code> is null or its width or height is zero. */
2155 public void setRoi(Roi newRoi) {
2156 setRoi(newRoi, true);
2157 }
2158
2159 /** Assigns 'newRoi' to this image and displays it if 'updateDisplay' is true. */
2160 public void setRoi(Roi newRoi, boolean updateDisplay) {

Callers 15

ImagePlusMethod · 0.95
revertMethod · 0.95
duplicateMethod · 0.95
cropMethod · 0.95
pasteMethod · 0.95
flattenMethod · 0.95
makeRectangleMethod · 0.95
makeOvalMethod · 0.95
makePointMethod · 0.95
undoMethod · 0.95
makeRectangleMethod · 0.95
makeSelectionMethod · 0.95

Calls 15

deleteRoiMethod · 0.95
recordingMethod · 0.95
getInstanceMethod · 0.95
imageUpdatedMethod · 0.95
getIDMethod · 0.95
runMethod · 0.95
drawMethod · 0.95
isAreaMethod · 0.80
getBoundsMethod · 0.65
getImageMethod · 0.65
cloneMethod · 0.65
getTypeMethod · 0.65

Tested by

no test coverage detected