0

Specifically, I am working on a network simulation tool written in Java (JNS). Topology objects are Nodes (names, IPHandlers and IP addresses) and DuplexLinks (IP addresses for each end, bandwidth and delay).

I am looking for a way to dynamically display certain topology objects (star, ring, etc.) given differing numbers of nodes. Are there any existing libraries that can do this already?

I want to achieve this without manually entering canvas locations during the simulation configuration. I plan on animating events over the drawn topology using JNam (adjusted to work with JNS instead of ns-2).

Laf
  • 7,965
  • 4
  • 37
  • 52

1 Answers1

0

I used this: jgraph There is also: JUNG This maybe helpfull: link

Community
  • 1
  • 1
Khinsu
  • 1,487
  • 11
  • 27
  • 1
    Thanks for the responses. Instead of using one of those tools, I simply implemented a sorting method and calculated equidistant points on a circle for each category using the sin() function. innerDiameter/2*Math.sin(2*i*Math.PI/numNodes) – Daniel Whitlock Sep 06 '13 at 17:38