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

Method contains

ij/src/main/java/ij/gui/PointRoi.java:536–541  ·  view source on GitHub ↗

Returns true if (x,y) is one of the points in this collection.

(int x, int y)

Source from the content-addressed store, hash-verified

534
535 /** Returns true if (x,y) is one of the points in this collection. */
536 public boolean contains(int x, int y) {
537 for (int i=0; i<nPoints; i++) {
538 if (x==this.x+xpf[i] && y==this.y+ypf[i]) return true;
539 }
540 return false;
541 }
542
543 public void setShowLabels(boolean showLabels) {
544 this.showLabels = showLabels;

Callers 3

setOptionsMethod · 0.45
drawMethod · 0.45
cropMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected