2002-10-15 21:22:59 +00:00
|
|
|
package org.thdl.quilldriver;
|
|
|
|
|
|
|
|
import java.awt.*;
|
|
|
|
import java.net.*;
|
|
|
|
|
|
|
|
public abstract class SmartMoviePanel extends Panel
|
|
|
|
{
|
|
|
|
//helper methods - initialize
|
|
|
|
public abstract void displayBorders(boolean borders) throws SmartMoviePanelException;
|
|
|
|
public abstract void displayController(boolean controller) throws SmartMoviePanelException;
|
|
|
|
public abstract void loadMovie(URL mediaUrl) throws SmartMoviePanelException;
|
|
|
|
|
|
|
|
//helper methods - control media
|
|
|
|
public abstract void cmd_playOn() throws SmartMoviePanelException;
|
|
|
|
public abstract void cmd_playSegment(Integer startTime, Integer stopTime) throws SmartMoviePanelException;
|
|
|
|
public abstract void cmd_stop() throws SmartMoviePanelException;
|
|
|
|
|
|
|
|
//helper methods - media status
|
|
|
|
public abstract boolean isInitialized();
|
2002-10-22 20:47:39 +00:00
|
|
|
public abstract boolean isPlaying();
|
2002-10-15 21:22:59 +00:00
|
|
|
public abstract int getCurrentTime();
|
|
|
|
public abstract int getEndTime();
|
|
|
|
|
|
|
|
//helper methods - cleanup
|
|
|
|
public abstract void destroy() throws SmartMoviePanelException;
|
|
|
|
//constructor
|
|
|
|
public SmartMoviePanel(GridLayout layout)
|
|
|
|
{
|
|
|
|
super(layout);
|
|
|
|
}
|
|
|
|
}
|