1 18 package org.apache.batik.css.engine.value.svg; 19 20 import org.apache.batik.css.engine.CSSEngine; 21 import org.apache.batik.css.engine.value.LengthManager; 22 import org.apache.batik.css.engine.value.Value; 23 import org.apache.batik.css.engine.value.ValueManager; 24 import org.apache.batik.util.CSSConstants; 25 import org.w3c.css.sac.LexicalUnit; 26 import org.w3c.dom.DOMException ; 27 28 34 public class StrokeDashoffsetManager extends LengthManager { 35 36 39 public boolean isInheritedProperty() { 40 return true; 41 } 42 43 46 public String getPropertyName() { 47 return CSSConstants.CSS_STROKE_DASHOFFSET_PROPERTY; 48 } 49 50 53 public Value getDefaultValue() { 54 return SVGValueConstants.NUMBER_0; 55 } 56 57 60 public Value createValue(LexicalUnit lu, CSSEngine engine) 61 throws DOMException { 62 if (lu.getLexicalUnitType() == LexicalUnit.SAC_INHERIT) { 63 return SVGValueConstants.INHERIT_VALUE; 64 } 65 return super.createValue(lu, engine); 66 } 67 68 69 73 protected int getOrientation() { 74 return BOTH_ORIENTATION; 75 } 76 } 77 | Popular Tags |