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

Method drawTool

ij/src/main/java/ij/gui/Toolbar.java:1445–1456  ·  view source on GitHub ↗
(int tool, boolean drawDown)

Source from the content-addressed store, hash-verified

1443 }
1444
1445 void drawTool(int tool, boolean drawDown) {
1446 down[tool] = drawDown;
1447 Graphics g = this.getGraphics();
1448 if (g==null) return;
1449 if (!drawDown) {
1450 Graphics2D g2d = (Graphics2D)g;
1451 g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
1452 }
1453 drawButton(g, tool);
1454 if (null!=g)
1455 g.dispose();
1456 }
1457
1458 boolean isLine(int tool) {
1459 return tool==LINE || tool==POLYLINE || tool==FREELINE;

Callers 1

triggerPopupMenuMethod · 0.95

Calls 4

drawButtonMethod · 0.95
getGraphicsMethod · 0.80
setRenderingHintMethod · 0.80
disposeMethod · 0.45

Tested by

no test coverage detected