G.Hope it helps.Camera is provided by the View http://data.graphstream-project.org/api/gs-core/current/org/graphstream/ui/view/View.html#getCamera%28%29I guess your are looking for the features provided by the Camera : http://data.graphstream-project.org/api/gs-core/current/org/graphstream/ui/view/Camera.html#transformGuToPx%28double,%20double,%20double%29Hi Ged,And thanks.Le mer. 20 mai 2015 à 15:14, Ged Robinson <robinson.ged AT gmail.com> a écrit :Hi,Great library. I love it.I've come a long way since starting to use Graphstream and it's really doing useful things for me.I am extending SpringBox layout.My subclass of SpringBox overrides particleMoved method and 'remembers' a trail for specific nodes, identified by their id.It also implements LayerRenderer in and I then can setForeLayoutRenderer on the view, with the custom layout object.The idea is to leave a trail of n points behind a given node as it moves around the graph.I'm having difficulty with something I thought would be very simple.How can I reliably convert the graph units from particleMoved (I'm assuming they are graph units in there, right?) to pixels coordinates in my render method?The view has a camera controller associated with it and can be zoomed & panned by the user at any time.I thought this would be easy, but I'm not finding it so.Any help would be greatly appreciated.Br,Ged
Archives gérées par MHonArc 2.6.16.