()
| 440 | } |
| 441 | |
| 442 | protected float getTextLeft() { |
| 443 | switch (alignment) { |
| 444 | case Align.left: |
| 445 | default: |
| 446 | return getLeftPadding(); |
| 447 | case Align.center: |
| 448 | return getLeftPadding() + (getWidth() - getRightPadding() - getLeftPadding() - renderedFont.getBounds(text).width) / 2; |
| 449 | case Align.right: |
| 450 | return getWidth() - getRightPadding() - renderedFont.getBounds(text).width; |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | protected float getLeftPadding() { |
| 455 | return PADDING; |
no test coverage detected