Property | Defined By | ||
---|---|---|---|
begin : Number [read-only]
Returns the begin time for the time range. | TimeRange | ||
duration : Number [read-only]
Returns the duration of the time range. | TimeRange | ||
end : Number [read-only]
Returns the end time of the time range. | TimeRange |
Method | Defined By | ||
---|---|---|---|
TimeRange(begin:Number, end:Number)
Default constructor. | TimeRange | ||
contains(position:Number):Boolean
Returns whether the provided position is contained inside the time range. | TimeRange | ||
createRange(begin:Number, duration:Number):TimeRange [static]
Creates a new time range with the specified values as limits. | TimeRange | ||
intersects(range:TimeRange):Boolean
Returns whether the provided time range intersects with the current time range. | TimeRange | ||
toString():String
Returns a String representation of the current time range. | TimeRange |
begin | property |
begin:Number
[read-only] Returns the begin time for the time range.
public function get begin():Number
duration | property |
duration:Number
[read-only] Returns the duration of the time range.
public function get duration():Number
end | property |
end:Number
[read-only] Returns the end time of the time range.
public function get end():Number
TimeRange | () | Constructor |
public function TimeRange(begin:Number, end:Number)
Default constructor.
Parametersbegin:Number | |
end:Number |
contains | () | method |
public function contains(position:Number):Boolean
Returns whether the provided position is contained inside the time range.
Parameters
position:Number — the time position to be checked
|
Boolean — true is the position is inside the range, false otherwise.
|
createRange | () | method |
public static function createRange(begin:Number, duration:Number):TimeRange
Creates a new time range with the specified values as limits.
Parameters
begin:Number — The begin time.
| |
duration:Number — The end time.
|
TimeRange — |
intersects | () | method |
public function intersects(range:TimeRange):Boolean
Returns whether the provided time range intersects with the current time range.
Parameters
range:TimeRange — The time range to be checked
|
Boolean — true is their intersection is not empty, false otherwise.
|
toString | () | method |
public function toString():String
Returns a String representation of the current time range.
ReturnsString — a string containing the beginning and the end of the time range.
|