summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/svg/animation/TimeCompound.java
diff options
context:
space:
mode:
authorkitfox2010-03-10 18:09:17 +0100
committerkitfox2010-03-10 18:09:17 +0100
commit0c00a3fa56b7988a28932499f1546378c9a93d3b (patch)
tree0753664529c7a79bf7b0707bbcd6387a85f83f29 /src/main/java/com/kitfox/svg/animation/TimeCompound.java
parentNow checking to see if path exists when resolving jar: urls. (diff)
downloadsvg-salamander-core-0c00a3fa56b7988a28932499f1546378c9a93d3b.tar.gz
svg-salamander-core-0c00a3fa56b7988a28932499f1546378c9a93d3b.tar.xz
svg-salamander-core-0c00a3fa56b7988a28932499f1546378c9a93d3b.zip
Fixed bug where chained 'move' path commands were not switching to 'line' after first path segment. Switched from using Vector to List. Added new project containing example files.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@70 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main/java/com/kitfox/svg/animation/TimeCompound.java')
-rw-r--r--src/main/java/com/kitfox/svg/animation/TimeCompound.java24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/main/java/com/kitfox/svg/animation/TimeCompound.java b/src/main/java/com/kitfox/svg/animation/TimeCompound.java
index 0545fc6..2ba47e2 100644
--- a/src/main/java/com/kitfox/svg/animation/TimeCompound.java
+++ b/src/main/java/com/kitfox/svg/animation/TimeCompound.java
@@ -26,8 +26,11 @@
package com.kitfox.svg.animation;
-import java.util.*;
-import java.util.regex.*;
+import java.util.Collections;
+import java.util.Iterator;
+import java.util.List;
+import java.util.regex.Pattern;
+
/**
* This represents a summation of other time elements. It is used for complex
@@ -49,26 +52,11 @@ public class TimeCompound extends TimeBase
private AnimationElement parent;
/** Creates a new instance of TimeDiscrete */
- public TimeCompound(Vector timeBases)
+ public TimeCompound(List timeBases)
{
componentTimes = Collections.unmodifiableList(timeBases);
}
- /*
- public TimeCompound(String text)
- {
- String[] vals = patPlus.split(text);
-
- Vector times = new Vector(vals.length);
-
- for (int i = 0; i < vals.length; i++)
- {
- times.set(i, parseTimeComponent(vals[i]));
- }
-
- this(times);
- }*/
-
public double evalTime()
{
double agg = 0.0;