Class Span

All Implemented Interfaces:

public class Span extends StyledElement
Represents a span of styled text within a TTML document.
See Also:
  • Constructor Details

    • Span

      public Span()
      Default constructor.
    • Span

      public Span(StyledElement element)
      Initializes a Span given the styling attributes provided in element.
      element - a StyledElement with attributes to apply to Span
    • Span

      public Span(String text)
      Initializes a Span with the given text.
      text - text body for Span
  • Method Details

    • getText

      public String getText()
      The text for this Span.
    • setText

      public void setText(String text)
      The text for this Span.