1 18 package org.apache.batik.css.engine.value.css2; 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.css.engine.value.ValueConstants; 24 import org.apache.batik.util.CSSConstants; 25 26 32 public class FontStyleManager extends IdentifierManager { 33 34 37 protected final static StringMap values = new StringMap(); 38 static { 39 values.put(CSSConstants.CSS_ALL_VALUE, 40 ValueConstants.ALL_VALUE); 41 values.put(CSSConstants.CSS_ITALIC_VALUE, 42 ValueConstants.ITALIC_VALUE); 43 values.put(CSSConstants.CSS_NORMAL_VALUE, 44 ValueConstants.NORMAL_VALUE); 45 values.put(CSSConstants.CSS_OBLIQUE_VALUE, 46 ValueConstants.OBLIQUE_VALUE); 47 } 48 49 53 public boolean isInheritedProperty() { 54 return true; 55 } 56 57 61 public String getPropertyName() { 62 return CSSConstants.CSS_FONT_STYLE_PROPERTY; 63 } 64 65 69 public Value getDefaultValue() { 70 return ValueConstants.NORMAL_VALUE; 71 } 72 73 76 public StringMap getIdentifiers() { 77 return values; 78 } 79 } 80 | Popular Tags |