Hi Alice,
Alice Mello wrote:
It seems like PathParser is ideal for me to use in order to parse a SVG file into a private text file with graph coordinates. But, I have no clue on how to use it.
does anyone have an example?
Well the code in Batik that uses it is: batik.bridge.SVGPathElementBridge lines 79-85
This makes use of the batik.parser.AWTPathProducer class which does most of the work. The basic idea is to subclass/implement the PathHander interface (Which is what AWTPathProducer does). Then you pass your subclass into the PathParser instance and finally call 'parse' with your path data - this is what SVGPathElementBridge does.
Good luck!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]