MCPcopy Index your code
hub / github.com/benfry/processing4 / paint

Method paint

app/src/processing/app/ui/About.java:77–91  ·  view source on GitHub ↗
(Graphics g)

Source from the content-addressed store, hash-verified

75
76
77 public void paint(Graphics g) {
78 Graphics2D g2 = (Graphics2D) g;
79
80 // macOS looks better doing its own thing, Windows and Linux need AA
81 g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
82 Platform.isMacOS() ?
83 RenderingHints.VALUE_TEXT_ANTIALIAS_DEFAULT :
84 RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
85
86 g.drawImage(icon.getImage(), 0, 0, width, height, null);
87
88 g.setFont(Toolkit.getSansFont(12, Font.PLAIN));
89 g.setColor(Color.DARK_GRAY);
90 g.drawString(Base.getVersionName(), width - 40, height - 15);
91 }
92}

Callers 1

updateMethod · 0.45

Calls 6

isMacOSMethod · 0.95
getSansFontMethod · 0.95
getVersionNameMethod · 0.95
getImageMethod · 0.45
setColorMethod · 0.45
drawStringMethod · 0.45

Tested by

no test coverage detected