michael nesterenko
michael nesterenko

Reputation: 14439

tree structure visualization

I have an AST (abstract syntax tree) structure that I need to visualize. What to use for such visualization? I have heard about eclipse gmf, but after a short look on all that models and code generation I think that it is too complex for this problem.

My task is only show tree structure with some basic interactive functions: I need to show popup window with some additional information and that is all.

Do you think that eclipse Draw2D is enough? Moreover may be there are some out of the box solutions for visualizing a tree structure?

Upvotes: 1

Views: 2119

Answers (2)

dsalazar
dsalazar

Reputation: 51

Try GraphViz. It's an open source graph visualization software that can be used to generate images (SVG, PNG, JPEG,etc) from graph structures (including ASTs).

You can find a Java-based alternative in Eclipse Zest, a group of visualization components for Eclipse

Upvotes: 1

Eric Grunzke
Eric Grunzke

Reputation: 1657

It's not particularly sexy, but if you're looking for a low barrier of entry, a swing JTree is pretty easy to get started with. The Swing Tutorials have several examples.

Upvotes: 0

Related Questions