Package com.brightcove.player.model
Class StyledElement
- java.lang.Object
-
- com.brightcove.player.model.Element
-
- com.brightcove.player.model.StyledElement
-
- All Implemented Interfaces:
java.io.Serializable
public class StyledElement extends Element
Provides a common representation for TTML styled elements. http://www.w3.org/TR/ttaf1-dfxp/#styling- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStyledElement.FontStylestatic classStyledElement.FontWeightstatic classStyledElement.TextAlignstatic classStyledElement.TextDecorationstatic classStyledElement.Unit
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringbackgroundColorThe background color string.protected java.lang.StringcolorThe color string.protected java.lang.StringfontFamilyprotected LengthfontSizeprotected StyledElement.FontStylefontStyleprotected StyledElement.FontWeightfontWeightprotected java.lang.StringstyleNameThe style name string.protected StyledElement.TextAligntextAlignprotected StyledElement.TextDecorationtextDecoration
-
Constructor Summary
Constructors Constructor Description StyledElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBackgroundColor()The background color string.java.lang.StringgetColor()The color string.java.lang.StringgetFontFamily()LengthgetFontSize()StyledElement.FontStylegetFontStyle()StyledElement.FontWeightgetFontWeight()java.lang.StringgetStyleName()The style name string.StyledElement.TextAligngetTextAlign()StyledElement.TextDecorationgetTextDecoration()voidsetBackgroundColor(java.lang.String backgroundColor)The background color string.voidsetColor(java.lang.String color)The color string.voidsetFontFamily(java.lang.String fontFamily)voidsetFontSize(Length fontSize)voidsetFontStyle(StyledElement.FontStyle fontStyle)voidsetFontWeight(StyledElement.FontWeight fontWeight)voidsetStyleName(java.lang.String styleName)The style name string.voidsetTextAlign(StyledElement.TextAlign textAlign)voidsetTextDecoration(StyledElement.TextDecoration textDecoration)
-
-
-
Field Detail
-
styleName
protected java.lang.String styleName
The style name string.
-
color
protected java.lang.String color
The color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
backgroundColor
protected java.lang.String backgroundColor
The background color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
fontSize
protected Length fontSize
-
fontWeight
protected StyledElement.FontWeight fontWeight
-
fontStyle
protected StyledElement.FontStyle fontStyle
-
textDecoration
protected StyledElement.TextDecoration textDecoration
-
textAlign
protected StyledElement.TextAlign textAlign
-
fontFamily
protected java.lang.String fontFamily
-
-
Method Detail
-
getStyleName
public java.lang.String getStyleName()
The style name string.
-
setStyleName
public void setStyleName(java.lang.String styleName)
The style name string.
-
getColor
public java.lang.String getColor()
The color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
setColor
public void setColor(java.lang.String color)
The color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
getBackgroundColor
public java.lang.String getBackgroundColor()
The background color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
setBackgroundColor
public void setBackgroundColor(java.lang.String backgroundColor)
The background color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
getFontSize
public Length getFontSize()
-
setFontSize
public void setFontSize(Length fontSize)
-
getFontStyle
public StyledElement.FontStyle getFontStyle()
-
setFontStyle
public void setFontStyle(StyledElement.FontStyle fontStyle)
-
getTextAlign
public StyledElement.TextAlign getTextAlign()
-
setTextAlign
public void setTextAlign(StyledElement.TextAlign textAlign)
-
getFontWeight
public StyledElement.FontWeight getFontWeight()
-
setFontWeight
public void setFontWeight(StyledElement.FontWeight fontWeight)
-
getTextDecoration
public StyledElement.TextDecoration getTextDecoration()
-
setTextDecoration
public void setTextDecoration(StyledElement.TextDecoration textDecoration)
-
setFontFamily
public void setFontFamily(java.lang.String fontFamily)
-
getFontFamily
public java.lang.String getFontFamily()
-
-