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

Method clear

ij/src/main/java/ij/plugin/filter/Filler.java:84–96  ·  view source on GitHub ↗
(ImageProcessor ip)

Source from the content-addressed store, hash-verified

82 }
83
84 public void clear(ImageProcessor ip) {
85 ip.setGlobalBackgroundColor();
86 if (isLineSelection()) {
87 if (isStraightLine() && roi.getStrokeWidth()>1)
88 ip.fillPolygon(roi.getPolygon());
89 else
90 roi.drawPixels();
91 } else if (roi!=null && roi instanceof TextRoi)
92 ((TextRoi)roi).clear(ip);
93 else
94 ip.fill(); // fill with background color
95 ip.setGlobalForegroundColor();
96 }
97
98 /**
99 * @deprecated

Callers 11

runMethod · 0.95
loadPropertiesMethod · 0.45
straightenRotatedRectMethod · 0.45
dropMethod · 0.45
installMethod · 0.45
removeShortcutsMethod · 0.45
resetMethod · 0.45
deleteMethod · 0.45
sortMethod · 0.45
resetMethod · 0.45
closeMethod · 0.45

Calls 9

isLineSelectionMethod · 0.95
isStraightLineMethod · 0.95
getStrokeWidthMethod · 0.80
fillPolygonMethod · 0.80
getPolygonMethod · 0.45
drawPixelsMethod · 0.45
fillMethod · 0.45

Tested by

no test coverage detected