T
Tassilo Horn
Hi,
I'd like to write a simple graph visualization program. Because the
graphs I want to visualize are much too big to visualize them at once, I
think I'll do something like
- draw the current node centered
- draw neighbors in a circular layout around it
- draw the edges leading to the neighboring nodes
- on click on a neighbor, make that one the current node
I didn't do much graphical stuff till now, so I'd like to hear if there
are good free libraries which make the task easier than using plain
awt/swing capabilities. It wouldn't be too bad it would look fancy,
too. ;-)
I had a look at the AWT/Swing docs and it seems that there I would use a
Rectangle for the nodes. But I need to put some text of variable size
in them, I need to figure out the text's width and height to resize the
Rectangle appropriately. Currently I don't see how to do that...
Bye,
Tassilo
I'd like to write a simple graph visualization program. Because the
graphs I want to visualize are much too big to visualize them at once, I
think I'll do something like
- draw the current node centered
- draw neighbors in a circular layout around it
- draw the edges leading to the neighboring nodes
- on click on a neighbor, make that one the current node
I didn't do much graphical stuff till now, so I'd like to hear if there
are good free libraries which make the task easier than using plain
awt/swing capabilities. It wouldn't be too bad it would look fancy,
too. ;-)
I had a look at the AWT/Swing docs and it seems that there I would use a
Rectangle for the nodes. But I need to put some text of variable size
in them, I need to figure out the text's width and height to resize the
Rectangle appropriately. Currently I don't see how to do that...
Bye,
Tassilo