My favorites | Sign in
Project Logo
                
Search
for
Updated Dec 08, 2008 by larrykluger
Timeline_highlighting_and_filtering  
Automatic highlighting and filtering controls for a Timeline

Introduction

The Timeline library includes highlighting and filtering api calls.

Highlighting

An event can have highlighting added on a per-band basis.

Example

See the JFK Timeline for an example of adding highlighting to a Timeline

Filtering

Bands include a filtering option. Each event in a band with a filter either will pass the filter and be shown in the band, or will be stopped by the filter and not shown.

Filters are binary: either an event passes the filter procedure and will thus be shown on the timeline or it doesn't, and the event will be omitted.

If you want additional logic for the user interface then you can make your filter procedure as elaborate as you'd like: eg multiple boxes that "or" the boxes' content against the event name/description; check boxes for different pre-defined event types, ANDing and ORing of expressions; filtering using drop down menus of different event 'categories' etc.

Note that the filter can also look into additional event attributes that are not part of the formal Timeline event attributes. This is done through the method event.getProperty

See also: Multiple filter boxes

Example

See the JFK Timeline for an example of adding filtering to a Timeline


Comment by avi.baum, Mar 14, 2009

hgre;;or r;e fure' vre


Sign in to add a comment
Hosted by Google Code