Re: export to giff/jpeg

Rosen Marinov wrote:
> Hi,
> can i ask you a simple fast question.
>  
> I am looking for some software available via some java API,
> which can export graph from .dot file to image GIF or JPEG?
>  
> can i do this with IsaViz?

Unfortunately no. IsaViz uses GraphViz to compute an RDF graph's layout, 
but it is no able to handle all kinds of .dot files.


>  if not is there some java API/library to do this?

I do not know about any such API. What I've done in IsaViz is generate 
the .dot file through a Java class (RDFLoader.java). I then call the dot 
program through the Java Runtime class, as I would call it from the 
command line. In IsaViz, I use parameter -Tsvg to get an SVG file. But 
you can ask dot to generate the output in other formats such as GIF and 
JPEG. See [1] for a complete list of available output formats.

[1] http://www.research.att.com/~erg/graphviz/info/output.html

Note that if you are interested in this solution (call to dot through 
runtime), you might want to take a look at ZGRViewer [2] which is a 
generic .dot viewer I've written in Java. It's probably much closer to 
what you want than IsaViz, and the code is much simpler as it is just a 
viewer.

[2] http://zvtm.sourceforge.net/zgrviewer.html

>  if yes can this image be a image map (for use in internet explorer)?

I believe there is support for image maps in GraphViz. Take a look at 
[1] for more information (imap, cmap, ismap).

Emmanuel

-- 
Emmanuel Pietriga (epietriga@nuxeo.com)
http://claribole.net

Received on Tuesday, 27 April 2004 02:40:33 UTC