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 PointerEventsManager extends IdentifierManager { 32 33 36 protected final static StringMap values = new StringMap(); 37 static { 38 values.put(CSSConstants.CSS_ALL_VALUE, 39 SVGValueConstants.ALL_VALUE); 40 values.put(CSSConstants.CSS_FILL_VALUE, 41 SVGValueConstants.FILL_VALUE); 42 values.put(CSSConstants.CSS_FILLSTROKE_VALUE, 43 SVGValueConstants.FILLSTROKE_VALUE); 44 values.put(CSSConstants.CSS_NONE_VALUE, 45 SVGValueConstants.NONE_VALUE); 46 values.put(CSSConstants.CSS_PAINTED_VALUE, 47 SVGValueConstants.PAINTED_VALUE); 48 values.put(CSSConstants.CSS_STROKE_VALUE, 49 SVGValueConstants.STROKE_VALUE); 50 values.put(CSSConstants.CSS_VISIBLE_VALUE, 51 SVGValueConstants.VISIBLE_VALUE); 52 values.put(CSSConstants.CSS_VISIBLEFILL_VALUE, 53 SVGValueConstants.VISIBLEFILL_VALUE); 54 values.put(CSSConstants.CSS_VISIBLEFILLSTROKE_VALUE, 55 SVGValueConstants.VISIBLEFILLSTROKE_VALUE); 56 values.put(CSSConstants.CSS_VISIBLEPAINTED_VALUE, 57 SVGValueConstants.VISIBLEPAINTED_VALUE); 58 values.put(CSSConstants.CSS_VISIBLESTROKE_VALUE, 59 SVGValueConstants.VISIBLESTROKE_VALUE); 60 } 61 62 66 public boolean isInheritedProperty() { 67 return true; 68 } 69 70 74 public String getPropertyName() { 75 return CSSConstants.CSS_POINTER_EVENTS_PROPERTY; 76 } 77 78 82 public Value getDefaultValue() { 83 return SVGValueConstants.VISIBLEPAINTED_VALUE; 84 } 85 86 89 public StringMap getIdentifiers() { 90 return values; 91 } 92 } 93 | Popular Tags |