|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.media.AbstractPlayer
ch.randelshofer.media.seq.SEQPlayer
public class SEQPlayer
Player for Cyberpaint Sequence animations (*.SEQ).
Reference:
http://www.atari-forum.com/wiki/index.php/ST_Picture_Formats
| Field Summary |
|---|
| Fields inherited from class ch.randelshofer.media.AbstractPlayer |
|---|
dispatcher, listenerList, propertyChangeSupport |
| Fields inherited from interface ch.randelshofer.media.Player |
|---|
CLOSED, PREFETCHED, PREFETCHING, REALIZED, REALIZING, STARTED, UNREALIZED |
| Constructor Summary | |
|---|---|
SEQPlayer(java.io.InputStream in)
|
|
SEQPlayer(java.io.InputStream in,
int inputFileSize,
boolean loadAudio)
Creates a new instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ch.randelshofer.media.AbstractPlayer |
|---|
addChangeListener, addPropertyChangeListener, addStateListener, close, deallocate, fireStateChanged, getState, getTargetState, isActive, prefetch, realize, removeChangeListener, removePropertyChangeListener, removeStateListener, run, setTargetState, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.randelshofer.media.Player |
|---|
addChangeListener, addPropertyChangeListener, addStateListener, close, deallocate, getState, getTargetState, isActive, prefetch, realize, removeChangeListener, removePropertyChangeListener, removeStateListener, setTargetState, start, stop |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void setPreferredColorModel(java.awt.image.ColorModel cm)
public javax.swing.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 javax.swing.BoundedRangeModel getCachingModel()
getCachingModel in interface Playerprotected java.awt.image.ImageProducer getImageProducer()
public SEQMovieTrack getMovieTrack()
public java.awt.Component getVisualComponent()
getVisualComponent in interface Playerpublic java.awt.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 java.lang.String getDeltaOperationDescription()
protected void doStarted()
doStarted in class AbstractPlayerprotected void doClosed()
doClosed in class AbstractPlayerpublic long getTotalDuration()
getTotalDuration in interface Playerpublic boolean isCached()
isCached in interface Playerpublic 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 ColorCyclePlayer
|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||