Hi Chris,

Christian Decker <[email protected]> wrote on 02/09/2009 07:15:55 
PM:

> I'm currently evaluating some Graphing toolkits and found Batik. I was
> wondering wether it is possible to create SVG images with Batik that 
have
> embedded links so that they are clickable when displayed in a browser. 

   Yes, assuming the browser supports SVG.  Actually there is a patch 
someone
contributed that might allow you to turn the document into a raster 
(jpeg,png) 
and an associated image map which I think could be used with any modern 
browser.

> The Problem arises because I want to display the dependencies between 
> objects as a DAG and the nodes would have to be linked to the details 
> page of the objects. Also some pointer on wether layouting such a graph 
> using Batik would be appreciated.

   Batik doesn't do much on the layout end of things.  It can provide
useful information like how big a piece of text will render with a given
font - which is really useful for sizing the box the text goes into.

   As far as drawing things for a simple DAG you are probably best off
just using DOM calls to construct the DAG in SVG (or potentially just 
using 'println' to generate SVG as XML).  We do have an implementation
of the Java Graphics2D interface that generates SVG but that is most 
useful for providing SVG output from an existing Java application that
draws complex objects.

   Good luck

Reply via email to