public static final class TextBlock.LineBuilder extends Object implements AutoCloseable
Modifier and Type | Method and Description |
---|---|
TextBlock.LineBuilder |
addText(String utf8String,
TextStyle style)
Add UTF8 encoded strings with specific styling options to the line.
|
void |
close() |
protected void |
finalize() |
public void close()
close
in interface AutoCloseable
@NotNull public TextBlock.LineBuilder addText(@NotNull String utf8String, @NotNull TextStyle style)
utf8String
- text to be added to the current line.style
- styling properties for this piece of text. See TextStyle
.