Damian Cugley wrote:
> I have a timeline with two bands, one showing the month and one
> showing the days. It follows that the interval labels of the form 'Aug
> 19' are redundant (because the month name is already visible). I would
> therefore like to override the labeller object of the painter of the
> ether of this band.
>
> But alas! setting a labeller parameter in the parameters of the
> createBandInfo function does not work, and setting the _labeller
> attribute of the band after calling Timeline.create is too late
> because the labels have already been added. (Although I could perhaps
> force a "repaint" to replace the labels in this case?)
>
> This leaves me monkey-patching the Timeline.GregorianDateLabeller
> class, or writing my own replacement for the whole ether, ether-
> painter, and labeller conglomeration, which seems like a lot of work
> just to change one date format!
>
> Am I missing something here?
>
You could do something like this
var bandInfos = [
Timeline.createBandInfo(...),
Timeline.createBandInfo(...),
...
];
bandInfos[0].labeller = new MyLabeller();
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---