|
From: SourceForge.net <no...@so...> - 2007-02-07 19:37:14
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4145682 By: pandemic73 Hi, I have 4 copies of Graph A, but when A and the copies are rendered in 5 separate JFrames, the vertex placement is of course different in all of them. So, it is very hard to instantly navigate the graph and identify which vertex is which (despite the labels). So I want to copy the location of all the Vertices in Graph A into the 4 copies of A. Or in other words, reproduce the layout of graph A, so they all look identical. As the copies are in fact graph.copy()'ies, I can traverse each vertex in each copy and manually use getEquivalent to identify the original Vertex, and then get the position of that vertex and.. hopefully copy it into the equivalent vertex. Cause I am guessing as the position of a vertexA can be obtained through someLayoutX.getLocation(vertexA), the position of the vertexB in someLayoutY can be given the same coordinates? However, I have not managed to locate any setX og setPostion.. only get methods. Which is why I feel maybe there is a smart(er) way to do this.. If you understand what I want to do, and have any ideas - let me know. I wold greatly appreciate it! /Pan ______________________________________________________________________ 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 |