Package com.brightcove.player.model
Class Span
java.lang.Object
com.brightcove.player.model.Element
com.brightcove.player.model.StyledElement
com.brightcove.player.model.Span
- All Implemented Interfaces:
Serializable
Represents a span of styled text within a TTML document.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.brightcove.player.model.StyledElement
StyledElement.FontStyle, StyledElement.FontWeight, StyledElement.TextAlign, StyledElement.TextDecoration, StyledElement.Unit
-
Field Summary
Fields inherited from class com.brightcove.player.model.StyledElement
backgroundColor, color, fontFamily, fontSize, fontStyle, fontWeight, styleName, textAlign, textDecoration
-
Constructor Summary
ConstructorDescriptionSpan()
Default constructor.Span
(StyledElement element) Initializes a Span given the styling attributes provided in element.Initializes a Span with the given text. -
Method Summary
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
-
Constructor Details
-
Span
public Span()Default constructor. -
Span
Initializes a Span given the styling attributes provided in element.- Parameters:
element
- a StyledElement with attributes to apply to Span
-
Span
Initializes a Span with the given text.- Parameters:
text
- text body for Span
-
-
Method Details
-
getText
The text for this Span. -
setText
The text for this Span.
-