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

Method deletePoint

ij/src/main/java/ij/gui/PointRoi.java:404–417  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

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]++;

Callers 2

PointRoiMethod · 0.95
cropMethod · 0.95

Calls 3

getFrameMethod · 0.95
getCountsTitleMethod · 0.95
displayCountsMethod · 0.95

Tested by

no test coverage detected