Package com.brightcove.player.model
Class StyledElement
java.lang.Object
com.brightcove.player.model.Element
com.brightcove.player.model.StyledElement
- All Implemented Interfaces:
Serializable
Provides a common representation for TTML styled elements.
http://www.w3.org/TR/ttaf1-dfxp/#styling
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The background color string.protected String
The color string.protected String
protected Length
protected StyledElement.FontStyle
protected StyledElement.FontWeight
protected String
The style name string.protected StyledElement.TextAlign
protected StyledElement.TextDecoration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe background color string.getColor()
The color string.The style name string.void
setBackgroundColor
(String backgroundColor) The background color string.void
The color string.void
setFontFamily
(String fontFamily) void
setFontSize
(Length fontSize) void
setFontStyle
(StyledElement.FontStyle fontStyle) void
setFontWeight
(StyledElement.FontWeight fontWeight) void
setStyleName
(String styleName) The style name string.void
setTextAlign
(StyledElement.TextAlign textAlign) void
setTextDecoration
(StyledElement.TextDecoration textDecoration)
-
Field Details
-
styleName
The style name string. -
color
The color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color -
backgroundColor
The background color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color -
fontSize
-
fontWeight
-
fontStyle
-
textDecoration
-
textAlign
-
fontFamily
-
-
Constructor Details
-
StyledElement
public StyledElement()
-
-
Method Details
-
getStyleName
The style name string. -
setStyleName
The style name string. -
getColor
The color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color -
setColor
The color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color -
getBackgroundColor
The background color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color -
setBackgroundColor
The background color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color -
getFontSize
-
setFontSize
-
getFontStyle
-
setFontStyle
-
getTextAlign
-
setTextAlign
-
getFontWeight
-
setFontWeight
-
getTextDecoration
-
setTextDecoration
-
setFontFamily
-
getFontFamily
-