Web Query wrote:
> Is dynamically changing the color of the GraphicsNode possible?
> Is there a simple way to change the color of the GraphicsNode object? 
> If not, where do I get the BridgeContext and Element necessary to make 
> the color changes?

You don't need to fool with any of the bridge stuff if all you want
is to change the color of something. Instead, just modify the SVG
XML DOM in memory and Batik will automatically notice the changes
(assuming you've told it that the document is dynamic).

E.g.:

  JSVGCanvas canvas = ...
  SVGDocument svg = canvas.getSVGDocument();
  elem = (SVGElement)svg.getElementById("element-id-123");
  elem.setAttributeNS(null, "fill", "#ff0000");

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

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

Reply via email to