![JAR search and dependency download from the Maven repository](/logo.png)
com.harium.etyl.animation.timeline.Timeline Maven / Gradle / Ivy
package com.harium.etyl.animation.timeline;
import java.util.ArrayList;
import java.util.List;
public abstract class Timeline {
protected int cursor = 0;
protected List> frames = new ArrayList>();
public Timeline() {
super();
}
public void nextFrame() {
if(cursor 0) {
cursor--;
reloadFrame(currentFrame());
}
}
public KeyFrame currentFrame() {
return frames.get(cursor);
}
public int frameCount() {
return frames.size();
}
public int getCursor() {
return cursor;
}
public abstract void reloadFrame(KeyFrame frame);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy