aaaa aaaa:
> I have following classes (SVGArea and SVGAreaPainter) which displays
> the document. The SVGArea is used by the SVGAreaPainter. The
> SVGAreaPainter has a lot methods. The one that makes the mouseover
> effect for some elements is
>
>       private void addMouseOverEffect(Element el, String color) {
>               Element mouseOver = doc.createElementNS(svgNS, "set");
>               mouseOver.setAttributeNS(null, "attributeName", "fill");
>               mouseOver.setAttributeNS(null, "attributeType", "XML");
>               mouseOver.setAttributeNS(null, "to", color);
>               mouseOver.setAttributeNS(null, "begin", "mouseover");
>               el.appendChild(mouseOver);
>               Element mouseOut = doc.createElementNS(svgNS, "set");
>               mouseOut.setAttributeNS(null, "attributeName", "fill");
>               mouseOut.setAttributeNS(null, "attributeType", "XML");
>               mouseOut.setAttributeNS(null, "to", el.getAttribute("fill"));
>               mouseOut.setAttributeNS(null, "begin", "mouseout");
>               el.appendChild(mouseOut);
>       }

Are these changes being made in the UpdateManager’s thread?  If not,
then it might explain the problem.  See:

  http://xmlgraphics.apache.org/batik/faq.html#N10215

-- 
Cameron McCormack ≝ http://mcc.id.au/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to