Packageorg.osmf.smpte.tt.captions
Classpublic class Length
InheritanceLength Inheritance Object



Public Properties
 PropertyDefined By
  unit : Unit
The unit of this length.
Length
  value : Number
The numeric value of this length.
Length
Public Methods
 MethodDefined By
  
Length(lengthUnit:Unit = null, val:Number = 0)
Length
  
equals(length:Length):Boolean
Length
  
isEmpty():Boolean
Length
  
toPixelLength(containerLength:Number = 0):Number
Length
Property Detail
unitproperty
unit:Unit

The unit of this length.


Implementation
    public function get unit():Unit
    public function set unit(value:Unit):void
valueproperty 
value:Number

The numeric value of this length.


Implementation
    public function get value():Number
    public function set value(value:Number):void
Constructor Detail
Length()Constructor
public function Length(lengthUnit:Unit = null, val:Number = 0)



Parameters
lengthUnit:Unit (default = null)
 
val:Number (default = 0)
Method Detail
equals()method
public function equals(length:Length):Boolean

Parameters

length:Length

Returns
Boolean
isEmpty()method 
public function isEmpty():Boolean

Returns
Boolean
toPixelLength()method 
public function toPixelLength(containerLength:Number = 0):Number

Parameters

containerLength:Number (default = 0)

Returns
Number