public final class TextBlock extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
TextBlock.Builder
A factory class that creates a
TextBlock containing multiple lines of text with multiple styles. |
static class |
TextBlock.LineBuilder
A class representing a line of text with multiple words with different styles.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
static TextBlock.Builder |
newBuilder()
Creates a builder that can create text with multiple lines and styles.
|
public void close()
close
in interface AutoCloseable
@NotNull public static TextBlock.Builder newBuilder()
TextBlock.Builder