(Graphics g, float w, float h, final boolean pressed)
| 341 | } |
| 342 | |
| 343 | protected void drawContent(Graphics g, float w, float h, final boolean pressed) { |
| 344 | float x = insets.x; |
| 345 | float y = insets.y; |
| 346 | w -= 2 * x; |
| 347 | h -= 2 * y; |
| 348 | if (pressed) { //while pressed, translate graphics so icon and text appear shifted down and to the right |
| 349 | x += Utils.scale(1); |
| 350 | y += Utils.scale(1); |
| 351 | } |
| 352 | drawContent(g, x, y, w, h); |
| 353 | } |
| 354 | |
| 355 | protected void drawContent(Graphics g, float x, float y, float w, float h) { |
| 356 | try { |
no test coverage detected