org.apache.batik.svggen
public class SVGColor extends AbstractSVGConverter
See Also: DOMTreeManager
Field Summary | |
---|---|
static Color | aqua
Predefined CSS colors |
static Color | black |
static Color | blue |
static Color | fuchsia |
static Color | gray |
static Color | green |
static Color | lime |
static Color | maroon |
static Color | navy |
static Color | olive |
static Color | purple |
static Color | red |
static Color | silver |
static Color | teal |
static Color | white |
static Color | yellow |
Constructor Summary | |
---|---|
SVGColor(SVGGeneratorContext generatorContext) |
Method Summary | |
---|---|
SVGDescriptor | toSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into
a set of attribute/value pairs and related definitions
|
static SVGPaintDescriptor | toSVG(Color color, SVGGeneratorContext gc)
Converts a Color object to a set of two corresponding
values: a CSS color string and an opacity value. |
Parameters: generatorContext used by converter to handle precision or to create elements.
Parameters: gc GraphicContext to be converted
Returns: descriptor of the attributes required to represent some or all of the GraphicContext state, along with the related definitions
See Also: SVGDescriptor