|
From: SourceForge.net <no...@so...> - 2007-02-08 23:12:05
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4148058 By: pandemic73 Not a chance.. I do not understand this at all. Please, advise. What and how do I provide to the graph copies using StaticLayout so that the vertex layout is similar to the original graph? In Joshuas answer it simply seemed like all I had to do was pass the layout of the original graph.. However that and any other wild attempt of getting it to work fails.. miserably. This is what I do: sl_ = new StaticLayout(topology_); // sl_.initialize(new Dimension(600, 622)); // this works sl_.initialize(new Dimension(600, 622), (VertexLocationFunction) orgLayout); // this does not This is what I get after doing the above: --- 8< --------- Exception in thread "main" java.lang.NullPointerException at java.awt.geom.Point2D.setLocation(Point2D.java:241) at edu.uci.ics.jung.visualization.AbstractLayout.initializeLocation(Abst ractLayout.java:196) at edu.uci.ics.jung.visualization.AbstractLayout.initializeLocations(Abs tractLayout.java:174) at edu.uci.ics.jung.visualization.AbstractLayout.initialize(AbstractLayo ut.java:114) at no.gatada.sak.simulator.Configuration.displayJFrame(Configuration.jav a:421) .... ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=252062 |