org.apache.batik.svggen

Class SVGClipDescriptor

public class SVGClipDescriptor extends Object implements SVGDescriptor, SVGSyntax

Describes an SVG clip

See Also: GraphicContext SVGDescriptor

Constructor Summary
SVGClipDescriptor(String clipPathValue, Element clipPathDef)
Creates a new SVGClipDescriptor.
Method Summary
MapgetAttributeMap(Map attrMap)
ListgetDefinitionSet(List defSet)

Constructor Detail

SVGClipDescriptor

public SVGClipDescriptor(String clipPathValue, Element clipPathDef)
Creates a new SVGClipDescriptor.

Parameters: clipPathValue the clip path value clipPathDef definition of a clip path

Method Detail

getAttributeMap

public Map getAttributeMap(Map attrMap)

Parameters: attrMap if not null, attribute name/value pairs for this descriptor should be written in this Map. Otherwise, a new Map will be created and attribute name/value pairs will be written into it.

Returns: a map containing the SVG attributes needed by the descriptor.

getDefinitionSet

public List getDefinitionSet(List defSet)

Parameters: defSet if not null, definitions required to provide targets for the descriptor attribute values will be copied into defSet. If null, a new Set should be created and definitions copied into it. The set contains zero, one or more Elements.

Returns: a set containing Elements that represent the definition of the descriptor's attribute values

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