Hello,

I'm starting to play with the Graphics2D capabilities of batik.
The API i'm working on enables objects to be serialized into XML via a toXML() method defined in an interface called Taggable
and I'd like to be able to customize the way batik converts 2D objects to SVG in a way such as it could include my XML content into the SVG
groups.


Lets say I use a CustomRectangle defining the paint(Graphics g) method, associated with an a A object implementing Taggable.
The thing i'd like to obtain would be :


<g fill="lime" stroke="lime">

<rect x="284341" width="471" y="245" height="10" stroke="none" />

 <a name="ect" attr1="value1" xmlns="myNameSpace">
  <.../>  
 </a>

</g>

What should I do, subclass or redefine the SVGShapes, play with the domGroupManager or create an extensioHandler ?

Any help would be greatly appreciated

Thanks

Oliver





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



Reply via email to