diff options
author | kitfox | 2010-09-04 18:59:35 +0200 |
---|---|---|
committer | kitfox | 2010-09-04 18:59:35 +0200 |
commit | 435668ca283eadafff2b1d36760babb9aeaa725a (patch) | |
tree | e30054b4c5923dad6fab717fab7658bad43fe95d /src/main | |
parent | Added support for inline images. (diff) | |
download | svg-salamander-core-435668ca283eadafff2b1d36760babb9aeaa725a.tar.gz svg-salamander-core-435668ca283eadafff2b1d36760babb9aeaa725a.tar.xz svg-salamander-core-435668ca283eadafff2b1d36760babb9aeaa725a.zip |
Added new iteration methods for SVG element children.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@80 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/kitfox/svg/SVGElement.java | 10 |
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);
+ }
}
|