-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeLiner.js
More file actions
34 lines (25 loc) · 775 Bytes
/
TimeLiner.js
File metadata and controls
34 lines (25 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"use strict";
function TimeLiner() {
this.circularList = new CircularList("TimeLiner");
this.insertTimeFrame = function(data) {
this.circularList.insert(data);
};
this.currentFrame = function() {
return this.circularList.current();
};
this.nextFrame = function() {
return this.circularList.step(1, StepEnum.NEXT);
};
this.previousFrame = function() {
return this.circularList.step(1, StepEnum.PREV);
};
this.setCurrentToFirstFrame = function() {
return this.circularList.setCurrentToHead();
};
this.setCurrentToLastFrame = function() {
return this.circularList.setCurrentToTail();
};
this.displayAllFrames = function() {
this.circularList.print();
}
}