public class SEQPlayer extends AbstractPlayer implements ColorCyclePlayer
Reference:
http://www.atari-forum.com/wiki/index.php/ST_Picture_Formats
dispatcher, listenerList, propertyChangeSupportCLOSED, PREFETCHED, PREFETCHING, REALIZED, REALIZING, STARTED, UNREALIZED| Constructor and Description |
|---|
SEQPlayer(InputStream in) |
SEQPlayer(InputStream in,
int inputFileSize,
boolean loadAudio)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClosed()
Closes the player.
|
protected void |
doPrefetched()
Does the prefetched state.
|
protected void |
doPrefetching()
Does the prefetching state.
|
protected void |
doRealized()
Does the realized state.
|
protected void |
doRealizing()
Does the realizing state.
|
protected void |
doStarted()
Does the started state.
|
protected void |
doUnrealized()
Does the unrealized state.
|
BoundedRangeModel |
getCachingModel()
Returns the bounded range model that represents
the amount of data being fetched from the file
the movie is stored in.
|
Component |
getControlPanelComponent()
Obtain the Component that provides the default user
interface for controlling this Player.
|
String |
getDeltaOperationDescription() |
protected ImageProducer |
getImageProducer()
Returns the image producer that produces
the animation frames.
|
SEQMovieTrack |
getMovieTrack()
Returns the movie track.
|
BoundedRangeModel |
getTimeModel()
Returns the bounded range model that represents
the time line of the player.
|
long |
getTotalDuration()
Returns the total duration in milliseconds.
|
Component |
getVisualComponent()
Obtain the display Component for this Player.
|
boolean |
isAudioAvailable()
Returns true if audio is available.
|
boolean |
isAudioEnabled()
Returns true if audio playback is enabled.
|
boolean |
isBlendedColorCycling()
Returns true if colors are blended during color cycling.
|
boolean |
isCached()
Returns true when the player has completely cached all movie data.
|
boolean |
isColorCyclingAvailable()
Starts or stops color cycling.
|
boolean |
isColorCyclingStarted()
Returns true if color cycling is available in the movie track.
|
boolean |
isLoop() |
boolean |
isPingPong() |
boolean |
isPlayEveryFrame() |
boolean |
isPlayWrapupFrames()
Always returns true.
|
boolean |
isSwapSpeakers()
Returns true if left and right speakers are swapped.
|
void |
setAudioEnabled(boolean newValue)
Enables or disables audio playback.
|
void |
setBlendedColorCycling(boolean newValue)
Sets whether colors are blended during color cycling.
|
void |
setColorCyclingStarted(boolean newValue)
Starts or stops color cycling.
|
void |
setDebug(boolean newValue)
Set this to true to treat the two wrapup frames at the end of the
animation like regular frames.
|
void |
setFramesPerSecond(float framesPerSecond)
Setting frames per second overrides all
frame duration settings in the frames of the the movie track.
|
void |
setGlobalFrameDuration(int frameDuration)
Setting the global frame duration overrides all
frame duration settings in the frames of the the movie track.
|
void |
setLoop(boolean newValue) |
void |
setPingPong(boolean newValue) |
void |
setPlayEveryFrame(boolean newValue) |
void |
setPreferredColorModel(ColorModel cm)
Sets the preferred color model.
|
void |
setSwapSpeakers(boolean newValue)
Swaps left and right speakers if set to true.
|
addChangeListener, addPropertyChangeListener, addStateListener, close, deallocate, fireStateChanged, fireStateChanged, getState, getTargetState, isActive, prefetch, realize, removeChangeListener, removePropertyChangeListener, removeStateListener, run, setTargetState, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, addPropertyChangeListener, addStateListener, close, deallocate, getState, getTargetState, isActive, prefetch, realize, removeChangeListener, removePropertyChangeListener, removeStateListener, setTargetState, start, stoppublic SEQPlayer(InputStream in)
public SEQPlayer(InputStream in, int inputFileSize, boolean loadAudio)
in - InputStream containing an IFF ANIM file.inputFileSize - The size of the input file. Provide the value -1
if this is not known.loadAudio - Provide value false if this player should not load audio
data.public void setPreferredColorModel(ColorModel cm)
public BoundedRangeModel getTimeModel()
getTimeModel in interface Playerpublic void setAudioEnabled(boolean newValue)
setAudioEnabled in interface Playerpublic boolean isAudioEnabled()
isAudioEnabled in interface Playerpublic void setSwapSpeakers(boolean newValue)
public boolean isSwapSpeakers()
public BoundedRangeModel getCachingModel()
getCachingModel in interface Playerprotected ImageProducer getImageProducer()
public SEQMovieTrack getMovieTrack()
public Component getVisualComponent()
getVisualComponent in interface Playerpublic Component getControlPanelComponent()
getControlPanelComponent in interface Playerprotected void doUnrealized()
doUnrealized in class AbstractPlayerprotected void doRealizing()
doRealizing in class AbstractPlayerprotected void doRealized()
doRealized in class AbstractPlayerprotected void doPrefetching()
doPrefetching in class AbstractPlayerprotected void doPrefetched()
doPrefetched in class AbstractPlayerpublic void setPlayEveryFrame(boolean newValue)
public void setDebug(boolean newValue)
public boolean isPlayWrapupFrames()
public void setFramesPerSecond(float framesPerSecond)
framesPerSecond - Frames per section. Set this to
0f if you do not want to override the frame durations in
the frames of the movie track.public void setGlobalFrameDuration(int frameDuration)
frameDuration - Frame Duration in milliseconds. Set this to
-1 if you do not want to override the frame durations in
the frames of the movie track.public boolean isPlayEveryFrame()
public void setLoop(boolean newValue)
public boolean isLoop()
public String getDeltaOperationDescription()
protected void doStarted()
doStarted in class AbstractPlayerprotected void doClosed()
doClosed in class AbstractPlayerpublic long getTotalDuration()
getTotalDuration in interface Playerpublic boolean isCached()
public boolean isAudioAvailable()
isAudioAvailable in interface Playerpublic void setPingPong(boolean newValue)
public boolean isPingPong()
public boolean isColorCyclingStarted()
isColorCyclingStarted in interface ColorCyclePlayerpublic void setColorCyclingStarted(boolean newValue)
setColorCyclingStarted in interface ColorCyclePlayerpublic boolean isColorCyclingAvailable()
isColorCyclingAvailable in interface ColorCyclePlayerpublic void setBlendedColorCycling(boolean newValue)
setBlendedColorCycling in interface ColorCyclePlayerpublic boolean isBlendedColorCycling()
isBlendedColorCycling in interface ColorCyclePlayerCopyright © 2014. All Rights Reserved.