Menu

Get co-ordinates of a vertex after zooming

PavelB
2012-05-07
2013-05-29
  • PavelB

    PavelB - 2012-05-07

    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?

     
  • PavelB

    PavelB - 2012-05-09

    Thanks a lot, this works fine.

     

Log in to post a comment.