| Animation [message #60333] | 
Thu, 30 January 2003 15:29   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: ian.ianbull.com 
 
I would like to add a small amount of animation to my GEF application (which 
basically emphases something getting bigger when a double-click occurs). 
 
Is there a good way to do this (some ideas I have include): 
 o Setup a callback with the eventloop (somehow) to happen a couple of times 
per second, each time doing a small piece of the animation 
 o Spawn a new thread which performs part of the animation, sleeps, and then 
does a little more (etc..) 
 
Any thoughts on this would be greatly appreciated. 
 
Cheers, 
Ian 
 
-- 
Ian Bull - IBM Centre for Advanced Studies 
University of Victoria
 |  
 |  
  | 
| Re: Animation [message #60409 is a reply to message #60333] | 
Thu, 30 January 2003 15:37   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: none.us.ibm.com 
 
See the internal class AnimatableFigure, which is used by the Palette.  It 
does the animation directly from the Event Thread, so the animation should 
be short. 
 
"ian" <ian@ianbull.com> wrote in message news:b1c0ml$d5a$1@rogue.oti.com... 
> I would like to add a small amount of animation to my GEF application 
(which 
> basically emphases something getting bigger when a double-click occurs). 
> 
> Is there a good way to do this (some ideas I have include): 
>  o Setup a callback with the eventloop (somehow) to happen a couple of 
times 
> per second, each time doing a small piece of the animation 
>  o Spawn a new thread which performs part of the animation, sleeps, and 
then 
> does a little more (etc..) 
> 
> Any thoughts on this would be greatly appreciated. 
> 
> Cheers, 
> Ian 
> 
> -- 
> Ian Bull - IBM Centre for Advanced Studies 
> University of Victoria 
> 
>
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03511 seconds