MCPcopy Create free account
hub / github.com/PCGen/pcgen / paintIcon

Method paintIcon

code/src/java/pcgen/gui2/util/SignIcon.java:42–51  ·  view source on GitHub ↗
(Component c, Graphics g, int x, int y)

Source from the content-addressed store, hash-verified

40 }
41
42 @Override
43 public void paintIcon(Component c, Graphics g, int x, int y)
44 {
45 g.setColor(Color.BLACK);
46 g.fillRect(x, y + 3, 9, 3);
47 if (sign == Sign.Plus)
48 {
49 g.fillRect(x + 3, y, 3, 9);
50 }
51 }
52
53 @Override
54 public int getIconWidth()

Callers 1

createDefaultPortraitMethod · 0.45

Calls 1

setColorMethod · 0.80

Tested by

no test coverage detected