Esempio n. 1
0
 public void addTick(Cam c) {
   tickArr.add(new Tick(hs1.getSliderPos(), hsYPos, c, hs1.getPosInSeconds()));
   // set the older ticks to inactive
   for (int i = 0; i < tickArr.size() - 1; i++) {
     tickArr.get(i).setToInActive();
   }
   // sort the ticks in case one was placed before an existing tick
   Collections.sort(tickArr);
 }
Esempio n. 2
0
    public void draw() {
      fill(255);

      hs1.update();

      hs1.display();

      stroke(0);
      line(hsXPos, hsYPos, hsWidth + hsXPos, hsYPos);
    }
Esempio n. 3
0
 public int getScrollbarTimeInSecs() {
   return hs1.getPosInSeconds();
 }
Esempio n. 4
0
 public void pause() {
   println(hs1.getSliderPos());
   hs1.executePause();
   println(hs1.getSliderPos());
 }
Esempio n. 5
0
 // used or scrubbing
 public void setFrame(int frameNum) {
   hs1.setSposWithFrame(frameNum);
 }
Esempio n. 6
0
 public void play() {
   hs1.executePlay();
 }