Hi Dustin,

SpanHighlightDecorator won't do what you want. You need to write a new 
decorator that puts a label on the left edge of a band. Take a look at 
the PointHighlightDecorator in

    http://simile.mit.edu/timeline/api/scripts/decorators.js

The difference is that you need to constantly adjust the position of the 
label by adding some code in the softPaint method. softPaint is called 
when the band is scrolled. To determine the pixel offset corresponding 
to the left edge, use something like this:

    var pixelOffset = 
this._band.dateToPixelOffset(this._band.getMinVisibleDate());

I don't know how smoothly that will behave. So have a try and let me know.

David

Dustin Charles Burke wrote:
> Hi all,
>
> I came across this research called LifeLines
> (http://www.cs.umd.edu/hcil/lifelines/ - see the pictures) where multiple
> bands of data are used.  I understand the timeline provides the ability to
> have multiple, independent bands.  Is there a way to label each band with a
> title?  One thing I found is to use a SpanHighlightDecorator and specify the
> start and end labels.  I was wondering if anyone had other ideas or
> suggestions because I'm pretty new to using the Timeline.
>
> Thanks,
> Dustin
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>   

_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to