-
- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
StyledElement.FontStyle
public enum
StyledElement.FontWeight
public enum
StyledElement.TextAlign
public enum
StyledElement.TextDecoration
public enum
StyledElement.Unit
-
Field Summary
Fields Modifier and Type Field Description protected String
styleName
protected String
color
protected String
backgroundColor
protected Length
fontSize
protected StyledElement.FontWeight
fontWeight
protected StyledElement.FontStyle
fontStyle
protected StyledElement.TextDecoration
textDecoration
protected StyledElement.TextAlign
textAlign
protected String
fontFamily
-
Method Summary
Modifier and Type Method Description String
getStyleName()
The style name string. void
setStyleName(String styleName)
The style name string. String
getColor()
The color string. void
setColor(String color)
The color string. String
getBackgroundColor()
The background color string. void
setBackgroundColor(String backgroundColor)
The background color string. Length
getFontSize()
void
setFontSize(Length fontSize)
StyledElement.FontWeight
getFontWeight()
void
setFontWeight(StyledElement.FontWeight fontWeight)
StyledElement.FontStyle
getFontStyle()
void
setFontStyle(StyledElement.FontStyle fontStyle)
StyledElement.TextDecoration
getTextDecoration()
void
setTextDecoration(StyledElement.TextDecoration textDecoration)
StyledElement.TextAlign
getTextAlign()
void
setTextAlign(StyledElement.TextAlign textAlign)
String
getFontFamily()
void
setFontFamily(String fontFamily)
-
-
Method Detail
-
getStyleName
String getStyleName()
The style name string.
-
setStyleName
void setStyleName(String styleName)
The style name string.
-
getColor
String getColor()
The color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
setColor
void setColor(String color)
The color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
getBackgroundColor
String getBackgroundColor()
The background color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
setBackgroundColor
void setBackgroundColor(String backgroundColor)
The background color string. @see http://www.w3.org/TR/ttaf1-dfxp/#style-value-color
-
getFontSize
Length getFontSize()
-
setFontSize
void setFontSize(Length fontSize)
-
getFontWeight
StyledElement.FontWeight getFontWeight()
-
setFontWeight
void setFontWeight(StyledElement.FontWeight fontWeight)
-
getFontStyle
StyledElement.FontStyle getFontStyle()
-
setFontStyle
void setFontStyle(StyledElement.FontStyle fontStyle)
-
getTextDecoration
StyledElement.TextDecoration getTextDecoration()
-
setTextDecoration
void setTextDecoration(StyledElement.TextDecoration textDecoration)
-
getTextAlign
StyledElement.TextAlign getTextAlign()
-
setTextAlign
void setTextAlign(StyledElement.TextAlign textAlign)
-
getFontFamily
String getFontFamily()
-
setFontFamily
void setFontFamily(String fontFamily)
-
-
-
-