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 37 public abstract class AbstractSVGConverter implements SVGConverter, 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 AbstractSVGConverter(SVGGeneratorContext generatorContext) { 60 if (generatorContext == null) 61 throw new SVGGraphics2DRuntimeException(ERR_CONTEXT_NULL); 62 63 this.generatorContext = generatorContext; 64 } 65 66 73 public List getDefinitionSet() { 74 return defSet; 75 } 76 77 80 public final String doubleString(double value) { 81 return generatorContext.doubleString(value); 82 } 83 } 84 | Popular Tags |