xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fireball <samiib...@hotmail.com>
Subject Re: Update CSS
Date Mon, 19 Nov 2012 15:43:33 GMT
After further research here is what I found. Please correct me if I am wrong.

        Element elt = document.getElementById(id);
        SVGOMGElement svgElt = (SVGOMGElement) elt;
        CSSStyleDeclaration eltCss = svgElt.getStyle();
        eltCss.setProperty("fill", color, "");

It seems to work just fine.



--
View this message in context: http://batik.2283329.n4.nabble.com/Update-CSS-tp4655378p4655379.html
Sent from the Batik - Users mailing list archive at Nabble.com.

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


Mime
View raw message