Packageorg.openvideoplayer.cc
Classpublic class Style
InheritanceStyle Inheritance Object

Represents a Caption Style.

See also

org.openvideoplayer.parsers.DfxpParser
Caption
CaptionFormat


Public Properties
 PropertyDefined By
  backgroundColor : String
The background color for the control rendering the captioning text.
Style
  color : String
The text color of the caption.
Style
  fontFamily : String
The font family.
Style
  fontSize : uint
The font size in pixels.
Style
  fontStyle : String
The font style, normal or italic.
Style
  fontWeight : String
The font weight, normal or bold.
Style
  id : String
[read-only] Get the ID passed to the constructor.
Style
  textAlign : String
The text alignment, left, center, or right.
Style
  wrapOption : Boolean
The word wrap option.
Style
Public Methods
 MethodDefined By
  
Style(id:String)
Creates a Style object.
Style
Property Detail
backgroundColorproperty
backgroundColor:String

The background color for the control rendering the captioning text.


Implementation
    public function get backgroundColor():String
    public function set backgroundColor(value:String):void
colorproperty 
color:String

The text color of the caption.


Implementation
    public function get color():String
    public function set color(value:String):void
fontFamilyproperty 
fontFamily:String

The font family.


Implementation
    public function get fontFamily():String
    public function set fontFamily(value:String):void
fontSizeproperty 
fontSize:uint

The font size in pixels.


Implementation
    public function get fontSize():uint
    public function set fontSize(value:uint):void
fontStyleproperty 
fontStyle:String

The font style, normal or italic.


Implementation
    public function get fontStyle():String
    public function set fontStyle(value:String):void
fontWeightproperty 
fontWeight:String

The font weight, normal or bold.


Implementation
    public function get fontWeight():String
    public function set fontWeight(value:String):void
idproperty 
id:String  [read-only]

Get the ID passed to the constructor.


Implementation
    public function get id():String
textAlignproperty 
textAlign:String

The text alignment, left, center, or right.


Implementation
    public function get textAlign():String
    public function set textAlign(value:String):void
wrapOptionproperty 
wrapOption:Boolean

The word wrap option.


Implementation
    public function get wrapOption():Boolean
    public function set wrapOption(value:Boolean):void
Constructor Detail
Style()Constructor
public function Style(id:String)

Creates a Style object.

Parameters
id:String — The ID is usually provided when read from the DFXP file in the head section.

See also