From 435668ca283eadafff2b1d36760babb9aeaa725a Mon Sep 17 00:00:00 2001 From: kitfox Date: Sat, 4 Sep 2010 16:59:35 +0000 Subject: 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 --- src/main/java/com/kitfox/svg/SVGElement.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main') 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); + } } -- cgit v1.2.3-55-g7522