Class SVGCompositeDescriptor

java.lang.Object
org.apache.batik.svggen.SVGCompositeDescriptor
All Implemented Interfaces:
XMLConstants, SVGDescriptor, SVGSyntax, CSSConstants, SVGConstants

public class SVGCompositeDescriptor extends Object implements SVGDescriptor, SVGSyntax
Used to represent an SVG Composite. This can be achieved with to values: an SVG opacity and a filter
Version:
$Id: SVGCompositeDescriptor.java 1733416 2016-03-03 07:07:13Z gadams $
  • Field Details

    • def

      private Element def
    • opacityValue

      private String opacityValue
    • filterValue

      private String filterValue
  • Constructor Details

    • SVGCompositeDescriptor

      public SVGCompositeDescriptor(String opacityValue, String filterValue)
    • SVGCompositeDescriptor

      public SVGCompositeDescriptor(String opacityValue, String filterValue, Element def)
  • Method Details

    • getOpacityValue

      public String getOpacityValue()
    • getFilterValue

      public String getFilterValue()
    • getDef

      public Element getDef()
    • getAttributeMap

      public Map getAttributeMap(Map attrMap)
      Specified by:
      getAttributeMap in interface SVGDescriptor
      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)
      Specified by:
      getDefinitionSet in interface SVGDescriptor
      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