1 18 package org.apache.batik.svggen; 19 20 import java.util.HashMap ; 21 import java.util.LinkedList ; 22 import java.util.List ; 23 import java.util.Map ; 24 25 36 public abstract class AbstractSVGFilterConverter 37 implements SVGFilterConverter, ErrorConstants { 38 41 protected SVGGeneratorContext generatorContext; 42 43 47 protected Map descMap = new HashMap (); 48 49 53 protected List defSet = new LinkedList (); 54 55 59 public AbstractSVGFilterConverter(SVGGeneratorContext generatorContext) { 60 if (generatorContext == null) 61 throw new SVGGraphics2DRuntimeException(ERR_CONTEXT_NULL); 62 this.generatorContext = generatorContext; 63 } 64 65 72 public List getDefinitionSet(){ 73 return defSet; 74 } 75 76 79 public final String doubleString(double value) { 80 return generatorContext.doubleString(value); 81 } 82 } 83 | Popular Tags |