Hi,
Is there a possibility to get the co-ordinates of a vertex in the current layout after zooming in or out or transforming the view of the graph? I can get the co-ordinates with
vv = new VisualizationViewer<Vertex, Edge>(layout);
Point2D vertexCO = vv.getGraphLayout().transform(vertexName);
but after zooming in or out or transforming the graph view by moving it around, the co-ordinates a no more valid. Can I somehow get the actual co-ordinates of a vertex in the current view of the graph?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is there a possibility to get the co-ordinates of a vertex in the current layout after zooming in or out or transforming the view of the graph? I can get the co-ordinates with
but after zooming in or out or transforming the graph view by moving it around, the co-ordinates a no more valid. Can I somehow get the actual co-ordinates of a vertex in the current view of the graph?
https://sourceforge.net/projects/jung/forums/forum/252062/topic/3040266?message=6522779
Thanks a lot, this works fine.