(String arg)
| 15 | final int polygon=0, rect=1, oval=2, line=3,freeLine=4, segLine=5, noRoi=6,freehand=7, traced=8; |
| 16 | |
| 17 | public void run(String arg) { |
| 18 | OpenDialog od = new OpenDialog("Open ROI...", arg); |
| 19 | String dir = od.getDirectory(); |
| 20 | String name = od.getFileName(); |
| 21 | if (name==null) |
| 22 | return; |
| 23 | try { |
| 24 | openRoi(dir, name); |
| 25 | } catch (IOException e) { |
| 26 | String msg = e.getMessage(); |
| 27 | if (msg==null || msg.equals("")) |
| 28 | msg = ""+e; |
| 29 | IJ.error("ROI Reader", msg); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | public void openRoi(String dir, String name) throws IOException { |
| 34 | String path = dir+name; |
nothing calls this directly
no test coverage detected