(CharSequence newText)
| 34 | } |
| 35 | |
| 36 | private void addText(CharSequence newText) { |
| 37 | if (newText == null) newText = ""; |
| 38 | if (newText instanceof StringBuilder) { |
| 39 | if (!text.equals(newText)) { |
| 40 | text.setLength(0); |
| 41 | text.append((StringBuilder) newText); |
| 42 | } |
| 43 | } else { |
| 44 | text.setLength(0); |
| 45 | text.append(newText); |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | private static CharSequence append(CharSequence text, LabelStyle style) { |
| 50 | return ((FreeBitmapFont) style.font).appendTextPro(text.toString()); |