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.SVGPaint
All Implemented Interfaces:
SVGConverter, SVGSyntax, CSSConstants, SVGConstants, XMLConstants

public class SVGPaint
extends java.lang.Object
implements SVGConverter

Utility class that converts a Paint object into an SVG element.

See Also:
SVGLinearGradient, SVGTexturePaint

Constructor Detail

SVGPaint

public SVGPaint(SVGGeneratorContext generatorContext)
Parameters:
generatorContext - the context.
Method Detail

getDefinitionSet

public java.util.List getDefinitionSet()
Specified by:
getDefinitionSet in interface SVGConverter
Returns:
Set of Elements defining the Paints this converter has processed since it was created

getTexturePaintConverter

public SVGTexturePaint getTexturePaintConverter()

getGradientPaintConverter

public SVGLinearGradient getGradientPaintConverter()

getCustomPaintConverter

public SVGCustomPaint getCustomPaintConverter()

getColorConverter

public SVGColor getColorConverter()

toSVG

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

Specified by:
toSVG in interface SVGConverter
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 SVGPaintDescriptor toSVG(java.awt.Paint paint)
Parameters:
paint - Paint to be converted to SVG
Returns:
a descriptor of the corresponding SVG paint

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