summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/kitfox/svg/SVGElement.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGElement.java b/src/main/java/com/kitfox/svg/SVGElement.java
index 06803de..7ff31e6 100644
--- a/src/main/java/com/kitfox/svg/SVGElement.java
+++ b/src/main/java/com/kitfox/svg/SVGElement.java
@@ -858,5 +858,15 @@ abstract public class SVGElement implements Serializable
* update
*/
abstract public boolean updateTime(double curTime) throws SVGException;
+
+ public int getNumChildren()
+ {
+ return children.size();
+ }
+
+ public SVGElement getChild(int i)
+ {
+ return (SVGElement)children.get(i);
+ }
}