| Package | com.esri.ags.components |
| Class | public class TimeSlider |
| Inheritance | TimeSlider spark.components.supportClasses.SkinnableComponent |
| Implements | ITimeSlider |
| Since : | ArcGIS API for Flex 2.0 |
Default TimeSlider:
See also
| Property | Defined By | ||
|---|---|---|---|
| excludeDataAtLeadingThumb : Boolean
When true, subtracts one second from the time extent's end time to exclude data at the exact end time instant. | TimeSlider | ||
| excludeDataAtTrailingThumb : Boolean
When true, adds one second to the time extent's start time to exclude data at the exact start time instant. | TimeSlider | ||
| fullTimeExtent : TimeExtent [read-only]
The full time extent from start time to end time. | TimeSlider | ||
| loop : Boolean
Restart play from beginning after it reaches the last time stop. | TimeSlider | ||
| playing : Boolean [read-only]
Returns true if TimeSlider is currently 'playing'. | TimeSlider | ||
| singleThumbAsTimeInstant : Boolean
If this is true and thumbCount is 1, then the timeExtent will represent a time instant. | TimeSlider | ||
| thumbCount : int
The number of thumbs on the slider. | TimeSlider | ||
| thumbIndexes : Array
Current thumb location(s). | TimeSlider | ||
| thumbMovingRate : int
How fast to move from one time stop to the next time stop. | TimeSlider | ||
| timeExtent : TimeExtent [read-only]
Current time extent of the time slider 'thumbs'. | TimeSlider | ||
| timeStops : Array
The timeStops is an array of Dates used as ticks for the TimeSlider. | TimeSlider | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new TimeSlider. | TimeSlider | ||
createTimeStopsByCount(timeExtent:TimeExtent, count:int = 10):void
Creates a specific number of time stops. | TimeSlider | ||
createTimeStopsByTimeInterval(timeExtent:TimeExtent, timeInterval:Number, timeIntervalUnits:String):void
Creates time stops that are of a specific time interval. | TimeSlider | ||
next():void
Continue to next time stop. | TimeSlider | ||
pause():void
Pause the playing of the time slider. | TimeSlider | ||
play():void
Start the playing of the time slider. | TimeSlider | ||
previous():void
Go back to previous time stop. | TimeSlider | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Fires when the time extent of the slider has changed. | TimeSlider | |||
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.
| Skin State | Description | Defined By | ||
|---|---|---|---|---|
disabled | The disabled state of the TimeSlider component. | TimeSlider | ||
normal | The default (i.e., "normal") state of the TimeSlider component. | TimeSlider | ||
| excludeDataAtLeadingThumb | property |
excludeDataAtLeadingThumb:Boolean| Since : | ArcGIS API for Flex 2.2 |
When true, subtracts one second from the time extent's end time to exclude data at the exact end time instant.
The default value is false.
This property can be used as the source for data binding.
public function get excludeDataAtLeadingThumb():Boolean public function set excludeDataAtLeadingThumb(value:Boolean):void| excludeDataAtTrailingThumb | property |
excludeDataAtTrailingThumb:Boolean| Since : | ArcGIS API for Flex 2.2 |
When true, adds one second to the time extent's start time to exclude data at the exact start time instant.
The default value is false.
This property can be used as the source for data binding.
public function get excludeDataAtTrailingThumb():Boolean public function set excludeDataAtTrailingThumb(value:Boolean):void| fullTimeExtent | property |
fullTimeExtent:TimeExtent [read-only] The full time extent from start time to end time.
This property can be used as the source for data binding.
public function get fullTimeExtent():TimeExtent| loop | property |
loop:BooleanRestart play from beginning after it reaches the last time stop. Allows for 'continous' play.
The default value is false.
This property can be used as the source for data binding.
public function get loop():Boolean public function set loop(value:Boolean):void| playing | property |
playing:Boolean [read-only] Returns true if TimeSlider is currently 'playing'.
public function get playing():Boolean| singleThumbAsTimeInstant | property |
singleThumbAsTimeInstant:BooleanIf this is true and thumbCount is 1, then the timeExtent will represent a time instant.
The default value is false.
This property can be used as the source for data binding.
public function get singleThumbAsTimeInstant():Boolean public function set singleThumbAsTimeInstant(value:Boolean):void| thumbCount | property |
thumbCount:intThe number of thumbs on the slider. Possible values are 1 or 2.
The default value is 1.
This property can be used as the source for data binding.
public function get thumbCount():int public function set thumbCount(value:int):void| thumbIndexes | property |
thumbIndexes:ArrayCurrent thumb location(s). If the thumbCount is two, two values will be returned.
This property can be used as the source for data binding.
public function get thumbIndexes():Array public function set thumbIndexes(value:Array):void| thumbMovingRate | property |
thumbMovingRate:intHow fast to move from one time stop to the next time stop.
The default value is 1000 milliseconds.
This property can be used as the source for data binding.
public function get thumbMovingRate():int public function set thumbMovingRate(value:int):void| timeExtent | property |
timeExtent:TimeExtent [read-only] Current time extent of the time slider 'thumbs'. If thumb count is 2, returns the time extent for the two thumbs of the current time slider. If the thumb count is 1, returns the first time stop and the current time stop. If the thumb count is 1 and singleThumbAsTimeInstant is true, returns the current time stop only.
This property can be used as the source for data binding.
public function get timeExtent():TimeExtent| timeStops | property |
timeStops:ArrayThe timeStops is an array of Dates used as ticks for the TimeSlider.
This property can be used as the source for data binding.
public function get timeStops():Array public function set timeStops(value:Array):void| TimeSlider | () | Constructor |
public function TimeSlider()Creates a new TimeSlider.
| createTimeStopsByCount | () | method |
public function createTimeStopsByCount(timeExtent:TimeExtent, count:int = 10):voidCreates a specific number of time stops.
Parameters
timeExtent:TimeExtent — Start and end time for time slider.
| |
count:int (default = 10) — Number of time stops
|
| createTimeStopsByTimeInterval | () | method |
public function createTimeStopsByTimeInterval(timeExtent:TimeExtent, timeInterval:Number, timeIntervalUnits:String):voidCreates time stops that are of a specific time interval.
Parameters
timeExtent:TimeExtent — Start and end time for time slider.
| |
timeInterval:Number — Length of time interval - often 1 (as in every one day).
| |
timeIntervalUnits:String — The time unit (for example, TimeInfo.UNIT_DAYS).
|
See also
| next | () | method |
public function next():voidContinue to next time stop.
| pause | () | method |
public function pause():voidPause the playing of the time slider.
| play | () | method |
public function play():voidStart the playing of the time slider.
| previous | () | method |
public function previous():voidGo back to previous time stop.
| timeExtentChange | Event |
com.esri.ags.events.TimeExtentEventcom.esri.ags.events.TimeExtentEvent.TIME_EXTENT_CHANGEFires when the time extent of the slider has changed.
Defines the value of thetype property of an timeExtentChange event object.