Packageorg.osmf.smpte.tt.formatting
Classpublic class FormattingObject
InheritanceFormattingObject Inheritance TreeType Inheritance Object
Subclasses Animation, Block, BlockContainer, Flow, Inline, InlineContent, Paragraph, Root



Public Properties
 PropertyDefined By
  animations : Vector.<Animation>
FormattingObject
  assignedRegion : RegionElement
[read-only] Return the currently assigned region for this Formatting object
FormattingObject
 Inheritedattributes : Vector.<TimedTextAttributeBase>
[read-only] List of attributes associated with this node
TreeType
  backgroundColorStyleProperty : ColorExpression
[read-only]
FormattingObject
 Inheritedbegin : TimeCode
[read-only] Get the time at which this element becomes active
TreeType
 Inheritedchildren : Vector.<TreeType>
[read-only] List of time trees that are contained within this node
TreeType
  colorStyleProperty : ColorExpression
[read-only]
FormattingObject
  contextualFontSize : FontSize
FormattingObject
  directionStyleProperty : String
[read-only]
FormattingObject
  displayAlignStyleProperty : String
[read-only]
FormattingObject
  displayStyleProperty : String
[read-only]
FormattingObject
 Inheritedduration : TimeCode
[read-only] Get the time at which this element is no longer active
TreeType
  element : TimedTextElementBase
FormattingObject
 Inheritedend : TimeCode
[read-only] Get the time at which this element is no longer active
TreeType
 Inheritedevents : Vector.<TimeCode>
[read-only] return an ordered list of the significant time events in the time tree.
TreeType
  formatter : Function
Formatter is a function which takes a rendering engine and applies it to the element
FormattingObject
  leftStyleProperty : Number
[read-only]
FormattingObject
 Inheritedmetadata : Dictionary
[read-only] Metadata associated with this node
TreeType
  opacityStyleProperty : Number
[read-only]
FormattingObject
  overflowStyleProperty : String
[read-only]
FormattingObject
 Inheritedparent : TreeType
tree node which is the unique parent of this node
TreeType
  preserveStyleProperty : Boolean
[read-only]
FormattingObject
  regionId : String
[read-only] Get the region for this formatting object
FormattingObject
  renderPassProperty : int
[read-only]
FormattingObject
  showBackgroundStyleProperty : String
[read-only]
FormattingObject
  textAlignStyleProperty : String
[read-only]
FormattingObject
  textDecorationStyleProperty : TextDecorationAttributeValue
[read-only]
FormattingObject
  textOutlineStyleProperty : TextOutline
[read-only]
FormattingObject
 InheritedtimeSemantics : TimeContainer
Specifies whether children are sequential or parallel in time.
TreeType
 Inheritedtiming : Dictionary
[read-only] The begin, end and dur times for this node
TreeType
  topStyleProperty : Number
[read-only]
FormattingObject
  unicodeBidirectionStyleProperty : String
[read-only]
FormattingObject
  visibilityStyleProperty : String
[read-only]
FormattingObject
  wrapOptionStyleProperty : Boolean
[read-only]
FormattingObject
  writingModeStyleProperty : WritingMode
[read-only]
FormattingObject
Protected Properties
 PropertyDefined By
  actualDrawing : Rectangle
FormattingObject
Public Methods
 MethodDefined By
  
FormattingObject
  
actualArea():Rectangle
The ActualArea area is where this element draws itself into
FormattingObject
  
Override animated attributes.
FormattingObject
  
FormattingObject
  
FormattingObject
  
FormattingObject
  
FormattingObject
  
FormattingObject
  
clearStyle(property:String):void
clear a local style
FormattingObject
  
Calculate the context font size.
FormattingObject
 Inherited
computeTimeIntervals(context:TimeContainer, referenceStart:TimeCode, referenceEnd:TimeCode):void
Walk the tree to determine the absolute start and end times of all the elements.
TreeType
  
createFormatter():Function
Return a formatting function for this element.
FormattingObject
  
prune(regionId:String):void
Remove any subtrees which are not selected into the region.
FormattingObject
  
referenceArea():Rectangle
The reference area is where this element computes its dimensions from
FormattingObject
  
Undo all the animated overrides.
FormattingObject
  
[static] return the formatting object which represents the timed text tree at the given time
FormattingObject
  
setStyle(property:String, value:*):void
Set a local style on the element
FormattingObject
 Inherited
Test if the tree is active at the given time
TreeType
Property Detail
actualDrawingproperty
protected var actualDrawing:Rectangle

animationsproperty 
animations:Vector.<Animation>


Implementation
    public function get animations():Vector.<Animation>
    public function set animations(value:Vector.<Animation>):void
assignedRegionproperty 
assignedRegion:RegionElement  [read-only]

Return the currently assigned region for this Formatting object


Implementation
    public function get assignedRegion():RegionElement
backgroundColorStylePropertyproperty 
backgroundColorStyleProperty:ColorExpression  [read-only]


Implementation
    public function get backgroundColorStyleProperty():ColorExpression
colorStylePropertyproperty 
colorStyleProperty:ColorExpression  [read-only]


Implementation
    public function get colorStyleProperty():ColorExpression
contextualFontSizeproperty 
contextualFontSize:FontSize


Implementation
    public function get contextualFontSize():FontSize
    public function set contextualFontSize(value:FontSize):void
directionStylePropertyproperty 
directionStyleProperty:String  [read-only]


Implementation
    public function get directionStyleProperty():String
displayAlignStylePropertyproperty 
displayAlignStyleProperty:String  [read-only]


Implementation
    public function get displayAlignStyleProperty():String
displayStylePropertyproperty 
displayStyleProperty:String  [read-only]


Implementation
    public function get displayStyleProperty():String
elementproperty 
element:TimedTextElementBase


Implementation
    public function get element():TimedTextElementBase
    public function set element(value:TimedTextElementBase):void
formatterproperty 
public var formatter:Function

Formatter is a function which takes a rendering engine and applies it to the element

leftStylePropertyproperty 
leftStyleProperty:Number  [read-only]


Implementation
    public function get leftStyleProperty():Number
opacityStylePropertyproperty 
opacityStyleProperty:Number  [read-only]


Implementation
    public function get opacityStyleProperty():Number
overflowStylePropertyproperty 
overflowStyleProperty:String  [read-only]


Implementation
    public function get overflowStyleProperty():String
preserveStylePropertyproperty 
preserveStyleProperty:Boolean  [read-only]


Implementation
    public function get preserveStyleProperty():Boolean
regionIdproperty 
regionId:String  [read-only]

Get the region for this formatting object


Implementation
    public function get regionId():String
renderPassPropertyproperty 
renderPassProperty:int  [read-only]


Implementation
    public function get renderPassProperty():int
showBackgroundStylePropertyproperty 
showBackgroundStyleProperty:String  [read-only]


Implementation
    public function get showBackgroundStyleProperty():String
textAlignStylePropertyproperty 
textAlignStyleProperty:String  [read-only]


Implementation
    public function get textAlignStyleProperty():String
textDecorationStylePropertyproperty 
textDecorationStyleProperty:TextDecorationAttributeValue  [read-only]


Implementation
    public function get textDecorationStyleProperty():TextDecorationAttributeValue
textOutlineStylePropertyproperty 
textOutlineStyleProperty:TextOutline  [read-only]


Implementation
    public function get textOutlineStyleProperty():TextOutline
topStylePropertyproperty 
topStyleProperty:Number  [read-only]


Implementation
    public function get topStyleProperty():Number
unicodeBidirectionStylePropertyproperty 
unicodeBidirectionStyleProperty:String  [read-only]


Implementation
    public function get unicodeBidirectionStyleProperty():String
visibilityStylePropertyproperty 
visibilityStyleProperty:String  [read-only]


Implementation
    public function get visibilityStyleProperty():String
wrapOptionStylePropertyproperty 
wrapOptionStyleProperty:Boolean  [read-only]


Implementation
    public function get wrapOptionStyleProperty():Boolean
writingModeStylePropertyproperty 
writingModeStyleProperty:WritingMode  [read-only]


Implementation
    public function get writingModeStyleProperty():WritingMode
Constructor Detail
FormattingObject()Constructor
public function FormattingObject()



Method Detail
actualArea()method
public function actualArea():Rectangle

The ActualArea area is where this element draws itself into

Returns
Rectangle
applyAnimations()method 
public function applyAnimations():void

Override animated attributes.

calculateExtentStyle()method 
public function calculateExtentStyle(renderObject:IRenderObject):Extent

Parameters

renderObject:IRenderObject

Returns
Extent
calculateFontSizeStyle()method 
public function calculateFontSizeStyle(renderObject:IRenderObject):FontSize

Parameters

renderObject:IRenderObject

Returns
FontSize
calculateLineHeightStyle()method 
public function calculateLineHeightStyle(renderObject:IRenderObject):LineHeight

Parameters

renderObject:IRenderObject

Returns
LineHeight
calculateOriginStyle()method 
public function calculateOriginStyle(renderObject:IRenderObject):Origin

Parameters

renderObject:IRenderObject

Returns
Origin
calculatePaddingStyle()method 
public function calculatePaddingStyle(renderObject:IRenderObject):PaddingThickness

Parameters

renderObject:IRenderObject

Returns
PaddingThickness
clearStyle()method 
public function clearStyle(property:String):void

clear a local style

Parameters

property:String

computeRelativeStyles()method 
public function computeRelativeStyles(renderObject:IRenderObject):void

Calculate the context font size.

Parameters

renderObject:IRenderObject

createFormatter()method 
public function createFormatter():Function

Return a formatting function for this element.

Returns
Function
prune()method 
public function prune(regionId:String):void

Remove any subtrees which are not selected into the region.

Parameters

regionId:String — region to select

referenceArea()method 
public function referenceArea():Rectangle

The reference area is where this element computes its dimensions from

Returns
Rectangle
removeAppliedAnimations()method 
public function removeAppliedAnimations():void

Undo all the animated overrides.

renderTree()method 
public static function renderTree(timeSpan:TimeCode, tree:TimedTextElementBase):FormattingObject

return the formatting object which represents the timed text tree at the given time

Parameters

timeSpan:TimeCode
 
tree:TimedTextElementBase

Returns
FormattingObject
setStyle()method 
public function setStyle(property:String, value:*):void

Set a local style on the element

Parameters

property:String
 
value:*