Hi,
I am using batik to render SVG inside an applet.
My SVG document has a style attribute like
style="fill: rgb(243,242,255); fill-opacity: 1; stroke-opacity: 1;
stroke-width: 1;"
After SVG is rendered, on a user selection event, i have to increase the
stroke-width of the selected SVG element.
I am using Batik's SVGStylableElement API to accomplish this. I am doing
something like
targetElement.getStyle().setProperty(cssPropertyName, cssPropertyValue, "");
But occasionally i am getting the following Exception
Invalid CSS document.
at org.apache.batik.css.engine.CSSEngine.parseStyleDeclaration(Unknown
Source)
at
org.apache.batik.dom.svg.SVGStylableElement$StyleDeclaration.<init>(Unknown
Source)
at org.apache.batik.dom.svg.SVGStylableElement.getStyle(Unknown Source)
Has anyone come across this problem?
--
View this message in context:
http://www.nabble.com/Invalid-CSS-Document-tp18526737p18526737.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]