/** Returns the ROI with the specified name or null if not found. */ public Roi get(String name) { int index = getIndex(name); if (index==-1) return null; else return get(index); }
/** Returns the ROI with the specified name or null if not found. */ public Roi get(String name) { int index = getIndex(name); if (index==-1) return null; else return get(index); }
public void run(String arg) { imp = IJ.getImage(); Overlay overlay = imp.getOverlay(); int index = overlay!=null?overlay.getIndex(GRID):-1; if (index>=0) gridOnEntry = overlay.get(index); if (showDialog() && !isMacro) saveSettings(); }
public void run(String arg) { imp = IJ.getImage(); Overlay overlay = imp.getOverlay(); int index = overlay!=null?overlay.getIndex(GRID):-1; if (index>=0) gridOnEntry = overlay.get(index); if (showDialog() && !isMacro) saveSettings(); }