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

Method setRoi

ij/src/main/java/ij/plugin/frame/RoiManager.java:553–558  ·  view source on GitHub ↗

Replaces the ROI at the specified index.

(Roi roi, int index)

Source from the content-addressed store, hash-verified

551
552 /** Replaces the ROI at the specified index. */
553 public void setRoi(Roi roi, int index) {
554 if (index<0 || index>=rois.size())
555 throw new IllegalArgumentException("setRoi: Index out of range");
556 rois.set(index, (Roi)roi.clone());
557 updateShowAll();
558 }
559
560 boolean isStandardName(String name) {
561 if (name==null)

Callers 15

makeLineMethod · 0.45
makeArrowMethod · 0.45
makeRotatedRectangleMethod · 0.45
displayBatchModeImageMethod · 0.45
getStatisticsMethod · 0.45
makePointMethod · 0.45
activateSelectionMethod · 0.45
doRoiMethod · 0.45
setSplineAnchorsMethod · 0.45
enlargeMethod · 0.45
drawBarAsOverlayMethod · 0.45
straightenRGBMethod · 0.45

Calls 4

updateShowAllMethod · 0.95
cloneMethod · 0.65
sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected