1 18 19 package org.apache.batik.css.engine.value.svg12; 20 21 import org.apache.batik.css.engine.value.IdentifierManager; 22 import org.apache.batik.css.engine.value.StringMap; 23 import org.apache.batik.css.engine.value.Value; 24 import org.apache.batik.css.engine.value.ValueConstants; 25 import org.apache.batik.util.SVG12CSSConstants; 26 27 33 public class TextAlignManager extends IdentifierManager { 34 35 38 protected final static StringMap values = new StringMap(); 39 static { 40 values.put(SVG12CSSConstants.CSS_START_VALUE, 41 SVG12ValueConstants.START_VALUE); 42 values.put(SVG12CSSConstants.CSS_MIDDLE_VALUE, 43 SVG12ValueConstants.MIDDLE_VALUE); 44 values.put(SVG12CSSConstants.CSS_END_VALUE, 45 SVG12ValueConstants.END_VALUE); 46 values.put(SVG12CSSConstants.CSS_FULL_VALUE, 47 SVG12ValueConstants.FULL_VALUE); 48 } 49 50 54 public boolean isInheritedProperty() { 55 return true; 56 } 57 58 62 public String getPropertyName() { 63 return SVG12CSSConstants.CSS_TEXT_ALIGN_PROPERTY; 64 } 65 66 70 public Value getDefaultValue() { 71 return ValueConstants.INHERIT_VALUE; 72 } 73 74 77 public StringMap getIdentifiers() { 78 return values; 79 } 80 } 81 | Popular Tags |