Menu

#164 Updating of layout after adding vertex or edge to graph

open
nobody
5
2011-01-24
2011-01-24
Anonymous
No

When I want to dynamically add a vertex or edge to a graph,
I should be able to update the layout without creating a new layout,
i did not find and methods to do this in the docs,
and also couldn't find how graphmouse does it, so i had to resort to doing:
treeLayout = new TreeLayout<String,Integer>(graph);
i saw that in 1.7.6 version argkit did:
vv.stop();
vv.restart();

Discussion

  • Dimitar Simeonov

    One could also dynamically update the layout with:

    vv.getModel().fireStateChanged();

     
  • i7gabber

    i7gabber - 2011-07-29

    you can also use,

    VisualizationViewer<V,E> vv = ...;
    vv.repaint();

     

Log in to post a comment.

MongoDB Logo MongoDB