Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    
SUMMARY: 
java.lang.Object
  extended by org.apache.batik.svggen.AbstractSVGConverter
      extended by org.apache.batik.svggen.SVGColor
All Implemented Interfaces:
ErrorConstants, SVGConverter, SVGSyntax, CSSConstants, SVGConstants, XMLConstants

public class SVGColor
extends AbstractSVGConverter

Utility class that converts a Color object into a set of corresponding SVG attributes.

See Also:
DOMTreeManager

Constructor Detail

SVGColor

public SVGColor(SVGGeneratorContext generatorContext)
Parameters:
generatorContext - used by converter to handle precision or to create elements.
Method Detail

toSVG

public SVGDescriptor toSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into a set of attribute/value pairs and related definitions

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

toSVG

public static SVGPaintDescriptor toSVG(java.awt.Color color,
                                       SVGGeneratorContext gc)
Converts a Color object to a set of two corresponding values: a CSS color string and an opacity value.


Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    
SUMMARY: