summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/svg/pathcmd/BuildHistory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/kitfox/svg/pathcmd/BuildHistory.java')
-rw-r--r--src/main/java/com/kitfox/svg/pathcmd/BuildHistory.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/svg/pathcmd/BuildHistory.java b/src/main/java/com/kitfox/svg/pathcmd/BuildHistory.java
index d16c11a..ff00120 100644
--- a/src/main/java/com/kitfox/svg/pathcmd/BuildHistory.java
+++ b/src/main/java/com/kitfox/svg/pathcmd/BuildHistory.java
@@ -41,6 +41,7 @@ public class BuildHistory {
// Point2D.Float[] history = new Point2D.Float[2];
Point2D.Float[] history = {new Point2D.Float(), new Point2D.Float()};
+ Point2D.Float start = new Point2D.Float();
int length = 0;
/** Creates a new instance of BuildHistory */
@@ -53,6 +54,11 @@ public class BuildHistory {
length = 1;
}
+ public void setStart(float x, float y)
+ {
+ start.setLocation(x, y);
+ }
+
public void setPointAndKnot(float x, float y, float kx, float ky)
{
history[0].setLocation(x, y);