(Graphics g)
| 213 | } |
| 214 | |
| 215 | @Override |
| 216 | public void draw(Graphics g) { |
| 217 | super.draw(g); |
| 218 | |
| 219 | float divotWidth = getDivotWidth(); |
| 220 | float divotHeight = divotWidth * 0.5f; |
| 221 | float x3 = getWidth() - PADDING - 1; |
| 222 | float x1 = x3 - divotWidth; |
| 223 | float x2 = x1 + divotWidth / 2; |
| 224 | float y1 = getHeight() / 2 - 1; |
| 225 | float y2 = y1 + divotHeight; |
| 226 | float y3 = y1; |
| 227 | g.fillTriangle(getForeColor(), x1, y1, x2, y2, x3, y3); |
| 228 | } |
| 229 | |
| 230 | private float getDivotWidth() { |
| 231 | return getHeight() / 3 + 1; |
nothing calls this directly
no test coverage detected