net.sf.fmj.media
Class AbstractProcessor

java.lang.Object
  extended by net.sf.fmj.ejmf.toolkit.media.AbstractClock
      extended by net.sf.fmj.ejmf.toolkit.media.AbstractController
          extended by net.sf.fmj.ejmf.toolkit.media.AbstractPlayer
              extended by net.sf.fmj.media.AbstractProcessor
All Implemented Interfaces:
Clock, Controller, ControllerListener, Duration, MediaHandler, Player, Processor
Direct Known Subclasses:
Handler

public abstract class AbstractProcessor
extends AbstractPlayer
implements Processor

Abstract base class to implement Processor.

Author:
Ken Larson

Field Summary
protected  ContentDescriptor outputContentDescriptor
           
 
Fields inherited from interface javax.media.Processor
Configured, Configuring
 
Fields inherited from interface javax.media.Controller
LATENCY_UNKNOWN, Prefetched, Prefetching, Realized, Realizing, Started, Unrealized
 
Fields inherited from interface javax.media.Clock
RESET
 
Fields inherited from interface javax.media.Duration
DURATION_UNBOUNDED, DURATION_UNKNOWN
 
Constructor Summary
AbstractProcessor()
           
 
Method Summary
 void configure()
           
abstract  boolean doConfigure()
           
 ContentDescriptor getContentDescriptor()
           
 ContentDescriptor[] getSupportedContentDescriptors()
           
 TrackControl[] getTrackControls()
           
protected  void postConfigureCompleteEvent()
           
 ContentDescriptor setContentDescriptor(ContentDescriptor outputContentDescriptor)
           
protected  void synchronousConfigure()
           
 
Methods inherited from class net.sf.fmj.ejmf.toolkit.media.AbstractPlayer
addController, controllerUpdate, doClose, doDeallocate, doPlayerClose, doPlayerDeallocate, doPlayerPrefetch, doPlayerRealize, doPlayerSetMediaTime, doPlayerSetRate, doPlayerStop, doPlayerSyncStart, doPrefetch, doRealize, doSetMediaTime, doSetRate, doStop, doSyncStart, endOfMedia, getControllers, getControlPanelComponent, getDuration, getGainControl, getPlayerDuration, getPlayerStartLatency, getSource, getStartLatency, getVisualComponent, removeController, setControlPanelComponent, setGainControl, setMediaTime, setRate, setSource, setVisualComponent, start, synchronousStart
 
Methods inherited from class net.sf.fmj.ejmf.toolkit.media.AbstractController
addControl, addControllerListener, blockUntilStart, close, deallocate, getControl, getControls, getMediaTime, getPreviousState, getState, getTargetState, getThreadQueue, getTimeBase, postControllerClosedEvent, postControllerErrorEvent, postDataStarvedEvent, postDeallocateEvent, postEndOfMediaEvent, postEvent, postPrefetchCompleteEvent, postRealizeCompleteEvent, postRestartingEvent, postStartEvent, postStopAtTimeEvent, postStopByRequestEvent, postStopEvent, postTransitionEvent, prefetch, realize, removeControl, removeControllerListener, setState, setStopTime, setTargetState, setTimeBase, stop, stopAtTime, stopController, stopInRestart, synchronousPrefetch, synchronousRealize, synchronousSyncStart, syncStart
 
Methods inherited from class net.sf.fmj.ejmf.toolkit.media.AbstractClock
getMediaNanoseconds, getMediaStartTime, getRate, getStopTime, getSyncTime, getTimeBaseStartTime, mapToTimeBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.Processor
getDataOutput
 
Methods inherited from interface javax.media.Player
addController, getControlPanelComponent, getGainControl, getVisualComponent, removeController, start
 
Methods inherited from interface javax.media.MediaHandler
setSource
 
Methods inherited from interface javax.media.Controller
addControllerListener, close, deallocate, getControl, getControls, getStartLatency, getState, getTargetState, prefetch, realize, removeControllerListener
 
Methods inherited from interface javax.media.Clock
getMediaNanoseconds, getMediaTime, getRate, getStopTime, getSyncTime, getTimeBase, mapToTimeBase, setMediaTime, setRate, setStopTime, setTimeBase, stop, syncStart
 
Methods inherited from interface javax.media.Duration
getDuration
 

Field Detail

outputContentDescriptor

protected ContentDescriptor outputContentDescriptor
Constructor Detail

AbstractProcessor

public AbstractProcessor()
Method Detail

configure

public void configure()
Specified by:
configure in interface Processor

synchronousConfigure

protected void synchronousConfigure()

doConfigure

public abstract boolean doConfigure()

postConfigureCompleteEvent

protected void postConfigureCompleteEvent()

getContentDescriptor

public ContentDescriptor getContentDescriptor()
                                       throws NotConfiguredError
Specified by:
getContentDescriptor in interface Processor
Throws:
NotConfiguredError

getSupportedContentDescriptors

public ContentDescriptor[] getSupportedContentDescriptors()
                                                   throws NotConfiguredError
Specified by:
getSupportedContentDescriptors in interface Processor
Throws:
NotConfiguredError

getTrackControls

public TrackControl[] getTrackControls()
                                throws NotConfiguredError
Specified by:
getTrackControls in interface Processor
Throws:
NotConfiguredError

setContentDescriptor

public ContentDescriptor setContentDescriptor(ContentDescriptor outputContentDescriptor)
                                       throws NotConfiguredError
Specified by:
setContentDescriptor in interface Processor
Throws:
NotConfiguredError