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 DominantBaselineManager 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_ALPHABETIC_VALUE, 41 SVGValueConstants.ALPHABETIC_VALUE); 42 values.put(CSSConstants.CSS_CENTRAL_VALUE, 43 SVGValueConstants.CENTRAL_VALUE); 44 values.put(CSSConstants.CSS_HANGING_VALUE, 45 SVGValueConstants.HANGING_VALUE); 46 values.put(CSSConstants.CSS_IDEOGRAPHIC_VALUE, 47 SVGValueConstants.IDEOGRAPHIC_VALUE); 48 values.put(CSSConstants.CSS_MATHEMATICAL_VALUE, 49 SVGValueConstants.MATHEMATICAL_VALUE); 50 values.put(CSSConstants.CSS_MIDDLE_VALUE, 51 SVGValueConstants.MIDDLE_VALUE); 52 values.put(CSSConstants.CSS_NO_CHANGE_VALUE, 53 SVGValueConstants.NO_CHANGE_VALUE); 54 values.put(CSSConstants.CSS_RESET_SIZE_VALUE, 55 SVGValueConstants.RESET_SIZE_VALUE); 56 values.put(CSSConstants.CSS_TEXT_AFTER_EDGE_VALUE, 57 SVGValueConstants.TEXT_AFTER_EDGE_VALUE); 58 values.put(CSSConstants.CSS_TEXT_BEFORE_EDGE_VALUE, 59 SVGValueConstants.TEXT_BEFORE_EDGE_VALUE); 60 values.put(CSSConstants.CSS_TEXT_BOTTOM_VALUE, 61 SVGValueConstants.TEXT_BOTTOM_VALUE); 62 values.put(CSSConstants.CSS_TEXT_TOP_VALUE, 63 SVGValueConstants.TEXT_TOP_VALUE); 64 values.put(CSSConstants.CSS_USE_SCRIPT_VALUE, 65 SVGValueConstants.USE_SCRIPT_VALUE); 66 } 67 68 72 public boolean isInheritedProperty() { 73 return false; 74 } 75 76 80 public String getPropertyName() { 81 return CSSConstants.CSS_DOMINANT_BASELINE_PROPERTY; 82 } 83 84 88 public Value getDefaultValue() { 89 return SVGValueConstants.AUTO_VALUE; 90 } 91 92 95 public StringMap getIdentifiers() { 96 return values; 97 } 98 } 99 | Popular Tags |