(Graphics g, float x, float y, float w, float h, int align)
| 444 | } |
| 445 | |
| 446 | private void drawText(Graphics g, float x, float y, float w, float h, int align) { |
| 447 | g.startClip(x, y, w, h); |
| 448 | if (textRenderer == null) { |
| 449 | g.drawText(text, font, textColor, x, y, w, h, false, align, true); |
| 450 | } |
| 451 | else { |
| 452 | textRenderer.drawText(g, text, font, textColor, x, y, w, h, y, h, false, align, true); |
| 453 | } |
| 454 | g.endClip(); |
| 455 | } |
| 456 | |
| 457 | private float getTextWidth() { |
| 458 | if (textRenderer == null) { |
no test coverage detected