Well, the ColorManager class in org.apache.batik.css.engine.value.svg
builds a Map from color names to values.  Unfortunately you can't get to
this Map from the public interface.  You could pull the necessary code
out of this class and it's superclass to build this Map yourself.  It's
really pretty simple; just grab the code which builds the computedValues
StringMap, then once you've built your own Map you can lookup the values
based on the name.

-Matt

On Tue, 2003-10-28 at 20:00, John Hon wrote:
> Hello! I have been using Batik and its very nice!
> 
> How can I use batik CSS parser to parse CSS color values (like "blanchedalmond") 
> into an RGB color? 
> This seems very difficult.. not sure how about to go with it.


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

Reply via email to