Method Summary |
|
void | adjust(TimeRange original, TimeRange modified) Adjust this time range based on the difference between the origRange and the modRange, if any. |
Object | clone() |
boolean | contains(Time time) Check if this Time in my range.
Parameters: time - The time to check for inclusion. |
boolean | contains(TimeRange range) Check if this TimeRange completely contains the other range.
Parameters: range - The time range to check for containment. |
long | duration() Access the duration of the TimeRange, in milliseconds. |
Time | firstTime() Access the first Time of the range. |
Time | firstTime(long fudge) Access the first Time of the range (fudged).
Parameters: fudge - How many ms to increase if the first is not included. |
boolean | isSingleTime() Check if the TimeRange is really just a single Time. |
Time | lastTime() Access the last Time in the range. |
Time | lastTime(long fudge) Access the last Time of the range (fudged).
Parameters: fudge - How many ms to decrease if the last is not included. |
boolean | overlaps(TimeRange range) Check if this TimeRange overlap this other TimeRange at all.
Parameters: range - The time range to check for overlap. |
void | shiftBackward(long i) |
void | shiftForward(long i) |
String | toStringHR() Format the TimeRange - human readable. |
void | zoom(double f) Enlarge or shrink the time range by multiplying a zooming factor. |