Handles placement of a text line, then calls textLineImpl to actually render at the specific point.
(char[] buffer, int start, int stop,
float x, float y)
| 5090 | * to actually render at the specific point. |
| 5091 | */ |
| 5092 | protected void textLineAlignImpl(char[] buffer, int start, int stop, |
| 5093 | float x, float y) { |
| 5094 | if (textAlign == CENTER) { |
| 5095 | x -= textWidthImpl(buffer, start, stop) / 2f; |
| 5096 | |
| 5097 | } else if (textAlign == RIGHT) { |
| 5098 | x -= textWidthImpl(buffer, start, stop); |
| 5099 | } |
| 5100 | |
| 5101 | textLineImpl(buffer, start, stop, x, y); |
| 5102 | } |
| 5103 | |
| 5104 | |
| 5105 | /** |
no test coverage detected