|
@@ -116,7 +116,39 @@ public class Model extends Observable
|
|
|
setChanged();
|
|
|
notifyObservers();
|
|
|
}
|
|
|
+
|
|
|
+ public void ffwd()
|
|
|
+ {
|
|
|
+ for (Thingy t: thingies)
|
|
|
+ {
|
|
|
+ t.setVisibleLen(t.getPoints().size());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (thingies.size() >= 1)
|
|
|
+ {
|
|
|
+ curThingy = thingies.get(thingies.size() - 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ setChanged();
|
|
|
+ notifyObservers();
|
|
|
+ }
|
|
|
|
|
|
+ public void rewind()
|
|
|
+ {
|
|
|
+ for (Thingy t: thingies)
|
|
|
+ {
|
|
|
+ t.setVisibleLen(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (thingies.size() >= 1)
|
|
|
+ {
|
|
|
+ curThingy = thingies.get(0);
|
|
|
+ }
|
|
|
+
|
|
|
+ setChanged();
|
|
|
+ notifyObservers();
|
|
|
+ }
|
|
|
+
|
|
|
public void setSideColour(Color c)
|
|
|
{
|
|
|
sideColour = c;
|
|
@@ -232,4 +264,9 @@ class Thingy
|
|
|
{
|
|
|
visibleLen++;
|
|
|
}
|
|
|
+
|
|
|
+ public void setVisibleLen(int x)
|
|
|
+ {
|
|
|
+ visibleLen = x;
|
|
|
+ }
|
|
|
}
|