Welcome to Dream.In.Code
Become a Java Expert!

Join 149,617 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,860 people online right now. Registration is fast and FREE... Join Now!




Dynamic GRAPH USING JAVA

 
Reply to this topicStart new topic

Dynamic GRAPH USING JAVA, Different types of graph using java API's

newguru
16 Sep, 2007 - 01:18 AM
Post #1

New D.I.C Head
*

Joined: 16 Sep, 2007
Posts: 1


My Contributions
I want to get the data from database for which i need to have a graph using JAVA API's

Is it possible if Yes which classs we can.....
User is offlineProfile CardPM
+Quote Post

William_Wilson
RE: Dynamic GRAPH USING JAVA
16 Sep, 2007 - 06:52 AM
Post #2

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,101



Thanked: 25 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
most definitely possible, i had this as an assignment in 1st year university.
You will need to define how your nodes or points are defined. Also you will need to decide how edges connect the nodes. These are fairly straight forward, running the GUI on them will require knowledge of math plus some organization to make the end result look right.
The Graphics class you will need to use, and get familiar with the paint() method. The actual laying it out on the GUI will be the hardest part.
User is offlineProfile CardPM
+Quote Post

1lacca
RE: Dynamic GRAPH USING JAVA
16 Sep, 2007 - 02:42 PM
Post #3

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
The Graphics2D class has very nice drawing functions.
User is offlineProfile CardPM
+Quote Post

Programmist
RE: Dynamic GRAPH USING JAVA
17 Sep, 2007 - 07:43 AM
Post #4

Four-letter word
Group Icon

Joined: 2 Jan, 2006
Posts: 1,250



Thanked: 11 times
Dream Kudos: 100
Expert In: Java

My Contributions
Same as WW, In first year Uni had to make pie charts out of data retrieved from mySQL database. It's not hard. Just get out some paper and work out the geometry for it first. I agree with 1lacca that the Graphics2d class has some nice features. I especially like the anti-aliasing feature - really smooths out curves and edges.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 12:33AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month