Replaces the ROI at the specified index.
(Roi roi, int index)
| 67 | |
| 68 | /** Replaces the ROI at the specified index. */ |
| 69 | public void set(Roi roi, int index) { |
| 70 | if (index<0 || index>=list.size()) |
| 71 | throw new IllegalArgumentException("set: index out of range"); |
| 72 | if (roi!=null) |
| 73 | list.set(index, roi); |
| 74 | } |
| 75 | |
| 76 | /** Removes the ROI with the specified index from this Overlay. */ |
| 77 | public void remove(int index) { |
no test coverage detected