- From: Zacharie ALES <zacharie.ales AT gmail.com>
- To: graphstream-users AT litislab.fr
- Subject: nodePosition(Graph, String) returns (0,0,0)
- Date: Wed, 12 Sep 2012 15:33:35 +0200
Hello,
I recently switched to the nightly build version. Everything works fine except the nodePosition function that I am using to center the view on one specific node.
An exemple :
public void centerView(String id)
double[] d = org.graphstream.ui.graphicGraph.GraphPosLengthUtils.nodePosition(myGraph,id);
System.out.println(d[0] + ", " + d[1] + ", " + d[2]); // Display "position : 0.0, 0.0, 0.0"
}
I checked the id and it is correct (myGraph.getNode(id) == null returns false). Is it a bug or do I miss something ?
Thanks in advance for your help.
--
Zacharie ALES.
- nodePosition(Graph, String) returns (0,0,0), Zacharie ALES, 12/09/2012
Archives gérées par MHonArc 2.6.16.