Shazron,

Batik resolves an SVG file into an internal tree called the GVT tree
which can be rendered to a Graphics2D object.

Relevant places to look at:

org.apache.batik.bridge.DocumentLoader
org.apache.batik.swing.svg.GVTTreeBuilder

Vincent.

Shazron Abdullah wrote:
> 
> >    Write your own subclass of Graphics2D that for each method print's
> >the parameters rather than doing the drawing.  But I have no idea what
> >you are going to do with that once you have done it (i.e. you must
> >have some sort of target format or something?).  Also it's not clear
> >how you would support everything (like drawImage for example).
> >
> >    Good luck...
> >
> >RH> /Rikard Herlitz
> 
> Actually I'm wondering the same thing. I think what he is asking is what
> part of Batik generates for example the Graphics.rect(...) calls - since
> at some point Batik parses the SVG and generates the 2D calls to the
> Graphics2D object. What part of Batik does this, does anyone know?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to