문제

I want to virtualize my network simulations and need to plot the nodes in the network. Each node has a pre-defined location and I need to plot the nodes into the correct coordination.

I am using JUNG: http://jung.sourceforge.net/applet/index.html

Any suggestions?

Thanks!

도움이 되었습니까?

해결책

I recently solved this problem by writing my own rendering Layout for JUNG.

As base for my derived layout I used the Circle Layout, which is pretty simple. In there you will see that JUNG does a setLocation(Dimension d) for every Vertex, which is pretty much what you are looking for, I guess. Just take a look at the source of the CircleLayout. Then you could use a custom Vertex object, which stores the coordinates you want the vertex to have, which is then read by your custom layout.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top