Class PBMPlayer
java.lang.Object
org.monte.media.player.AbstractPlayer
org.monte.media.pbm.PBMPlayer
- All Implemented Interfaces:
Runnable,ColorCyclePlayer,Player,StateModel
A Player for PBM images with color cycling.
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class org.monte.media.player.AbstractPlayer
dispatcher, listenerList, propertyChangeSupportFields inherited from interface org.monte.media.player.Player
CLOSED, PREFETCHED, PREFETCHING, REALIZED, REALIZING, STARTED, UNREALIZED -
Constructor Summary
ConstructorsConstructorDescriptionPBMPlayer(InputStream in) PBMPlayer(InputStream in, int inputFileSize) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoClosed()protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected ImageProducerReturns the image producer that produces the animation frames.longbooleanbooleanbooleanReturns true if colors are blended during color cycling.booleanisCached()Returns true when the player has completely cached all movie data.booleanbooleanvoidsetAudioEnabled(boolean b) voidsetBlendedColorCycling(boolean newValue) Sets whether colors are blended during color cycling.voidsetColorCyclingStarted(boolean newValue) Methods inherited from class org.monte.media.player.AbstractPlayer
addChangeListener, addPropertyChangeListener, addStateListener, close, deallocate, fireStateChanged, fireStateChanged, getState, getTargetState, isActive, prefetch, realize, removeChangeListener, removePropertyChangeListener, removeStateListener, run, setTargetState, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.monte.media.player.Player
addChangeListener, addPropertyChangeListener, addStateListener, close, deallocate, getState, getTargetState, isActive, prefetch, realize, removeChangeListener, removePropertyChangeListener, removeStateListener, setTargetState, start, stop
-
Constructor Details
-
PBMPlayer
-
PBMPlayer
Creates a new instance.- Parameters:
in- InputStream containing an IFF ANIM file.inputFileSize- The size of the input file. Provide the value -1 if this is not known.
-
-
Method Details
-
doClosed
protected void doClosed()- Specified by:
doClosedin classAbstractPlayer
-
doUnrealized
protected void doUnrealized()- Specified by:
doUnrealizedin classAbstractPlayer
-
doRealizing
protected void doRealizing()- Specified by:
doRealizingin classAbstractPlayer
-
doRealized
protected void doRealized()- Specified by:
doRealizedin classAbstractPlayer
-
doPrefetching
protected void doPrefetching()- Specified by:
doPrefetchingin classAbstractPlayer
-
doPrefetched
protected void doPrefetched()- Specified by:
doPrefetchedin classAbstractPlayer
-
doStarted
protected void doStarted()- Specified by:
doStartedin classAbstractPlayer
-
setAudioEnabled
public void setAudioEnabled(boolean b) - Specified by:
setAudioEnabledin interfacePlayer
-
isAudioEnabled
public boolean isAudioEnabled()- Specified by:
isAudioEnabledin interfacePlayer
-
isAudioAvailable
public boolean isAudioAvailable()- Specified by:
isAudioAvailablein interfacePlayer
-
getTimeModel
- Specified by:
getTimeModelin interfacePlayer
-
getCachingModel
- Specified by:
getCachingModelin interfacePlayer
-
getVisualComponent
- Specified by:
getVisualComponentin interfacePlayer
-
getControlPanelComponent
- Specified by:
getControlPanelComponentin interfacePlayer
-
getTotalDuration
public long getTotalDuration()- Specified by:
getTotalDurationin interfacePlayer
-
getImageProducer
Returns the image producer that produces the animation frames. -
setColorCyclingStarted
public void setColorCyclingStarted(boolean newValue) - Specified by:
setColorCyclingStartedin interfaceColorCyclePlayer
-
isColorCyclingAvailable
public boolean isColorCyclingAvailable()- Specified by:
isColorCyclingAvailablein interfaceColorCyclePlayer
-
isColorCyclingStarted
public boolean isColorCyclingStarted()- Specified by:
isColorCyclingStartedin interfaceColorCyclePlayer
-
isCached
-
setBlendedColorCycling
public void setBlendedColorCycling(boolean newValue) Sets whether colors are blended during color cycling.- Specified by:
setBlendedColorCyclingin interfaceColorCyclePlayer
-
isBlendedColorCycling
public boolean isBlendedColorCycling()Returns true if colors are blended during color cycling.- Specified by:
isBlendedColorCyclingin interfaceColorCyclePlayer
-