Hi Louis-rémi and Age,

"louis-rémi BABE" <[email protected]> wrote on 01/06/2009 11:26:32 AM:

> > Basically kind of like it's
> > possible in JavaScript (element.style.property = ...). I was of the
> > opinion that this was possible in Batik but I can't seem to find out
> > how.
> 
> This should be possible using the following syntax:
> 
> element.style.setProperty(''opacity", "1", "");

   I think he want's to do this in Java code so it would
be something like:

  ((org.w3c.dom.svg.SVGStylable)element).getStyle().setProperty("opacity", 
"1", "");

> The last argument is for priority: "important" or ""
> 
> Not sure whether there is a getProperty method, you should use 
> getComputedStyle on document's defaultView for that purpose.

   All quite correct.

Reply via email to