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

com.github.dnbn.submerge.api.subtitle.common.TimedObject Maven / Gradle / Ivy

The newest version!
package com.github.dnbn.submerge.api.subtitle.common;

import java.io.Serializable;
import java.time.LocalTime;
import java.util.Comparator;

/**
 * 
 * Simple object that contains timed start ant end
 */
public interface TimedObject extends Serializable, Comparable, Comparator {

	/**
	 * Return the time elapsed during script playback at which the text will appear
	 * onscreen.
	 * 
	 * @return start time
	 */
	LocalTime getStart();

	/**
	 * Return the time elapsed during script playback at which the text will disappear
	 * offscreen.
	 * 
	 * @return end time
	 */
	LocalTime getEnd();

	/**
	 * Set the time elapsed during script playback at which the text will appear onscreen.
	 * 
	 * @param start time
	 */
	void setStart(LocalTime start);

	/**
	 * Set the time elapsed during script playback at which the text will disappear
	 * offscreen.
	 * 
	 * @param end time
	 */
	void setEnd(LocalTime end);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy