my dog learned polymorphism*
The moose likes Java in General and the fly likes network graph with Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "network graph with Java" Watch "network graph with Java" New topic
Author

network graph with Java

infovis sh
Greenhorn

Joined: Jul 06, 2005
Posts: 4
hi everybody,

somebody suggest how to draw network (line and node)graph with java and database ie. node and link values from the database.

plz help.

thankx
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Moving to the Java in General (intermediate) forum.

Dave
Rahul Sapkal
Greenhorn

Joined: Jul 06, 2005
Posts: 4
You can use java.awt.Graphics or java.awt.Graphics2D classes to draw on Java Components like, Panel or Canvas. According to your requirement you can draw Lines and Shapes to make your network diagram.

Rahul
---------
rahul@javareference.com
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Take a peek at Graphviz and Dot to see how complex it can be to produce a neat looking graph. I think there are some comparable commercial products for Java, don't know about open source. You could even shell out to Graphviz if you liked it.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
infovis sh
Greenhorn

Joined: Jul 06, 2005
Posts: 4
thank the suggestions... but can u please provide me some small examles....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: network graph with Java