Forums

Full Version: Controlling the animation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

jit

Hello,

I'm having some trouble controlling animiation in prefuse. What I want to do is allow the user to click on a node, this then animates the removal of some nodes and then once that animation has finished animate the addition of some nodes.

I've attached sample code that has TODO placeholders for what needs to be done. Please could someone help fill these in for me.

Thanks

Jit
Hello Jit,

thanks a lot for the post.
I am abroad right now so I can't look into your problem. I saw that you also posted at the sourceforge prefuse forum which is for any problem/solution most important because this forum here is not particular frequently visited by many potential helpers. In general I would recommend to crosslink the posts here and in the prefuse sourceforge forum so that answers given in one forum are found by peope visiting the other forum. Ideally this forum here is mainly used for posting source code etc while discussions take place in the sourceforge forum

happy prefusing

martin

ps
http://sourceforge.net/forum/forum.php?t..._id=343013

jit

Just wondered if anyone had made any progress on this front. I'd be grateful for any pointers.

Thanks

- Jit
I was doing something that added and removed nodes from the model graph, which exposed some race condition where some listeners still though that the nodes were supposed to still be there.

I punted and just switched to setting them invisible. You could try that. After you set the VisualItems invisible, do a Display.damageReport(), and then a repaint.
Reference URL's