public class TimeSlider
extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Class and Description |
---|---|
static class |
TimeSlider.Parameters |
Constructor and Description |
---|
TimeSlider(TimeSlider.Parameters params,
DijitLoadHandler handler)
Creates a new TimeSlider object.
|
Modifier and Type | Method and Description |
---|---|
void |
addTimeExtentChangeHandler(TimeExtentChangeHandler handler)
Add time extent changed handler.
|
static boolean |
assertLoaded()
Check that the esri.dijit.TimeSlider package has been loaded
|
void |
createTimeStopsByCount(TimeExtent timeExtent)
The specified number of time stops are created for the input time extent.
|
void |
createTimeStopsByCount(TimeExtent timeExtent,
int count)
The specified number of time stops are created for the input time extent.
|
void |
createTimeStopsByTimeInterval(TimeExtent timeExtent)
Create a time stop for each interval specified, i.e.(week,month, day).
|
void |
createTimeStopsByTimeInterval(TimeExtent timeExtent,
int timeInterval,
TimeInfo.TimeUnits timeIntervalUnits)
Create a time stop for each interval specified, i.e.(week,month, day).
|
TimeExtent |
getCurrentTimeExtent()
Gets the current time extent for the time slider.
|
int |
getThumbCount()
Default value is 1.
|
int |
getThumbMovingRate()
Rate at which the time animation plays.
|
com.google.gwt.core.client.JavaScriptObject |
getTimeSliderObject() |
com.google.gwt.core.client.JsArray<com.google.gwt.core.client.JsDate> |
getTimeStops()
An array of dates representing the stops (tics) on the TimeSlider.
|
boolean |
isLoop()
Default value is false.
|
boolean |
isPlaying()
Default value is false.
|
void |
next()
Move to the next time step.
|
void |
pause()
Pause the time slider.
|
void |
play()
Play the time slider.
|
void |
previous()
Move to the previous time step.
|
void |
setLabels(java.lang.String[] labels)
Specify an array of strings to be used as labels.
|
void |
setLoop(boolean loop)
Determines whether or not loop.
|
void |
setThumbCount(int thumbCount)
The number of thumbs to display.
|
void |
setThumbIndexes(int first,
int second) |
void |
setThumbMovingRate(int thumbMovingRate)
Change the rate at which the time animation plays.
|
void |
setTickCount(int tickCount)
Specify the number of ticks to display on the time slider.
|
void |
setTimeStops(com.google.gwt.core.client.JsDate[] stops)
Manually define the time stop locations by providing an array of dates.
|
void |
singleThumbAsTimeInstant(boolean createTimeInstants)
Determine if the time is displayed for an instant in time.
|
void |
startup()
This is not in the docs but in the examples.
|
claimElement, initializeClaimedElement, isAttached, onBrowserEvent, render, render
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
public TimeSlider(TimeSlider.Parameters params, DijitLoadHandler handler)
params
- - Parameters for the time slider object.loadHandler
- - handler to fire when dijit is created. All method calls will fail untill this
event fires.public static boolean assertLoaded()
public com.google.gwt.core.client.JavaScriptObject getTimeSliderObject()
public boolean isLoop()
public boolean isPlaying()
public int getThumbCount()
public int getThumbMovingRate()
public com.google.gwt.core.client.JsArray<com.google.gwt.core.client.JsDate> getTimeStops()
public void createTimeStopsByCount(TimeExtent timeExtent)
timeExtent
- - The time extent used to define the time slider's start and end time stops.public void createTimeStopsByCount(TimeExtent timeExtent, int count)
timeExtent
- - The time extent used to define the time slider's start and end time stops.count
- - The number of time stops to create.public void createTimeStopsByTimeInterval(TimeExtent timeExtent)
timeExtent
- - The time extent used to define the time slider's start and end time stops.public void createTimeStopsByTimeInterval(TimeExtent timeExtent, int timeInterval, TimeInfo.TimeUnits timeIntervalUnits)
timeExtent
- - The time extent used to define the time slider's start and end time stops.timeInterval
- - The length of the time interval.timeIntervalUnits
- - Time units.public TimeExtent getCurrentTimeExtent()
public void next()
public void pause()
public void play()
public void previous()
public void setLabels(java.lang.String[] labels)
labels
- - An array of strings that define the labels for each tick.public void setLoop(boolean loop)
loop
- - True plays the time slider continuously. Default value is false.public void setThumbCount(int thumbCount)
thumbCount
- - The number of thumbs to display. Default value is one.public void setThumbIndexes(int first, int second)
first
- - determinds where to put the first thumb.second
- - If it is a two thumb slider the second value determines where to place the additional thumb.public void setThumbMovingRate(int thumbMovingRate)
thumbMovingRate
- - The rate at which the time slider plays. Default value is 1500.public void setTickCount(int tickCount)
tickCount
- - The number of ticks to display on the slider.public void setTimeStops(com.google.gwt.core.client.JsDate[] stops)
stops
- - Array of datespublic void singleThumbAsTimeInstant(boolean createTimeInstants)
createTimeInstants
- - When true, the time slider displays features for the
current point in time. When false cumulative data is displayed from the start time
to the current thumb location. The default value is false.public void startup()
public final void addTimeExtentChangeHandler(TimeExtentChangeHandler handler)
handler
- - Fires when the timeExtent of the TimeSlider is changed.