Drawing graphs on java

Posted by nunos on Stack Overflow See other posts from Stack Overflow or by nunos
Published on 2010-06-05T19:48:59Z Indexed on 2010/06/05 19:52 UTC
Read the original article Hit count: 107

Filed under:
|
|
|

I want to draw graphs (nodes and edges) in Java. However, since I don't know how to go about it, I would like to have some advice before starting.

How should I do this?

use Graphics2D package, right?

How about the labels for the nodes? should I use something like drawString and handle all the "centering" manually or create a JLabel for that? Can I put a JLabel on a Graphics2D environment?

I have searched but haven't found any simple implementation of this. If you know of one, please provide the link in your answer.

Thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about graph