|
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.pbm.PBMPlayer
public class PBMPlayer
A Player for PBM images with color cycling.
| 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 | |
|---|---|
PBMPlayer(java.io.InputStream in)
|
|
PBMPlayer(java.io.InputStream in,
int inputFileSize)
Creates a new instance. |
|
| Method Summary | |
|---|---|
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. |
| 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 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.| Method Detail |
|---|
protected void doClosed()
AbstractPlayer
doClosed in class AbstractPlayerprotected void doUnrealized()
AbstractPlayer
doUnrealized in class AbstractPlayerprotected void doRealizing()
AbstractPlayer
doRealizing in class AbstractPlayerprotected void doRealized()
AbstractPlayer
doRealized in class AbstractPlayerprotected void doPrefetching()
AbstractPlayer
doPrefetching in class AbstractPlayerprotected void doPrefetched()
AbstractPlayer
doPrefetched in class AbstractPlayerprotected void doStarted()
AbstractPlayer
doStarted in class AbstractPlayerpublic void setAudioEnabled(boolean b)
Player
setAudioEnabled in interface Playerpublic boolean isAudioEnabled()
Player
isAudioEnabled in interface Playerpublic boolean isAudioAvailable()
Player
isAudioAvailable in interface Playerpublic javax.swing.BoundedRangeModel getTimeModel()
Player
getTimeModel in interface Playerpublic javax.swing.BoundedRangeModel getCachingModel()
Player
getCachingModel in interface Playerpublic java.awt.Component getVisualComponent()
getVisualComponent in interface Playerpublic java.awt.Component getControlPanelComponent()
getControlPanelComponent in interface Playerpublic long getTotalDuration()
getTotalDuration in interface Playerprotected java.awt.image.ImageProducer getImageProducer()
public void setColorCyclingStarted(boolean newValue)
ColorCyclePlayer
setColorCyclingStarted in interface ColorCyclePlayerpublic boolean isColorCyclingAvailable()
ColorCyclePlayer
isColorCyclingAvailable in interface ColorCyclePlayerpublic boolean isColorCyclingStarted()
ColorCyclePlayer
isColorCyclingStarted in interface ColorCyclePlayerpublic boolean isCached()
isCached in interface Playerpublic 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 | ||||||||