All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.harium.etyl.animation.timeline.Timeline Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
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