Kind regards,
Youri
PS. This is somewhat how I'm using the layout algorithm:
public MyClass() {
SpringBox layout = new SpringBox();
layout.addSink(this);
layout.nodeAdded("0", 1000, "a");
layout.nodeAdded("0", 2000, "b");
layout.edgeAdded("0", 3000, "aToB", "a", "b", true);
LayoutRunner runner = new LayoutRunner(layout, layout);
}
@Overide
public void nodeAttributeChanged(...) {
// adjust position of the changed node
}
Attachment:
SmallGraph.png
Description: PNG image
Archives gérées par MHonArc 2.6.16.