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

Method contains

ij/src/main/java/ij/gui/Overlay.java:141–147  ·  view source on GitHub ↗
(Roi roi, int x, int y)

Source from the content-addressed store, hash-verified

139 }
140
141 private boolean contains(Roi roi, int x, int y) {
142 if (roi==null) return false;
143 if (roi instanceof Line)
144 return (((Line)roi).getFloatPolygon(10)).contains(x,y);
145 else
146 return roi.contains(x,y);
147 }
148
149 /** Returns 'true' if this Overlay contains the specified ROI. */
150 public boolean contains(Roi roi) {

Callers 3

indexAtMethod · 0.95
isActiveOverlayRoiMethod · 0.95
setLabelFontSizeMethod · 0.45

Calls 1

getFloatPolygonMethod · 0.45

Tested by

no test coverage detected