The basic problem is that such a simple minded
transformation would be useless in any sort of common
case. It would ignore transformations, stroke, etc.
If in the end you are interested in this stuff then you
really want/need the whole GVT tree which is what
the bridge classes build.
That said if you really want to parse some limited
subset of SVG. The 'lowlevel' parsers for the various
SVG syntaxes (path 'd' attribute, polygon 'points' attr,
etc.) are available in the org.apache.batik.parsers package.
This is what does most of the work for many of the buildShape
> What I need is to Convert each svg elements to java.awt
> object, e.g. convert svg <polygon - -/> element to java
> Polygon object.
> The SVGPolygon's mamber function can use given Java Polygon
> object. But I want the other way: get java.awt.Polygon object
> from svg polygon element.
> I saw the SVGPolygonElementBridge has buildShape function
> which can "Constructs a polygon according to the specified
> parameters". But that is protected function.
> Will you tell me if the Batik provides the way to Convert
> <polygon - -/> element to java polygon object?