MCPcopy Create free account
hub / github.com/Var3D/var3dframe / addText

Method addText

core/src/core/java/var3d/net/center/VLabel.java:36–47  ·  view source on GitHub ↗
(CharSequence newText)

Source from the content-addressed store, hash-verified

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());

Callers 2

VLabelMethod · 0.95
setTextMethod · 0.95

Calls 2

equalsMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected