| Package | com.esri.ags |
| Class | public class TimeExtent |
| Inheritance | TimeExtent flash.events.EventDispatcher |
| Since : | ArcGIS API for Flex 2.0 |
See also
| Property | Defined By | ||
|---|---|---|---|
| endTime : Date
The end time for the time extent. | TimeExtent | ||
| startTime : Date
The start time for the time extent. | TimeExtent | ||
| Method | Defined By | ||
|---|---|---|---|
TimeExtent(startTime:Date = null, endTime:Date = null)
Creates a new TimeExtent. | TimeExtent | ||
Returns a new time extent of the overlapping times that are in both time extents. | TimeExtent | ||
intersects(timeExtent:TimeExtent):Boolean
Checks if the times in the argument intersects "this" time extent. | TimeExtent | ||
offset(timeOffset:Number, timeOffsetUnits:String):TimeExtent
Returns a new time extent with the given offset from "this" time extent. | TimeExtent | ||
Returns a new time extent that covers both time extents. | TimeExtent | ||
| endTime | property |
endTime:DateThe end time for the time extent.
The default value is null which represents Infinity.
This property can be used as the source for data binding.
public function get endTime():Date public function set endTime(value:Date):void| startTime | property |
startTime:DateThe start time for the time extent.
The default value is null which represents -Infinity.
This property can be used as the source for data binding.
public function get startTime():Date public function set startTime(value:Date):void| TimeExtent | () | Constructor |
public function TimeExtent(startTime:Date = null, endTime:Date = null)Creates a new TimeExtent.
ParametersstartTime:Date (default = null) — The start time of the time extent.
| |
endTime:Date (default = null) — The end time of the time extent.
|
| intersection | () | method |
public function intersection(timeExtent:TimeExtent):TimeExtentReturns a new time extent of the overlapping times that are in both time extents.
Parameters
timeExtent:TimeExtent — The input time extent.
|
TimeExtent — The intersecting time extent or null if the time extents do not intersect.
|
| intersects | () | method |
public function intersects(timeExtent:TimeExtent):BooleanChecks if the times in the argument intersects "this" time extent.
Parameters
timeExtent:TimeExtent — The input time extent.
|
Boolean — Return true if intersects, false otherwise.
|
| offset | () | method |
public function offset(timeOffset:Number, timeOffsetUnits:String):TimeExtentReturns a new time extent with the given offset from "this" time extent.
Parameters
timeOffset:Number — The amount of time offset.
| |
timeOffsetUnits:String — The units of the timeOffset.
|
TimeExtent — A new offset TimeExtent
|
See also
| union | () | method |
public function union(timeExtent:TimeExtent):TimeExtentReturns a new time extent that covers both time extents.
Parameters
timeExtent:TimeExtent — The input time extent.
|
TimeExtent — A new union time extent.
|