summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorkitfox2010-09-04 18:59:35 +0200
committerkitfox2010-09-04 18:59:35 +0200
commit435668ca283eadafff2b1d36760babb9aeaa725a (patch)
treee30054b4c5923dad6fab717fab7658bad43fe95d /src/main
parentAdded support for inline images. (diff)
downloadsvg-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.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);
+ }
}