Class Span

  • All Implemented Interfaces:
    java.io.Serializable

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

      • Span

        public Span()
        Default constructor.
      • Span

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

        public Span​(java.lang.String text)
        Initializes a Span with the given text.
        Parameters:
        text - text body for Span
    • Method Detail

      • getText

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

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