Packageorg.osmf.smpte.tt.timing
Classpublic class TreeType
InheritanceTreeType Inheritance Object
Subclasses FormattingObject, TimedTextElementBase, TimeTree



Public Properties
 PropertyDefined By
  attributes : Vector.<TimedTextAttributeBase>
[read-only] List of attributes associated with this node
TreeType
  begin : TimeCode
[read-only] Get the time at which this element becomes active
TreeType
  children : Vector.<TreeType>
[read-only] List of time trees that are contained within this node
TreeType
  duration : TimeCode
[read-only] Get the time at which this element is no longer active
TreeType
  end : TimeCode
[read-only] Get the time at which this element is no longer active
TreeType
  events : Vector.<TimeCode>
[read-only] return an ordered list of the significant time events in the time tree.
TreeType
  metadata : Dictionary
[read-only] Metadata associated with this node
TreeType
  parent : TreeType
tree node which is the unique parent of this node
TreeType
  timeSemantics : TimeContainer
Specifies whether children are sequential or parallel in time.
TreeType
  timing : Dictionary
[read-only] The begin, end and dur times for this node
TreeType
Public Methods
 MethodDefined By
  
TreeType(p_attributes:Vector.<TimedTextAttributeBase> = null, p_children:Vector.<TreeType> = null)
TreeType
  
computeTimeIntervals(context:TimeContainer, referenceStart:TimeCode, referenceEnd:TimeCode):void
Walk the tree to determine the absolute start and end times of all the elements.
TreeType
  
Test if the tree is active at the given time
TreeType
Property Detail
attributesproperty
attributes:Vector.<TimedTextAttributeBase>  [read-only]

List of attributes associated with this node


Implementation
    public function get attributes():Vector.<TimedTextAttributeBase>
beginproperty 
begin:TimeCode  [read-only]

Get the time at which this element becomes active


Implementation
    public function get begin():TimeCode
childrenproperty 
children:Vector.<TreeType>  [read-only]

List of time trees that are contained within this node


Implementation
    public function get children():Vector.<TreeType>
durationproperty 
duration:TimeCode  [read-only]

Get the time at which this element is no longer active


Implementation
    public function get duration():TimeCode
endproperty 
end:TimeCode  [read-only]

Get the time at which this element is no longer active


Implementation
    public function get end():TimeCode
eventsproperty 
events:Vector.<TimeCode>  [read-only]

return an ordered list of the significant time events in the time tree.


Implementation
    public function get events():Vector.<TimeCode>
metadataproperty 
metadata:Dictionary  [read-only]

Metadata associated with this node


Implementation
    public function get metadata():Dictionary
parentproperty 
parent:TreeType

tree node which is the unique parent of this node


Implementation
    public function get parent():TreeType
    public function set parent(value:TreeType):void
timeSemanticsproperty 
timeSemantics:TimeContainer

Specifies whether children are sequential or parallel in time. unless an element overrides, the default is par.


Implementation
    public function get timeSemantics():TimeContainer
    public function set timeSemantics(value:TimeContainer):void
timingproperty 
timing:Dictionary  [read-only]

The begin, end and dur times for this node


Implementation
    public function get timing():Dictionary
Constructor Detail
TreeType()Constructor
public function TreeType(p_attributes:Vector.<TimedTextAttributeBase> = null, p_children:Vector.<TreeType> = null)



Parameters
p_attributes:Vector.<TimedTextAttributeBase> (default = null)
 
p_children:Vector.<TreeType> (default = null)
Method Detail
computeTimeIntervals()method
public function computeTimeIntervals(context:TimeContainer, referenceStart:TimeCode, referenceEnd:TimeCode):void

Walk the tree to determine the absolute start and end times of all the elements. the reference times passed in are absolute times, the result of calling this is to set the local start time and end time to absolute times between these two reference times, based on the begin, end and dur attributes and to recursively set all of the children.

Parameters

context:TimeContainer
 
referenceStart:TimeCode
 
referenceEnd:TimeCode

temporallyActive()method 
public function temporallyActive(time:TimeCode):Boolean

Test if the tree is active at the given time

Parameters

time:TimeCode — time of test

Returns
Boolean