(Graphics g)
| 105 | } |
| 106 | |
| 107 | public void paint(Graphics g) { |
| 108 | g.setColor(c); |
| 109 | g.fillRect(0, 0, width, height); |
| 110 | int intensity = (c.getRed()+c.getGreen()+c.getBlue())/3; |
| 111 | Color c2 = intensity<128?Color.white:Color.black; |
| 112 | g.setColor(c2); |
| 113 | g.setFont(font); |
| 114 | Java2.setAntialiasedText(g, true); |
| 115 | String s = Colors.colorToString(c); |
| 116 | g.drawString(s, 5, height-5); |
| 117 | g.setColor(Color.black); |
| 118 | g.drawRect(0, 0, width-1, height-1); |
| 119 | } |
| 120 | |
| 121 | } |
nothing calls this directly
no test coverage detected