Hi Tina,
On Sun, 10 Jul 2005 12:52:34 -0400, Thomas DeWeese wrote:
((SVGStylable)elem).getStyle().getCSSValue("fill"); Which returns a CSSValue which is kind of complex but gives some a more 'parsed' version of the value (a CSSValue).
Tina Frieling wrote:
Thank you for your answer. This gets me one step further in retriving this value. The last step would be to have an easy way to convert this String-Value to a Java (Color-)object (and vice versa). But I think I can do this on my own if necessary.
The 'getCSSvalue' version returns a CSSValue which for fill should be an 'SVGPaint' object, and for simple colors it will be an SVGColor (also css.RGBColor). I would look at or just use the code in batik.bridge.PaintServer. It has a bunch of static methods that can be used for this purpose. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
