Re: TimingFramework triggers for Trident - Let's try again
- From: Kirill Grouchnikov <kirillcool@yahoo.com>
- To: dev@trident.kenai.com
- Subject: Re: TimingFramework triggers for Trident - Let's try again
- Date: Wed, 20 May 2009 22:17:20 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=UUqzSkSVfLq8sE6HjZWrsHlInh4XwRDUSbX3UTsSUrf2AI/ekicPPIGsMgxE544wddAfRAovKnEb97DOwnnI7Knf2MsJfW2XpgB6lKeo7tLrlfquQ1lm/hb2/AofYxjruSGpFLOgvS9ppaDuvBgES66hKgtXQFnp0XlcyWh8ECw=;
Hi Remy
Thanks for starting the conversation about the triggers. In general, i do want Trident to be a general purpose animation library for Swing applications. At the present moment, all Trident demos are Swing apps, since it's most comfortable to me, produces nice videos and is, frankly, a good match for the animation domain in general. There are quite certainly a few Trident built-in features that target Swing - support for SwingWorkers in scenarios and running stuff on EDT.
However, as a long term plan i do want to refactor the Swing-specific functionality to a separate add-on library. Then, a similar library will be created for SWT, and both will serve as sample add-ons for additional interested Java-based UI toolkits (Pivot, perhaps).
As such, i would rather not fold the Swing triggers into the core library now, but suggest opening a new project and maintaining it until the rest of Swing-specific code in Trident is moved there.
To your other questions - yes, the timeline state is changed asynchronously in the main timeline engine thread. This is by design, and there are still a few issues there that need to be addressed - but in general you shouldn't expect the state to change immediately after calling the relevant Timeline / TimelineScenario APIs. Specifically in your test code, you potentially have a lot of timelines all competing over the same property of the same object - and not starting from the current value as it is at the point when the trigger is activated (but rather start from the current value at the point the timeline was created).
And i don't have immediate plans to allow playing a timeline from the specific position - unless i see a clear need from a real scenario.
Thanks
Kirill
Thanks for starting the conversation about the triggers. In general, i do want Trident to be a general purpose animation library for Swing applications. At the present moment, all Trident demos are Swing apps, since it's most comfortable to me, produces nice videos and is, frankly, a good match for the animation domain in general. There are quite certainly a few Trident built-in features that target Swing - support for SwingWorkers in scenarios and running stuff on EDT.
However, as a long term plan i do want to refactor the Swing-specific functionality to a separate add-on library. Then, a similar library will be created for SWT, and both will serve as sample add-ons for additional interested Java-based UI toolkits (Pivot, perhaps).
As such, i would rather not fold the Swing triggers into the core library now, but suggest opening a new project and maintaining it until the rest of Swing-specific code in Trident is moved there.
To your other questions - yes, the timeline state is changed asynchronously in the main timeline engine thread. This is by design, and there are still a few issues there that need to be addressed - but in general you shouldn't expect the state to change immediately after calling the relevant Timeline / TimelineScenario APIs. Specifically in your test code, you potentially have a lot of timelines all competing over the same property of the same object - and not starting from the current value as it is at the point when the trigger is activated (but rather start from the current value at the point the timeline was created).
And i don't have immediate plans to allow playing a timeline from the specific position - unless i see a clear need from a real scenario.
Thanks
Kirill
| remy.rakic | 05/20/2009 | |
|
Re: TimingFramework triggers for Trident - Let's try again |
Kirill Grouchnikov | 05/21/2009 |
| Rémy Rakic | 05/21/2009 | |
| Kirill Grouchnikov | 05/26/2009 | |
|
<Possible follow-up(s)> |
||
|
Re: Re: TimingFramework triggers for Trident - Let's try again |
remy.rakic | 05/27/2009 |





