Package com.brightcove.player.captioning
Class BrightcoveCaptionStyle
java.lang.Object
com.brightcove.player.captioning.BrightcoveCaptionStyle
A convenience class to build up and represent a Caption Style
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intabstract intbuilder()static BrightcoveCaptionStylecreateCaptionStyle(String fontSize, String typeface, int foregroundColor, int foregroundOpacity, int edgeType, int edgeColor, int backgroundColor, int backgroundOpacity, int windowColor, int windowOpacity) static BrightcoveCaptionStylecreateCaptionStyleFromPreset(String fontSize, int preset) abstract intabstract intedgeType()abstract StringfontSize()abstract intabstract intabstract intpreset()abstract Stringtypeface()static BrightcoveCaptionStyleupdateStyleByPreferenceKey(BrightcoveCaptionStyle style, String preferenceKey, Object value) voidvalidate()abstract intabstract int
-
Constructor Details
-
BrightcoveCaptionStyle
public BrightcoveCaptionStyle()
-
-
Method Details
-
preset
public abstract int preset() -
fontSize
-
typeface
-
foregroundColor
public abstract int foregroundColor() -
foregroundOpacity
public abstract int foregroundOpacity() -
edgeType
public abstract int edgeType() -
edgeColor
public abstract int edgeColor() -
backgroundColor
public abstract int backgroundColor() -
backgroundOpacity
public abstract int backgroundOpacity() -
windowColor
public abstract int windowColor() -
windowOpacity
public abstract int windowOpacity() -
createCaptionStyle
public static BrightcoveCaptionStyle createCaptionStyle(String fontSize, String typeface, int foregroundColor, int foregroundOpacity, int edgeType, int edgeColor, int backgroundColor, int backgroundOpacity, int windowColor, int windowOpacity) -
createCaptionStyleFromPreset
-
updateStyleByPreferenceKey
public static BrightcoveCaptionStyle updateStyleByPreferenceKey(BrightcoveCaptionStyle style, String preferenceKey, Object value) -
builder
-
validate
public void validate()
-