|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.gui.textviewer.TimeIntervalMapper
public class TimeIntervalMapper
Class for efficiently selecting objects which overlap particular points on a timeline. Jonathan added span handling 16/9/04.
Constructor Summary | |
---|---|
TimeIntervalMapper()
Construct an empty TimeIntervalMapper . |
Method Summary | |
---|---|
void |
addObject(java.lang.Object o,
double startTime,
double endTime)
Method addObject. |
void |
dumpBuckets()
Utility method to dump the internal "bucket" data structures used by this TimeIntervalMapper . |
java.util.Set |
getObjectsForTime(double time)
Get the set of timed objects which overlap the specified time. |
TimeIntervalIterator |
getTimeIntervalIterator()
Get a TimeIntervalIterator object which allows efficient
iteration across the contents of this TimeIntervalMapper . |
void |
removeObject(java.lang.Object o,
double startTime,
double endTime)
Remove the specified object from the buckets |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeIntervalMapper()
TimeIntervalMapper
.
Method Detail |
---|
public void removeObject(java.lang.Object o, double startTime, double endTime)
o
- startTime
- endTime
- public void addObject(java.lang.Object o, double startTime, double endTime)
o
- The object to add.startTime
- The start time of the object.endTime
- The end time of the object.public java.util.Set getObjectsForTime(double time)
time
- The time at which objects should be found.
Set
of matching objects, or an empty
set for no matches.public TimeIntervalIterator getTimeIntervalIterator()
TimeIntervalIterator
object which allows efficient
iteration across the contents of this TimeIntervalMapper
.
public void dumpBuckets()
TimeIntervalMapper
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |