| java.lang.Object | |
| ↳ | com.esri.core.map.TimeExtent |
This class can be used to define either a single date/time or a range of dates/times. It is intended to be used with time aware layers when setting the date/time ranges to display.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
TimeExtent(Calendar date)
Instantiates a new time extent for a single date/time.
| |||||||||||
|
TimeExtent(Calendar startDate, Calendar endDate)
Instantiates a new time extent for a range of dates/times.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean | equals(Object obj) | ||||||||||
| Calendar |
getEndDate()
Gets the end date.
| ||||||||||
| Calendar |
getStartDate()
Gets the start date.
| ||||||||||
| int | hashCode() | ||||||||||
| boolean |
intersects(TimeExtent timeExtent)
Used to indicate whether or not the given time extent intersects this one.
| ||||||||||
| boolean |
intersects(Calendar date)
Used to indicate whether or nto the given date falls within the range defined by this class.
| ||||||||||
| TimeExtent |
offset(int years, int months, int days)
Create a new
TimeExtent instance offset from this one by the given years, months and days. | ||||||||||
| TimeExtent |
offset(int hours, int minutes, int seconds, int milliseconds)
Create a new
TimeExtent instance offset from this one by the given hours, minutes and seconds. | ||||||||||
| TimeExtent |
offset(int years, int months, int days, int hours, int minutes, int seconds, int milliseconds)
Create a new
TimeExtent instance offset from this one by the given years, months, days, hours,
minutes, seconds and milliseconds. | ||||||||||
| void |
setEndDate(Calendar endDate)
Sets the end date.
| ||||||||||
| void |
setStartDate(Calendar startDate)
Sets the start date.
| ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Instantiates a new time extent for a single date/time.
| date | the date |
|---|
Instantiates a new time extent for a range of dates/times.
| startDate | the start date |
|---|---|
| endDate | the end date |
Used to indicate whether or not the given time extent intersects this one.
| timeExtent | the time extent to intersect with |
|---|
timeExtent falls within the range, false otherwiseUsed to indicate whether or nto the given date falls within the range defined by this class.
| date | the date |
|---|
date falls within the range, false otherwiseCreate a new TimeExtent instance offset from this one by the given years, months and days.
| years | the years |
|---|---|
| months | the months |
| days | the days |
Create a new TimeExtent instance offset from this one by the given hours, minutes and seconds.
| hours | the hours |
|---|---|
| minutes | the minutes |
| seconds | the seconds |
| milliseconds | the milliseconds |
Create a new TimeExtent instance offset from this one by the given years, months, days, hours,
minutes, seconds and milliseconds.
| years | the years |
|---|---|
| months | the months |
| days | the days |
| hours | the hours |
| minutes | the minutes |
| seconds | the seconds |
| milliseconds | the milliseconds |
Sets the start date.
| startDate | the new start date |
|---|