|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.map.TimeExtent
public class 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.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
Calendar |
getEndDate()
Gets the end date. |
Calendar |
getStartDate()
Gets the start date. |
int |
hashCode()
|
boolean |
intersects(Calendar date)
Used to indicate whether or nto the given date falls within the range defined by this class. |
boolean |
intersects(TimeExtent timeExtent)
Used to indicate whether or not the given time extent intersects this one. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeExtent(Calendar date)
date - the date
public TimeExtent(Calendar startDate,
Calendar endDate)
startDate - the start dateendDate - the end date| Method Detail |
|---|
public Calendar getStartDate()
public void setStartDate(Calendar startDate)
startDate - the new start datepublic Calendar getEndDate()
public void setEndDate(Calendar endDate)
endDate - the new end datepublic boolean intersects(Calendar date)
date - the date
date falls within the range, false otherwisepublic boolean intersects(TimeExtent timeExtent)
timeExtent - the time extent to intersect with
timeExtent falls within the range, false otherwise
public TimeExtent offset(int years,
int months,
int days)
TimeExtent instance offset from this one by the given years, months and days.
years - the yearsmonths - the monthsdays - the days
public TimeExtent offset(int hours,
int minutes,
int seconds,
int milliseconds)
TimeExtent instance offset from this one by the given hours, minutes and seconds.
hours - the hoursminutes - the minutesseconds - the secondsmilliseconds - the milliseconds
public TimeExtent offset(int years,
int months,
int days,
int hours,
int minutes,
int seconds,
int milliseconds)
TimeExtent instance offset from this one by the given years, months, days, hours,
minutes, seconds and milliseconds.
years - the yearsmonths - the monthsdays - the dayshours - the hoursminutes - the minutesseconds - the secondsmilliseconds - the milliseconds
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||