@Immutable public class TextTrackStyle extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TextTrackStyle.TextTrackEdgeType
Defines the text track edge type.
|
static class |
TextTrackStyle.TextTrackFontGenericFamily
Generic font family to be used if font not defined in text track.
|
static class |
TextTrackStyle.TextTrackFontStyle
Possible text track font style.
|
static class |
TextTrackStyle.TextTrackWindowType
Text track window type.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
backgroundColor
The background 32 bit RGBA color.
|
protected Map<String,Object> |
customData
Custom data set by the receiver application
|
protected String |
edgeColor
RGBA color for the edge, this value will be ignored if
edgeType
is TextTrackStyle.TextTrackEdgeType.NONE |
protected TextTrackStyle.TextTrackEdgeType |
edgeType
The type of edge
|
protected String |
fontFamily
The font family.
|
protected TextTrackStyle.TextTrackFontGenericFamily |
fontGenericFamily
The text track generic font family
|
protected Double |
fontScale
The font scaling factor for the text track (the default is 1.0)
|
protected TextTrackStyle.TextTrackFontStyle |
fontStyle
The text track font style
|
protected String |
foregroundColor
The foreground 32 bit RGBA color
|
protected String |
windowColor
32 bit RGBA color for the window.
|
protected Integer |
windowRoundedCornerRadius
Rounded corner radius absolute value in pixels (px).
|
protected TextTrackStyle.TextTrackWindowType |
windowType
The window concept is defined in CEA-608 and CEA-708.
|
| Constructor and Description |
|---|
TextTrackStyle(String backgroundColor,
Map<String,Object> customData,
String edgeColor,
TextTrackStyle.TextTrackEdgeType edgeType,
String fontFamily,
TextTrackStyle.TextTrackFontGenericFamily fontGenericFamily,
Double fontScale,
TextTrackStyle.TextTrackFontStyle fontStyle,
String foregroundColor,
String windowColor,
Integer windowRoundedCornerRadius,
TextTrackStyle.TextTrackWindowType windowType)
Creates a new instance using the specific parameters.
|
TextTrackStyle(String foregroundColor,
String backgroundColor,
TextTrackStyle.TextTrackEdgeType edgeType,
String edgeColor,
String fontFamily,
TextTrackStyle.TextTrackFontGenericFamily fontGenericFamily,
Double fontScale,
TextTrackStyle.TextTrackFontStyle fontStyle)
Creates a new instance using the specific parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBackgroundColor() |
Map<String,Object> |
getCustomData() |
String |
getEdgeColor() |
TextTrackStyle.TextTrackEdgeType |
getEdgeType() |
String |
getFontFamily() |
TextTrackStyle.TextTrackFontGenericFamily |
getFontGenericFamily() |
Double |
getFontScale() |
TextTrackStyle.TextTrackFontStyle |
getFontStyle() |
String |
getForegroundColor() |
String |
getWindowColor() |
Integer |
getWindowRoundedCornerRadius() |
TextTrackStyle.TextTrackWindowType |
getWindowType() |
int |
hashCode() |
String |
toString() |
@Nullable protected final String backgroundColor
@Nonnull protected final Map<String,Object> customData
@Nullable protected final String edgeColor
edgeType
is TextTrackStyle.TextTrackEdgeType.NONE@Nullable protected final TextTrackStyle.TextTrackEdgeType edgeType
@Nullable protected final String fontFamily
fontGenericFamily will be used@Nullable protected final TextTrackStyle.TextTrackFontGenericFamily fontGenericFamily
@Nullable protected final Double fontScale
@Nullable protected final TextTrackStyle.TextTrackFontStyle fontStyle
@Nullable protected final String windowColor
windowType is TextTrackStyle.TextTrackWindowType.NONE.@Nullable protected final Integer windowRoundedCornerRadius
windowType is not
TextTrackStyle.TextTrackWindowType.ROUNDED_CORNERS.@Nullable protected final TextTrackStyle.TextTrackWindowType windowType
public TextTrackStyle(@Nullable String foregroundColor, @Nullable String backgroundColor, @Nullable TextTrackStyle.TextTrackEdgeType edgeType, @Nullable String edgeColor, @Nullable String fontFamily, @Nullable TextTrackStyle.TextTrackFontGenericFamily fontGenericFamily, @Nullable Double fontScale, @Nullable TextTrackStyle.TextTrackFontStyle fontStyle)
foregroundColor - the foreground 32 bit RGBA color.backgroundColor - the background 32 bit RGBA color. The alpha
channel should be used for transparent backgrounds.edgeType - the type of edge.edgeColor - the RGBA color for the edge, this value will be ignored
if edgeType is TextTrackStyle.TextTrackEdgeType.NONE.fontFamily - the font family. If the font is not available in the
receiver the fontGenericFamily will be used.fontGenericFamily - the text track generic font family.fontScale - the font scaling factor for the text track (the default
is 1.0).fontStyle - the text track font style.public TextTrackStyle(@Nullable String backgroundColor, @Nullable Map<String,Object> customData, @Nullable String edgeColor, @Nullable TextTrackStyle.TextTrackEdgeType edgeType, @Nullable String fontFamily, @Nullable TextTrackStyle.TextTrackFontGenericFamily fontGenericFamily, @Nullable Double fontScale, @Nullable TextTrackStyle.TextTrackFontStyle fontStyle, @Nullable String foregroundColor, @Nullable String windowColor, @Nullable Integer windowRoundedCornerRadius, @Nullable TextTrackStyle.TextTrackWindowType windowType)
backgroundColor - the background 32 bit RGBA color. The alpha
channel should be used for transparent backgrounds.customData - the custom data set by the receiver application.edgeColor - the RGBA color for the edge, this value will be ignored
if edgeType is TextTrackStyle.TextTrackEdgeType.NONE.edgeType - the type of edge.fontFamily - the font family. If the font is not available in the
receiver the fontGenericFamily will be used.fontGenericFamily - the text track generic font family.fontScale - the font scaling factor for the text track (the default
is 1.0).fontStyle - the text track font style.foregroundColor - the foreground 32 bit RGBA color.windowColor - the 32 bit RGBA color for the window. This value will
be ignored if windowType is
TextTrackStyle.TextTrackWindowType.NONE.windowRoundedCornerRadius - the rounded corner radius absolute value
in pixels (px). This value will be ignored if
windowType is not
TextTrackStyle.TextTrackWindowType.ROUNDED_CORNERS.windowType - the window type. The window concept is defined in
CEA-608 and CEA-708. In WebVTT it is called a region.@Nullable public String getBackgroundColor()
@Nonnull public Map<String,Object> getCustomData()
@Nullable public String getEdgeColor()
edgeType is TextTrackStyle.TextTrackEdgeType.NONE.@Nullable public TextTrackStyle.TextTrackEdgeType getEdgeType()
@Nullable public String getFontFamily()
fontGenericFamily will be used.@Nullable public TextTrackStyle.TextTrackFontGenericFamily getFontGenericFamily()
@Nullable public Double getFontScale()
@Nullable public TextTrackStyle.TextTrackFontStyle getFontStyle()
@Nullable public String getForegroundColor()
@Nullable public String getWindowColor()
windowType is TextTrackStyle.TextTrackWindowType.NONE.@Nullable public Integer getWindowRoundedCornerRadius()
windowType is not
TextTrackStyle.TextTrackWindowType.ROUNDED_CORNERS.@Nullable public TextTrackStyle.TextTrackWindowType getWindowType()
Copyright © 2022. All rights reserved.