1 18 package org.apache.batik.css.engine.value.svg; 19 20 import org.apache.batik.css.engine.value.IdentifierManager; 21 import org.apache.batik.css.engine.value.StringMap; 22 import org.apache.batik.css.engine.value.Value; 23 import org.apache.batik.util.CSSConstants; 24 25 31 public class TextRenderingManager extends IdentifierManager { 32 33 36 protected final static StringMap values = new StringMap(); 37 static { 38 values.put(CSSConstants.CSS_AUTO_VALUE, 39 SVGValueConstants.AUTO_VALUE); 40 values.put(CSSConstants.CSS_OPTIMIZESPEED_VALUE, 41 SVGValueConstants.OPTIMIZESPEED_VALUE); 42 values.put(CSSConstants.CSS_GEOMETRICPRECISION_VALUE, 43 SVGValueConstants.GEOMETRICPRECISION_VALUE); 44 values.put(CSSConstants.CSS_OPTIMIZELEGIBILITY_VALUE, 45 SVGValueConstants.OPTIMIZELEGIBILITY_VALUE); 46 } 47 48 52 public boolean isInheritedProperty() { 53 return true; 54 } 55 56 60 public String getPropertyName() { 61 return CSSConstants.CSS_TEXT_RENDERING_PROPERTY; 62 } 63 64 68 public Value getDefaultValue() { 69 return SVGValueConstants.AUTO_VALUE; 70 } 71 72 75 public StringMap getIdentifiers() { 76 return values; 77 } 78 } 79 | Popular Tags |