Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Graphics package for visualizing graphs

Reply
Thread Tools

Graphics package for visualizing graphs

 
 
Tassilo Horn
Guest
Posts: n/a
 
      04-09-2009
Hi,

I'd like to write a simple graph visualization program. Because the
graphs I want to visualize are much too big to visualize them at once, I
think I'll do something like

- draw the current node centered
- draw neighbors in a circular layout around it
- draw the edges leading to the neighboring nodes
- on click on a neighbor, make that one the current node

I didn't do much graphical stuff till now, so I'd like to hear if there
are good free libraries which make the task easier than using plain
awt/swing capabilities. It wouldn't be too bad it would look fancy,
too.

I had a look at the AWT/Swing docs and it seems that there I would use a
Rectangle for the nodes. But I need to put some text of variable size
in them, I need to figure out the text's width and height to resize the
Rectangle appropriately. Currently I don't see how to do that...

Bye,
Tassilo
 
Reply With Quote
 
 
 
 
cbossens73@yahoo.fr
Guest
Posts: n/a
 
      04-09-2009
On Apr 9, 8:27 am, Tassilo Horn <tass...@member.fsf.org> wrote:
....
> - draw the current node centered
> - draw neighbors in a circular layout around it


I don't know all the visualization taxonomy but you
probably want to start by Googling on something like
"Java circular visualization" or "Java radial visualization".

You'll end on pages like this one:

(Visualization of large tree structures, look at the
sunburst tree or sunray tree)

http://www.randelshofer.ch/treeviz/index.html


or this one:

http://www.abhishek-tiwari.com/2009/...ons-in_10.html

Hope it helps,

Charles


I

 
Reply With Quote
 
 
 
 
Joshua Cranmer
Guest
Posts: n/a
 
      04-09-2009
Tassilo Horn wrote:
> I'd like to write a simple graph visualization program. Because the
> graphs I want to visualize are much too big to visualize them at once, I
> think I'll do something like
>
> - draw the current node centered
> - draw neighbors in a circular layout around it
> - draw the edges leading to the neighboring nodes
> - on click on a neighbor, make that one the current node


<http://www.research.att.com/~john/Grappa/> (based off of Graphviz) ?

--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
 
Reply With Quote
 
Tassilo Horn
Guest
Posts: n/a
 
      04-09-2009
Joshua Cranmer <> writes:

Hi Joshua,

> Tassilo Horn wrote:
>> I'd like to write a simple graph visualization program. Because the
>> graphs I want to visualize are much too big to visualize them at once, I
>> think I'll do something like
>>
>> - draw the current node centered
>> - draw neighbors in a circular layout around it
>> - draw the edges leading to the neighboring nodes
>> - on click on a neighbor, make that one the current node

>
> <http://www.research.att.com/~john/Grappa/> (based off of Graphviz) ?


This seems to go into another direction, e.g. building something like
graphviz for java including some graph editing functionality. I have
the graph data structure + a large set of graphs and just want a way to
display them interactively and incrementally.

I already have a DOT/GraphViz exporter, but the graphs are much too big
for graphviz to handle.

Anyway, thanks for the pointer!
Tassilo
--
People say that if you play Microsoft CD's backwards, you hear satanic
things, but that's nothing, because if you play them forwards, they
install Windows.
 
Reply With Quote
 
Tassilo Horn
Guest
Posts: n/a
 
      04-09-2009
writes:

Hi Charles,

> (Visualization of large tree structures, look at the sunburst tree or
> sunray tree)
>
> http://www.randelshofer.ch/treeviz/index.html


Wow, the first screenshot is exactly what I want to have.

I'll have a deeper look at it and play with the code. Thanks for being
my google-boy.

Bye,
Tassilo
--
My software never has bugs. It just develops random features.
 
Reply With Quote
 
Tassilo Horn
Guest
Posts: n/a
 
      04-09-2009
"Steve W. Jackson" <> writes:

> You've gotten other suggestions, and I'll add
> <http://www.jgraph.com/>.


At a first glance those libs seem to be more about displaying and
editing graphs as a whole, not about incremental display of huge graphs
with millions of vertices.

But thanks for another pointer!
Tassilo
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visualizing a wav file? kaens Python 3 07-11-2007 09:31 AM
Visualizing Hibernate Configuration With Linguine Maps psimakov@outplay.com Java 0 02-21-2006 07:04 PM
visualizing image Kristof Thys ASP .Net 3 09-27-2004 05:26 PM
visualizing composite pattern steffen.mazanek@unibw-muenchen.de Java 2 01-21-2004 09:03 AM
Re: Tool for Visualizing external / internal metod calls Ira Baxter Java 0 06-27-2003 06:13 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57