Packagecom.adobe.mediacore.utils
Classpublic class TimeRange
InheritanceTimeRange Inheritance Object

Describes a time range. Partially known time ranges (whose beginTime or endTime is unknown) may also be described with this class.



Public Properties
 PropertyDefined By
  beginTime : Number
The begin time of the range, in seconds.
TimeRange
  duration : Number
[read-only] The duration of the time range, in seconds.
TimeRange
  endTime : Number
The end time of the range, in seconds.
TimeRange
Public Methods
 MethodDefined By
  
TimeRange(beginTime:Number, endTime:Number)
Constructor.
TimeRange
  
compareTo(other:TimeRange):int
Performs a comparation with a time range and returns: - a negative number, if this should appear before other in the sorted sequence - 0, if this equals other - a positive number, if this should appear after other in the sorted sequence
TimeRange
  
contains(position:Number):Boolean
Returns true if the position is contained by the time range.
TimeRange
Property Detail
beginTimeproperty
beginTime:Number

The begin time of the range, in seconds. May be NaN if the range is not defined on the left side.


Implementation
    public function get beginTime():Number
    public function set beginTime(value:Number):void
durationproperty 
duration:Number  [read-only]

The duration of the time range, in seconds. May be NaN if the range is not fully defined.


Implementation
    public function get duration():Number
endTimeproperty 
endTime:Number

The end time of the range, in seconds. May be NaN if the range is not defined on the right side.


Implementation
    public function get endTime():Number
    public function set endTime(value:Number):void
Constructor Detail
TimeRange()Constructor
public function TimeRange(beginTime:Number, endTime:Number)

Constructor.

Parameters
beginTime:Number
 
endTime:Number
Method Detail
compareTo()method
public function compareTo(other:TimeRange):int

Performs a comparation with a time range and returns: - a negative number, if this should appear before other in the sorted sequence - 0, if this equals other - a positive number, if this should appear after other in the sorted sequence

Parameters

other:TimeRange

Returns
int
contains()method 
public function contains(position:Number):Boolean

Returns true if the position is contained by the time range.

Parameters

position:Number

Returns
Boolean