You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Alice Mello <me...@media.mit.edu> on 2005/01/21 02:40:26 UTC

Class PathParser

Hello all,

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?
Thanks a lot,
Alice



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Re: Class PathParser

Posted by Thomas DeWeese <Th...@Kodak.com>.
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: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org