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

Method save

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

If one ROI is selected, it is saved as a .roi file, if multiple (or no) ROIs are selected, they are saved as a .zip ROI set. Returns 'true' if the save operation was succesful. @see #setSelectedIndexes

(String path)

Source from the content-addressed store, hash-verified

962 * @see #setSelectedIndexes
963 */
964 public boolean save(String path) {
965 if (getCount()==0)
966 return error("The selection list is empty.");
967 int[] indexes = getIndexes();
968 if (indexes.length>1)
969 return saveMultiple(indexes, path);
970 else
971 return saveOne(indexes, path);
972
973 }
974
975 boolean saveOne(int[] indexes, String path) {
976 if (indexes.length==0)

Callers 2

runMethod · 0.95
runCommandMethod · 0.95

Calls 7

getCountMethod · 0.95
errorMethod · 0.95
getIndexesMethod · 0.95
saveMultipleMethod · 0.95
saveOneMethod · 0.95
getAllIndexesMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected