Very cool David,

I really need to look for a good use for that, it is seriously pretty.

I've hacked a "Tape" painter together by overriding a couple of prototypes
on the Original Painter, but I imagine an official "Tape" painter could be
made...

The funtions I overrode after loading the simile timeline api were:

Timeline.OriginalEventPainter.prototype.paintPreciseDurationEvent =
function(evt, metrics, theme, highlightIndex) {
:
    var labelTop = Math.round(
        metrics.trackOffset + track * metrics.trackIncrement );
//        metrics.trackOffset + track * metrics.trackIncrement +
theme.event.tape.height);
:
}

and

Timeline.OriginalEventPainter.prototype.paint = function() {
:
    var trackHeight = Math.max(eventTheme.track.height,
eventTheme.tape.height);
//    var trackHeight = Math.max(eventTheme.track.height,
eventTheme.tape.height +
//                        this._frc.getLineHeight());
:
}

I may have missed something but I'm getting a nice merged tape/label event
view now.

Would it be worth collecting any more custom painters alive in the wild and
contributing them into the source base?

I'd certainly be happy to contribute my 2 lines in a new TapePainter but I
think I only have read access to the CVS.

Cheers,
Scott

On Fri, Jan 16, 2009 at 6:42 AM, David Huynh <[email protected]> wrote:

>
> David Huynh wrote:
> > Jon Crump wrote:
> >
> >> These collapsed events display no image, just a generic image
> placeholder.
> >>
> > Stefano suggested that their images should be stacked. I'll try that
> next.
> >
> Here's a shot at stacking the images of concurrent events:
>    http://people.csail.mit.edu/dfhuynh/misc/compact-painter/index3.html
> You can hover over an event's label in a stack and its image would pop
> up to the top of the stack.
>
> David
>
> >
>


-- 
Scott Thomson
0401 726 889

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to