i working on a project for university that consist in a Web Graph Visualizator using java and jsp, in few word in a first step i analize a file (xml based) with my java parser and i build the tree\graph structure and then i need to draw the graph (or tree^^) in the web page.
i searched a little on web and i found JGraph drawing component but it seems to be able to draw a graph only in a jframe and dont give the functionality for web.
Moreover i dont know if its possible to embed the jframe created with jgraph in a html\jsp page.
Someone know if is possible and how i can make it, or simply if exist another way (library, tag-library, framework) to draw my graph in a webpage?
There's probably a way to make JGraph save the graph to a file. If that's a GIF/JPEG/PNG file, then you can reference it in your web app in an <IMG...> tag.
(And no, you can't embed a JFrame in a web page - unless you want to use an applet, but it doesn't sound like you would.)
posted 9 years ago
tnx for answers.
@Bear Bibeault i think jFreeChart and Cewolf are only to draw charts and not for a tree structure (nodes + arc)
Anything worth doing well is worth doing poorly first. Just look at this tiny ad: