[EMAIL PROTECTED] wrote:

<Snip>
My secondary question is has anyone ever considered tweaking the API to include methods to access the last element drawn (or filled, etc.)? Having the 'public void draw(Shape s)' changed to 'public Element
draw(Shape
s)' would be very useful to me in this instance and it would not be hard
to
envision others. At least I can't see the harm of adding a completely
new
method ('public Element drawReturn(Shape)' or something) that emulates
the
same functionality.

   This might be interesting but would be totally out of the scope of
the SVGGraphics2D, who's job it is to implement the Graphics2D interface.
you also have issues like - how does it return a single element when you
have a complex fill in effect (gradients), or if clipping needs to be
applied.

   Also you might be interested in using some of the internal classes
like batik.svggen.SVGShape - that has a method:
        public Element toSVG(Shape s)

   Look familiar ;)
Indeed it does Thomas. It does leave me with the new problem of adding the element to the internal Tree but it is a consideration.

Thanks,

Philip

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

Reply via email to