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

Method setStrokeWidth

ij/src/main/java/ij/gui/Toolbar.java:333–339  ·  view source on GitHub ↗
(Graphics2D g2d)

Source from the content-addressed store, hash-verified

331 }
332
333 private void setStrokeWidth(Graphics2D g2d) {
334 if (scale==1) {
335 if (dscale>1.0)
336 g2d.setStroke(new BasicStroke(IJ.isMacOSX()?1.4f:1.25f));
337 } else
338 g2d.setStroke(new BasicStroke(scale));
339 }
340
341 private void fill3DRect(Graphics g, int x, int y, int width, int height, boolean raised) {
342 if (null==g) return;

Callers 4

drawButtonsMethod · 0.95
setTool2Method · 0.95
repaintToolMethod · 0.95
setIconMethod · 0.45

Calls 2

isMacOSXMethod · 0.95
setStrokeMethod · 0.80

Tested by

no test coverage detected