Class TextBlock.LineBuilder

java.lang.Object
com.luciad.text.TextBlock.LineBuilder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
TextBlock

public static final class TextBlock.LineBuilder extends Object implements AutoCloseable
A class representing a line of text with multiple words with different styles.
  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • addText Link icon

      @NotNull public TextBlock.LineBuilder addText(@NotNull String utf8String, @NotNull TextStyle style)
      Add UTF8 encoded strings with specific styling options to the line.
      Parameters:
      utf8String - text to be added to the current line.
      style - styling properties for this piece of text. See TextStyle.
      Returns:
      the current line.