dip.gui.map
Class SVGColorParser
java.lang.Object
dip.gui.map.SVGColorParser
- public class SVGColorParser
- extends java.lang.Object
Parses SVG colors, and returns a java.awt.Color color.
This uses some Batik trickery to allow the use of SVG
and CSS color keywords. If a color keyword is not found,
SVG color definitions (e.g., #aabbcc or rgb(3,10,200))
are parsed. If all parsing fails, the Color.BLACK is
returned.
Method Summary |
static java.awt.Color |
parseColor(java.lang.String cssColor)
Get the color; returns Color.BLACK if all parsing fails. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parseColor
public static java.awt.Color parseColor(java.lang.String cssColor)
- Get the color; returns Color.BLACK if all parsing fails.
Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.