public class PBMPlayer extends AbstractPlayer implements ColorCyclePlayer
dispatcher, listenerList, propertyChangeSupportCLOSED, PREFETCHED, PREFETCHING, REALIZED, REALIZING, STARTED, UNREALIZED| Constructor and Description |
|---|
PBMPlayer(InputStream in) |
PBMPlayer(InputStream in,
int inputFileSize)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doClosed()
Does the work for the closed state.
|
protected void |
doPrefetched()
Does the work for the prefetched state.
|
protected void |
doPrefetching()
Does the work for the prefetching state.
|
protected void |
doRealized()
Does the work for the realized state.
|
protected void |
doRealizing()
Does the work for the realizing state.
|
protected void |
doStarted()
Does the work for the started state.
|
protected void |
doUnrealized()
Does the work for the unrealized state.
|
BoundedRangeModel |
getCachingModel()
Gets the model representing the realizing progress of
the player.
|
Component |
getControlPanelComponent() |
protected ImageProducer |
getImageProducer()
Returns the image producer that produces
the animation frames.
|
BoundedRangeModel |
getTimeModel()
Gets the model representing the time line of the player.
|
long |
getTotalDuration() |
Component |
getVisualComponent() |
boolean |
isAudioAvailable()
Returns true if audio is available.
|
boolean |
isAudioEnabled()
Returns true if audio 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()
Returns true if color cycling is available.
|
boolean |
isColorCyclingStarted()
Returns true if color cycling is started.
|
void |
setAudioEnabled(boolean b)
Sets the audio enabled state.
|
void |
setBlendedColorCycling(boolean newValue)
Sets whether colors are blended during color cycling.
|
void |
setColorCyclingStarted(boolean newValue)
Starts/Stops color cycling.
|
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 PBMPlayer(InputStream in)
public PBMPlayer(InputStream in, int inputFileSize)
in - InputStream containing an IFF ANIM file.inputFileSize - The size of the input file. Provide the value -1
if this is not known.protected void doClosed()
AbstractPlayerdoClosed in class AbstractPlayerprotected void doUnrealized()
AbstractPlayerdoUnrealized in class AbstractPlayerprotected void doRealizing()
AbstractPlayerdoRealizing in class AbstractPlayerprotected void doRealized()
AbstractPlayerdoRealized in class AbstractPlayerprotected void doPrefetching()
AbstractPlayerdoPrefetching in class AbstractPlayerprotected void doPrefetched()
AbstractPlayerdoPrefetched in class AbstractPlayerprotected void doStarted()
AbstractPlayerdoStarted in class AbstractPlayerpublic void setAudioEnabled(boolean b)
PlayersetAudioEnabled in interface Playerpublic boolean isAudioEnabled()
PlayerisAudioEnabled in interface Playerpublic boolean isAudioAvailable()
PlayerisAudioAvailable in interface Playerpublic BoundedRangeModel getTimeModel()
PlayergetTimeModel in interface Playerpublic BoundedRangeModel getCachingModel()
PlayergetCachingModel in interface Playerpublic Component getVisualComponent()
getVisualComponent in interface Playerpublic Component getControlPanelComponent()
getControlPanelComponent in interface Playerpublic long getTotalDuration()
getTotalDuration in interface Playerprotected ImageProducer getImageProducer()
public void setColorCyclingStarted(boolean newValue)
ColorCyclePlayersetColorCyclingStarted in interface ColorCyclePlayerpublic boolean isColorCyclingAvailable()
ColorCyclePlayerisColorCyclingAvailable in interface ColorCyclePlayerpublic boolean isColorCyclingStarted()
ColorCyclePlayerisColorCyclingStarted in interface ColorCyclePlayerpublic boolean isCached()
public void setBlendedColorCycling(boolean newValue)
setBlendedColorCycling in interface ColorCyclePlayerpublic boolean isBlendedColorCycling()
isBlendedColorCycling in interface ColorCyclePlayerCopyright © 2014. All Rights Reserved.