xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Kormann <tkorm...@ilog.fr>
Subject Re: SVGCanvas & CSS
Date Tue, 01 Jan 2002 16:10:40 GMT
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,

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message