Hi,
On Mon, 2006-09-18 at 09:52 -0400, Bishop, Michael W. CONTR J9C880
wrote:
> OK, I'm looking at the Wiki and I'm confused. I'm using the JSVGCanvas.
> >From the Wiki:
>
> "If you are using the JSVGCanvas it does this when you associate an
> SVGDocument with the canvas."
>
> It sounds like that I'm using the SVG and CSS DOM interfaces already
> then? I also have a GVTTreeRendererAdapter that listens for
> gvtRenderingCompleted.
>
> My element definitely has a "fill" associated with it.
How do you get the fill attribute / property.
eg:
ViewCSS viewCSS =
(ViewCSS)element.getOwnerDocument().getDocumentElement();
CSSStyleDeclaration computedStyle =
viewCSS.getComputedStyle(element,null);
SVGPaint svgPaint =
(SVGPaint)computedStyle.getPropertyCSSValue(SVGConstants.SVG_FILL_ATTRIBUTE);
Make sure it is SVGConstants.SVG_FILL_ATTRIBUTE
Regards
Tonny Kohar
--
Sketsa
SVG Graphics Editor
http://www.kiyut.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]