TextGroup
Inheritance: java.lang.Object
public class TextGroup
文本组
构造函数
| Constructor | 描述 |
|---|---|
| TextGroup(String text, TextStyle style) | Constructor |
方法
| 方法 | 描述 |
|---|---|
| getText() | 组中的文本 |
| updateText(String newText) | 更新文本 |
| getStyle() | 文本组的样式 |
TextGroup(String text, TextStyle style)
public TextGroup(String text, TextStyle style)
Constructor
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| text | java.lang.String | 组中的文本 |
| style | TextStyle | 组的样式 |
getText()
public final String getText()
组中的文本
Returns: java.lang.String - 字符串值
updateText(String newText)
public final void updateText(String newText)
更新文本
Parameters:
| 参数 | 类型 | 描述 |
|---|---|---|
| newText | java.lang.String | 新文本的值 |
getStyle()
public final TextStyle getStyle()
文本组的样式
Returns: TextStyle - TextStyle instance