Can Batik go from a SVG file to a Java 2D graphic? If it can, where is some documentation to read, or is there an example to study?

 

What I would like to do with the application I am developing is to take XML transform through a Style sheet (XSLT) to get a SVG file/graphic.  What I would like to do is let the user see each graph, after being transformed by the XSLT.  From what I understand about Batik it was designed as a wrapper around the Java 2D APIs to allow for output to SVG.  But I would like to do the reverse, take a SVG and create a Java 2D graphic.  I would like to allow the end user to proof the graph before producing slides from it.  My application will create some unique graphs from dynamic data on a monthly cycle, where the size of graph elements change based on the data, similar to just changing the height of a bar chart.  Can SVG->Java 2D be done with Batik?  I wanted to stay away form building new Java code for every new graphic the customer will come up with.  I was hoping to be able to just send an updated list of selectable graphics, along with the XSLT for each new graph.  I don’t understand enough about Batik to get an answer from reading the JavaDocs.

 

Suggestions welcome.

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Note: This email is digitally signed, that is why you see the icon showing an attachment to this email.  The attachment is my Digital Signature (a.k.a. public key).

 

Attachment: smime.p7s
Description: application/pkcs7-signature

Reply via email to