frjaeger220 / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Grapher: Support for URLs #358

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice if it were possible to set a URL on the GraphvizNode. With
this it would be possible to link the nodes to Javadoc, ViewVC, Wiki, etc.

I am currently doing this in my custom ImplementationNodeFactory and
InterfaceNodeFactory.

See also http://www.graphviz.org/doc/info/attrs.html#a:URL.

Original issue reported on code.google.com by knut.wan...@gmail.com on 9 Apr 2009 at 8:32

GoogleCodeExporter commented 9 years ago
Pete, this looks interesting...

Original comment by limpbizkit on 26 Apr 2009 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 26 Apr 2009 at 9:28

GoogleCodeExporter commented 9 years ago
knut --

Sounds like a cool idea. Can you elaborate on what you're trying to do, or even 
send along a patch so I can see 
what you're interested in?

Original comment by phopkins on 29 Apr 2009 at 1:06

GoogleCodeExporter commented 9 years ago
Hi Pete

I would like to create diagrams like the attached PDF where I can click on the 
nodes.
In the attached example the URL associated with a node is simply a Google 
search for
the qualified class name corresponding to the node.

To do this I implemented subclasses for 
ImplementationNodeFactory.GraphvizNodeAdaptor
and InterfaceNodeFactory.GraphvizNodeAdaptor where I then set the URL on the 
created
nodes.

This required a simple change to GraphvizNode and GraphvizRenderer as found in 
the
attached patch.

Original comment by knut.wan...@gmail.com on 30 Apr 2009 at 5:52

Attachments:

GoogleCodeExporter commented 9 years ago
How do you specify the mapping from class/interface to URL? I'd like to take a 
shot at implementing this (4 years later...) :)

Original comment by aug...@google.com on 26 Mar 2013 at 2:05