summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/svg/SVGElement.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/kitfox/svg/SVGElement.java')
-rw-r--r--src/main/java/com/kitfox/svg/SVGElement.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGElement.java b/src/main/java/com/kitfox/svg/SVGElement.java
index 47ce1c3..08cb36c 100644
--- a/src/main/java/com/kitfox/svg/SVGElement.java
+++ b/src/main/java/com/kitfox/svg/SVGElement.java
@@ -267,7 +267,20 @@ abstract public class SVGElement implements Serializable
presAttribs.put(name, new StyleAttribute(name, value));
}
}
-
+
+ public void removeAttribute(String name, int attribType)
+ {
+ switch (attribType)
+ {
+ case AnimationElement.AT_CSS:
+ inlineStyles.remove(name);
+ return;
+ case AnimationElement.AT_XML:
+ presAttribs.remove(name);
+ return;
+ }
+ }
+
public void addAttribute(String name, int attribType, String value) throws SVGElementException
{
if (hasAttribute(name, attribType)) throw new SVGElementException(this, "Attribute " + name + "(" + AnimationElement.animationElementToString(attribType) + ") already exists");