hi batik users

i want to create a custom svg document.  i want a group element for each
component in my parent component.  i also want to add some additional
attibutes to each group element in my svg document.

so:
SVGGraphics2D svgGenerator = new SVGGraphics2D(svgDoc);
myJComonent.paint(svgGenerator);
this snippet generates a document with one group element <g>, which paints
all of myJComponent's visible child components.

if i want to add additional attribute elements to this <g> element, all i
have to do is ask my svgGenerator for getTopLevelGroup().  pretty easy.  but
what if I want to add custom attribute tags to each subcomponent?

my current thought is to create a SVGGraphics2D for each sub-component,
strip out each topLevelGroup, add x and y attributes (to place them in their
positions in their parent component).  then stitch all these group elements
together into a new document.  does that make sense?  is there an easier
way?

thanks much
ERIK!


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

Reply via email to