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

public class SVGLinearGradient
extends AbstractSVGConverter

Utility class that converts a Java GradientPaint into an SVG linear gradient element


Constructor Detail

SVGLinearGradient

public SVGLinearGradient(SVGGeneratorContext generatorContext)
Parameters:
generatorContext - used to build 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 SVGPaintDescriptor toSVG(java.awt.GradientPaint gradient)
Parameters:
gradient - the GradientPaint to be converted
Returns:
a description of the SVG paint and opacity corresponding to the gradient Paint. The definiton of the linearGradient is put in the linearGradientDefsMap

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