-
- All Implemented Interfaces:
-
java.io.Serializable
public class Span extends StyledElement
Represents a span of styled text within a TTML document.
-
-
Constructor Summary
Constructors Constructor Description Span()
Default constructor. Span(StyledElement element)
Initializes a Span given the styling attributes provided in element. Span(String text)
Initializes a Span with the given text.
-
Method Summary
Modifier and Type Method Description String
getText()
The text for this Span. void
setText(String text)
The text for this Span. -
Methods inherited from class com.brightcove.player.model.StyledElement
getBackgroundColor, getColor, getFontFamily, getFontSize, getFontStyle, getFontWeight, getStyleName, getTextAlign, getTextDecoration, setBackgroundColor, setColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setStyleName, setTextAlign, setTextDecoration
-
Methods inherited from class com.brightcove.player.model.Element
getID, setID
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Span
Span()
Default constructor.
-
Span
Span(StyledElement element)
Initializes a Span given the styling attributes provided in element.- Parameters:
element
- a StyledElement with attributes to apply to Span
-
Span
Span(String text)
Initializes a Span with the given text.- Parameters:
text
- text body for Span
-
-
-
-