CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2012
    Posts
    1

    Creating Graphics using Java

    Hi!

    I am working on a program that shows a graph in terms of table of nodes and edges. It creates an adjacency matrix. Now I was wondering if there is any way by which I can plot the graph graphically. I understand that I can use AWT to create circles for nodes and connect them using lines(edges) by specifying the coordinates. I want something more. I want my nodes to be represented as Java objects (not mere shapes) so that I can handle events on them. Also, I want to design the nodes like the way we can do in photoshop or coreldraw. I don't know whether my query is relevant or not. Still, Is this possible.?

  2. #2
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Creating Graphics using Java

    My advice is before you even think of coding this yourself you look at some of the graphing packages that are freely available, such as JUNG and JGraphT to name just two. They may have the features you are looking for and thus save you a load of coding.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured