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 Thierry Kormann <tk...@ilog.fr> on 2002/01/01 17:10:40 UTC
Re: SVGCanvas & CSS
On Tuesday 25 December 2001 13:00, Danny Ayers wrote:
> Hi,
> How do I get an external CSS to apply to an SVGCanvas component?
> (adding the ref to the SVGDOM doc serialises out fine, but I can't seem to
> get the sheet parsed & computed within the Swing components)
>
You can implement your own org.apache.batik.swing.svg.SVGUserAgent. The
getUserStyleSheetURI() method has to return the URI of the stylesheet you
want to apply on documents.
Finally, creates your SVGCanvas using this SVGUserAgent.
Hope that helps,
Thierry.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
RE: SVGCanvas & CSS
Posted by Danny Ayers <da...@virgilio.it>.
Great! Thanks very much.
Cheers,
Danny.
---
Danny Ayers
<stuff> http://www.isacat.net </stuff>
Alternate email (2001) :
danny666@virgilio.it
danny_ayers@yahoo.co.uk
>-----Original Message-----
>From: Thierry Kormann [mailto:tkormann@ilog.fr]
>Sent: 01 January 2002 17:11
>To: Batik Users; Danny Ayers
>Subject: Re: SVGCanvas & CSS
>
>
>On Tuesday 25 December 2001 13:00, Danny Ayers wrote:
>> Hi,
>> How do I get an external CSS to apply to an SVGCanvas component?
>> (adding the ref to the SVGDOM doc serialises out fine, but I
>can't seem to
>> get the sheet parsed & computed within the Swing components)
>>
>
>You can implement your own org.apache.batik.swing.svg.SVGUserAgent. The
>getUserStyleSheetURI() method has to return the URI of the stylesheet you
>want to apply on documents.
>
>Finally, creates your SVGCanvas using this SVGUserAgent.
>
>Hope that helps,
>Thierry.
>
>
>---------------------------------------------------------------------
>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