From: SourceForge.net <no...@so...> - 2006-09-26 16:13:43
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3932945 By: e-flat I'm not sure that I correctly understand the problem you're reporting. Are you saying that the first time you create a Graph, DAGLayout, and VisualizationViewer that it all works fine, and then if you create, in the same program, _entirely new_ copies of each of these that the layout is incorrect? If so, I suspect that the problem is, as your later post suggests, related to the various static fields that this class contains. It looks like it might be the overridden version of incrementsAreDone() that's the specific culprit; try commenting that out (so that the default SpringLayout method will be callled) and see how it works. There's probably no good reason for most of the properties of this class to be static; this is in the contrib/ directory because we've never gotten around to looking into things like this. :P :) Anyway, please let us know if I've correctly interpreted what you said, and whether my suggested fix works. (If that doesn't work, I'd try just making most of those various static fields into member variables and see what happens.) Joshua ______________________________________________________________________ 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 |