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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to