public class PBMPlayer extends AbstractPlayer implements ColorCyclePlayer
dispatcher, listenerList, propertyChangeSupport
CLOSED, PREFETCHED, PREFETCHING, REALIZED, REALIZING, STARTED, UNREALIZED
Constructor and Description |
---|
PBMPlayer(java.io.InputStream in) |
PBMPlayer(java.io.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.
|
javax.swing.BoundedRangeModel |
getCachingModel()
Gets the model representing the realizing progress of
the player.
|
java.awt.Component |
getControlPanelComponent() |
protected java.awt.image.ImageProducer |
getImageProducer()
Returns the image producer that produces
the animation frames.
|
javax.swing.BoundedRangeModel |
getTimeModel()
Gets the model representing the time line of the player.
|
long |
getTotalDuration() |
java.awt.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, 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 PBMPlayer(java.io.InputStream in)
public PBMPlayer(java.io.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()
AbstractPlayer
doClosed
in class AbstractPlayer
protected void doUnrealized()
AbstractPlayer
doUnrealized
in class AbstractPlayer
protected void doRealizing()
AbstractPlayer
doRealizing
in class AbstractPlayer
protected void doRealized()
AbstractPlayer
doRealized
in class AbstractPlayer
protected void doPrefetching()
AbstractPlayer
doPrefetching
in class AbstractPlayer
protected void doPrefetched()
AbstractPlayer
doPrefetched
in class AbstractPlayer
protected void doStarted()
AbstractPlayer
doStarted
in class AbstractPlayer
public void setAudioEnabled(boolean b)
Player
setAudioEnabled
in interface Player
public boolean isAudioEnabled()
Player
isAudioEnabled
in interface Player
public boolean isAudioAvailable()
Player
isAudioAvailable
in interface Player
public javax.swing.BoundedRangeModel getTimeModel()
Player
getTimeModel
in interface Player
public javax.swing.BoundedRangeModel getCachingModel()
Player
getCachingModel
in interface Player
public java.awt.Component getVisualComponent()
getVisualComponent
in interface Player
public java.awt.Component getControlPanelComponent()
getControlPanelComponent
in interface Player
public long getTotalDuration()
getTotalDuration
in interface Player
protected java.awt.image.ImageProducer getImageProducer()
public void setColorCyclingStarted(boolean newValue)
ColorCyclePlayer
setColorCyclingStarted
in interface ColorCyclePlayer
public boolean isColorCyclingAvailable()
ColorCyclePlayer
isColorCyclingAvailable
in interface ColorCyclePlayer
public boolean isColorCyclingStarted()
ColorCyclePlayer
isColorCyclingStarted
in interface ColorCyclePlayer
public boolean isCached()
public void setBlendedColorCycling(boolean newValue)
setBlendedColorCycling
in interface ColorCyclePlayer
public boolean isBlendedColorCycling()
isBlendedColorCycling
in interface ColorCyclePlayer