1 18 package org.apache.batik.dom.svg; 19 20 import org.apache.batik.css.engine.CSSImportedElementRoot; 21 import org.apache.batik.dom.AbstractDocument; 22 import org.apache.batik.dom.AbstractDocumentFragment; 23 import org.w3c.dom.Element ; 24 import org.w3c.dom.Node ; 25 26 33 public class SVGOMCSSImportedElementRoot 34 extends AbstractDocumentFragment 35 implements CSSImportedElementRoot { 36 37 40 protected Element cssParentElement; 41 42 46 protected boolean isLocal; 47 48 51 protected SVGOMCSSImportedElementRoot() { 52 } 53 54 57 public SVGOMCSSImportedElementRoot(AbstractDocument owner, 58 Element parent, 59 boolean isLocal) { 60 ownerDocument = owner; 61 cssParentElement = parent; 62 this.isLocal = isLocal; 63 } 64 65 68 public boolean isReadonly() { 69 return false; 70 } 71 72 75 public void setReadonly(boolean v) { 76 } 77 78 80 84 public Element getCSSParentElement() { 85 return cssParentElement; 86 } 87 88 89 93 public boolean getIsLocal() { 94 return isLocal; 95 } 96 97 100 protected Node newNode() { 101 return new SVGOMCSSImportedElementRoot(); 102 } 103 } 104 | Popular Tags |