org.apache.batik.svggen

Class SVGClip

public class SVGClip extends AbstractSVGConverter

Utility class that converts a Path object into an SVG clip
Field Summary
static SVGClipDescriptorNO_CLIP
Descriptor to use where there is no clip on an element
static ShapeORIGIN
Constant used for some degenerate cases
Constructor Summary
SVGClip(SVGGeneratorContext generatorContext)
Method Summary
SVGDescriptortoSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into a set of attribute/value pairs and related definitions.

Field Detail

NO_CLIP

public static final SVGClipDescriptor NO_CLIP
Descriptor to use where there is no clip on an element

ORIGIN

public static final Shape ORIGIN
Constant used for some degenerate cases

Constructor Detail

SVGClip

public SVGClip(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

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.