(int index)
| 402 | } |
| 403 | |
| 404 | protected void deletePoint(int index) { |
| 405 | super.deletePoint(index); |
| 406 | if (index>=0 && index<=nPoints && counters!=null) { |
| 407 | counts[counters[index]]--; |
| 408 | for (int i=index; i<nPoints; i++) { |
| 409 | counters[i] = counters[i+1]; |
| 410 | positions[i] = positions[i+1]; |
| 411 | } |
| 412 | if (rt!=null && WindowManager.getFrame(getCountsTitle())!=null) |
| 413 | displayCounts(); |
| 414 | } else if (index==0 && nPoints==0) |
| 415 | counts[0] = 0; |
| 416 | |
| 417 | } |
| 418 | |
| 419 | private synchronized void incrementCounter(ImagePlus imp) { |
| 420 | counts[counter]++; |
no test coverage detected