public class SEQPlayer extends AbstractPlayer implements ColorCyclePlayer
Reference:
http://www.atari-forum.com/wiki/index.php/ST_Picture_Formats
dispatcher, listenerList, propertyChangeSupport
CLOSED, PREFETCHED, PREFETCHING, REALIZED, REALIZING, STARTED, UNREALIZED
Constructor and Description |
---|
SEQPlayer(java.io.InputStream in) |
SEQPlayer(java.io.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.
|
javax.swing.BoundedRangeModel |
getCachingModel()
Returns the bounded range model that represents
the amount of data being fetched from the file
the movie is stored in.
|
java.awt.Component |
getControlPanelComponent()
Obtain the Component that provides the default user
interface for controlling this Player.
|
java.lang.String |
getDeltaOperationDescription() |
protected java.awt.image.ImageProducer |
getImageProducer()
Returns the image producer that produces
the animation frames.
|
SEQMovieTrack |
getMovieTrack()
Returns the movie track.
|
javax.swing.BoundedRangeModel |
getTimeModel()
Returns the bounded range model that represents
the time line of the player.
|
long |
getTotalDuration()
Returns the total duration in milliseconds.
|
java.awt.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(java.awt.image.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, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addPropertyChangeListener, addStateListener, close, deallocate, getState, getTargetState, isActive, prefetch, realize, removeChangeListener, removePropertyChangeListener, removeStateListener, setTargetState, start, stop
public SEQPlayer(java.io.InputStream in)
public SEQPlayer(java.io.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(java.awt.image.ColorModel cm)
public javax.swing.BoundedRangeModel getTimeModel()
getTimeModel
in interface Player
public void setAudioEnabled(boolean newValue)
setAudioEnabled
in interface Player
public boolean isAudioEnabled()
isAudioEnabled
in interface Player
public void setSwapSpeakers(boolean newValue)
public boolean isSwapSpeakers()
public javax.swing.BoundedRangeModel getCachingModel()
getCachingModel
in interface Player
protected java.awt.image.ImageProducer getImageProducer()
public SEQMovieTrack getMovieTrack()
public java.awt.Component getVisualComponent()
getVisualComponent
in interface Player
public java.awt.Component getControlPanelComponent()
getControlPanelComponent
in interface Player
protected void doUnrealized()
doUnrealized
in class AbstractPlayer
protected void doRealizing()
doRealizing
in class AbstractPlayer
protected void doRealized()
doRealized
in class AbstractPlayer
protected void doPrefetching()
doPrefetching
in class AbstractPlayer
protected void doPrefetched()
doPrefetched
in class AbstractPlayer
public 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 java.lang.String getDeltaOperationDescription()
protected void doStarted()
doStarted
in class AbstractPlayer
protected void doClosed()
doClosed
in class AbstractPlayer
public long getTotalDuration()
getTotalDuration
in interface Player
public boolean isCached()
public boolean isAudioAvailable()
isAudioAvailable
in interface Player
public void setPingPong(boolean newValue)
public boolean isPingPong()
public boolean isColorCyclingStarted()
isColorCyclingStarted
in interface ColorCyclePlayer
public void setColorCyclingStarted(boolean newValue)
setColorCyclingStarted
in interface ColorCyclePlayer
public boolean isColorCyclingAvailable()
isColorCyclingAvailable
in interface ColorCyclePlayer
public void setBlendedColorCycling(boolean newValue)
setBlendedColorCycling
in interface ColorCyclePlayer
public boolean isBlendedColorCycling()
isBlendedColorCycling
in interface ColorCyclePlayer