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

Method setColor

ij/src/main/java/ij/plugin/tool/BrushTool.java:212–221  ·  view source on GitHub ↗
(Color c)

Source from the content-addressed store, hash-verified

210 }
211
212 private void setColor(Color c) {
213 if (gd==null)
214 return;
215 String name = Colors.colorToString2(c);
216 if (name.length()>0) {
217 Vector choices = gd.getChoices();
218 Choice ch = (Choice)choices.elementAt(0);
219 ch.select(name);
220 }
221 }
222
223
224 private void showToolSize(int deltaWidth, ImagePlus imp) {

Callers 1

mousePressedMethod · 0.95

Calls 4

colorToString2Method · 0.95
getChoicesMethod · 0.80
lengthMethod · 0.65
selectMethod · 0.45

Tested by

no test coverage detected