(int xx, int yy, boolean addingPoint)
| 161 | } |
| 162 | |
| 163 | private void record(int xx, int yy, boolean addingPoint) { |
| 164 | if (!IJ.recording()) |
| 165 | return; |
| 166 | String add = Prefs.pointAddToOverlay?" add":""; |
| 167 | String options = sizes[convertSizeToIndex(size)]+" "+Colors.colorToString(getColor())+" "+types[type]+add; |
| 168 | options = options.toLowerCase(); |
| 169 | if (addingPoint) |
| 170 | options = "add"; |
| 171 | if (Recorder.scriptMode()) |
| 172 | Recorder.recordCall("imp.setRoi(new PointRoi("+xx+","+yy+",\""+options+"\"));"); |
| 173 | else |
| 174 | Recorder.record("makePoint", xx, yy, options); |
| 175 | } |
| 176 | |
| 177 | public void setOptions(String options) { |
| 178 | if (options==null) |
no test coverage detected