Olivier,

It'd be great if you can write down what you did on our wiki somewhere 
so other people can do the same... Thanks.

David

[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote on 19/04/2007 19:42:42:
>
>   
>> [EMAIL PROTECTED] wrote:
>>     
>>> This example was given to somebody who asked to starter point to begin 
>>>       
> to 
>   
>>> developp a Gantt view.
>>> The only visible added functionality on this one is the multiple band 
>>>       
> to 
>   
>>> navigate (day, week, quarter).
>>>
>>> From what i understood, the packing of the events is done in the 
>>> layoutEvent function 
>>> in the Timeline.StaticTrackBasedLayout.prototype._layout class
>>>
>>> I will try to create another layout which doesn't pack the layout but 
>>>       
> the 
>   
>>> difficulty would be to transmit the category data trough
>>> all the layers (i think i will need to modify the event class too).
>>>
>>>       
>> You do need to override Exhibit's code to split events into different 
>> eventSource's, which are then fed into different bands. You can't just 
>> override Timeline's code.
>>
>> The code for the views in Exhibit 1.0 is not so well factored, so it'd 
>> be hard to dig through. Exhibit 2.0's views have been refactored, but 
>> 2.0 is still in development and will be under constant changes.
>>
>> David
>>     
>
> Ok i managed to do it.
> Just had to create a "category" element (with a number type) and 
> implements a getCategorie in some js files
> to transmit it trough all the layers then i replace the streamIndex from 
> the following code in the layout.js
>
> for (; streamIndex < streams.length; streamIndex++) {
>             if (streams[streamIndex] < startPixel) {
>                 break;
>             }
>         }
>
> by my category item
>
>
> This is a little dirty but now i can pinpoint the stream where i want to 
> put my event.
> The only problem left is that i have no more checking of the unicity of an 
> event on a stream.
> But i can accomodate myself with that if i do the check directly on the 
> data.
>
> But I still enjoying the speed at which i created this timeline..
>
>
>
> *************************************************************************
> This message and any attachments (the "message") are confidential and 
> intended solely for the addressee(s).
> Any unauthorised use or dissemination is prohibited. E-mails are susceptible 
> to alteration.   
> Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be 
> liable for the message if altered, changed or
> falsified.
>                               ************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont 
> confidentiels et etablis a l'intention exclusive de ses
> destinataires. Toute utilisation ou diffusion non autorisee est interdite. 
> Tout message electronique est susceptible d'alteration. 
> La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre 
> de ce message s'il a ete altere, deforme ou falsifie.
> *************************************************************************
> _______________________________________________
> 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