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 AlignmentBaselineManager extends IdentifierManager { 32 33 36 protected final static StringMap values = new StringMap(); 37 static { 38 values.put(CSSConstants.CSS_AFTER_EDGE_VALUE, 39 SVGValueConstants.AFTER_EDGE_VALUE); 40 values.put(CSSConstants.CSS_ALPHABETIC_VALUE, 41 SVGValueConstants.ALPHABETIC_VALUE); 42 values.put(CSSConstants.CSS_AUTO_VALUE, 43 SVGValueConstants.AUTO_VALUE); 44 values.put(CSSConstants.CSS_BASELINE_VALUE, 45 SVGValueConstants.BASELINE_VALUE); 46 values.put(CSSConstants.CSS_BEFORE_EDGE_VALUE, 47 SVGValueConstants.BEFORE_EDGE_VALUE); 48 values.put(CSSConstants.CSS_HANGING_VALUE, 49 SVGValueConstants.HANGING_VALUE); 50 values.put(CSSConstants.CSS_IDEOGRAPHIC_VALUE, 51 SVGValueConstants.IDEOGRAPHIC_VALUE); 52 values.put(CSSConstants.CSS_MATHEMATICAL_VALUE, 53 SVGValueConstants.MATHEMATICAL_VALUE); 54 values.put(CSSConstants.CSS_MIDDLE_VALUE, 55 SVGValueConstants.MIDDLE_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 } 61 62 66 public boolean isInheritedProperty() { 67 return false; 68 } 69 70 74 public String getPropertyName() { 75 return CSSConstants.CSS_ALIGNMENT_BASELINE_PROPERTY; 76 } 77 78 82 public Value getDefaultValue() { 83 return SVGValueConstants.AUTO_VALUE; 84 } 85 86 89 public StringMap getIdentifiers() { 90 return values; 91 } 92 } 93 | Popular Tags |