Thanks Larry,
That did it.  I just overloaded the performFiltering function and that
did the trick.
Appreciate you help and for pointing out that David H. did the
original work.

Regards
wes

On May 1, 12:12 pm, larryk...@yahoo.com wrote:
> Hi,
>
> The filter code, along with most all of timeline is courtesy of David H.
>
> I'm sending this from the road, so I don't have access to the src. My 
> recollection is that the filtermatcher function returns true or false for 
> event to be included or not. Your code sample shows where the fultermatcher 
> function is registered with timeline, you are not showing the implementation 
> of the filtermatcher function itself.
>
> To change the sense of the filter function, just change the function by 
> inverting its output value. You don't need to change timeline itself, just 
> your function. Hope this is clear, ask if not.
>
> Regards,
> Larry
>
> Sent via BlackBerry from T-Mobile
>
> -----Original Message-----
> From: contemplative <wjwiel...@gmail.com>
>
> Date: Mon, 27 Apr 2009 14:53:27
> To: SIMILE Widgets<simile-widgets@googlegroups.com>
> Subject: examples.js - filter/highlight
>
> I have been very pleased with the functionality offered by the filter
> routines.  Many thanks to the author (whoever that might be).
>
> What I want to do is invert the action of the filter, such that it
> hides that which I type in, leaving unmatched events visible.
>
> I am afraid my coding skills lie primarily in perl, not javascript
> however.  Thus, if there is someone who could point me in the right
> direction, I am pretty sure I can modify my own copy of examples.js to
> do what I would like it to do.
>
> Following is the piece that I think does the work, but I don't know
> how:
> 104    for (var i = 0; i < bandIndices.length; i++) {
> 105        var bandIndex = bandIndices[i];
> 106        timeline.getBand(bandIndex).getEventPainter
> ().setFilterMatcher(filterMatcher);
> 107        timeline.getBand(bandIndex).getEventPainter
> ().setHighlightMatcher(highlightMatcher);
> 108    }
> 109    timeline.paint();
>
> Thanks in advance for any constructive input.
>
> wes
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to simile-widgets@googlegroups.com
To unsubscribe from this group, send email to 
simile-widgets+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to