GraphStream Users

Archives de la liste Aide


fixing node in the middle of the canvas


Chronologique Discussions 
  • From: Benny Lutati <benny.lutati AT gmail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: fixing node in the middle of the canvas
  • Date: Thu, 26 Sep 2013 12:43:05 +0300

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.



Archives gérées par MHonArc 2.6.16.

Top of page