You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Danny Ayers <da...@virgilio.it> on 2002/08/07 21:33:53 UTC
Quick SVGGraphics2D reminder please!
I've just been trying to get a Swing component to render through
SVGGraphics2D - I'm *sure* I've done this before (or I'm losing it
completely), but now I can only draw a blank (<g/>). I'm creating the
generator ok, shapes/text works ok but something like :
JLabel label = new JLabel("test");
label.paint(svgGraphics2D);
yields nothing of interest when I serialize it.
What have I forgotten?
Cheers,
Danny.
---
Danny Ayers
<stuff> http://www.isacat.net </stuff>
Idea maps for the Semantic Web
http://ideagraph.net
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
RE: Quick SVGGraphics2D reminder please!
Posted by Danny Ayers <da...@virgilio.it>.
>There are a number of things to check when serializing Swing components
>with the SVGGraphics2D. I think that the
>org.apache.batik.svggen.SwingSVGPrettyPrinter class should contain the
>answers to your questions.
Thanks Vincent, that's exactly what I was looking for ;-)
Cheers,
Danny.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: Quick SVGGraphics2D reminder please!
Posted by Vincent Hardy <vi...@sun.com>.
Danny,
There are a number of things to check when serializing Swing components
with the SVGGraphics2D. I think that the
org.apache.batik.svggen.SwingSVGPrettyPrinter class should contain the
answers to your questions.
Vincent.
Danny Ayers wrote:
> I've just been trying to get a Swing component to render through
> SVGGraphics2D - I'm *sure* I've done this before (or I'm losing it
> completely), but now I can only draw a blank (<g/>). I'm creating the
> generator ok, shapes/text works ok but something like :
>
> JLabel label = new JLabel("test");
> label.paint(svgGraphics2D);
>
> yields nothing of interest when I serialize it.
> What have I forgotten?
>
> Cheers,
> Danny.
>
> ---
> Danny Ayers
> <stuff> http://www.isacat.net </stuff>
>
> Idea maps for the Semantic Web
> http://ideagraph.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org