Regards.I update this gist : https://gist.github.com/gsavin/6577865 to include what you want to do.Hi Benny,You have to use the Camera of the view and the setViewCenter() method.
Guilhelm--2013/9/26 Benny Lutati <benny.lutati AT gmail.com>
Hello,In my application when someone presses on a node I want that this node will move to the center of the screen and then the automatic layout will realign all the nodes but this (getting the effect of switching the center of attention).I tried changing manually the node attribute: "xyz" to something like 0,0,0 (cause I don't know what the coordinations of the canvas and therefore cannot calculate the center point) but the automatic layout just move it back.I also try to change this value in a timer (trying to force it to be fixed) but then the automatic layout never stops.is there a way to achieve what i trying to accomplish?Thanks,Benny.
Guilhelm Savin
PhD Student of Computer ScienceLITIS, University of Le Havre
\/\/\/\/\/\/
Archives gérées par MHonArc 2.6.16.