1 18 19 package org.apache.batik.css.engine.value.svg; 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.util.CSSConstants; 25 26 32 public class WritingModeManager extends IdentifierManager { 33 34 37 protected final static StringMap values = new StringMap(); 38 static { 39 values.put(CSSConstants.CSS_LR_VALUE, 40 SVGValueConstants.LR_VALUE); 41 values.put(CSSConstants.CSS_LR_TB_VALUE, 42 SVGValueConstants.LR_TB_VALUE); 43 values.put(CSSConstants.CSS_RL_VALUE, 44 SVGValueConstants.RL_VALUE); 45 values.put(CSSConstants.CSS_RL_TB_VALUE, 46 SVGValueConstants.RL_TB_VALUE); 47 values.put(CSSConstants.CSS_TB_VALUE, 48 SVGValueConstants.TB_VALUE); 49 values.put(CSSConstants.CSS_TB_RL_VALUE, 50 SVGValueConstants.TB_RL_VALUE); 51 } 52 53 57 public boolean isInheritedProperty() { 58 return true; 59 } 60 61 65 public String getPropertyName() { 66 return CSSConstants.CSS_WRITING_MODE_PROPERTY; 67 } 68 69 73 public Value getDefaultValue() { 74 return SVGValueConstants.LR_TB_VALUE; 75 } 76 77 80 public StringMap getIdentifiers() { 81 return values; 82 } 83 } 84 | Popular Tags |