net.sf.fmj.media.renderer.video
Class DiagnosticVideoRenderer

java.lang.Object
  extended by net.sf.fmj.media.renderer.video.DiagnosticVideoRenderer
All Implemented Interfaces:
Controls, PlugIn, Renderer

public class DiagnosticVideoRenderer
extends java.lang.Object
implements Renderer

This Renderer is used to log process() calls. Useful for diagnosing whether the Renderer is actually being told to process buffers.

Author:
Warren Bloomer

Field Summary
 
Fields inherited from interface javax.media.PlugIn
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
 
Constructor Summary
DiagnosticVideoRenderer()
           
 
Method Summary
 void close()
           
 java.lang.Object getControl(java.lang.String controlType)
          Return the control based on a control type for the PlugIn.
 java.lang.Object[] getControls()
          Returns an array of supported controls
 java.lang.String getName()
           
 Format[] getSupportedInputFormats()
          Lists the possible input formats supported by this plug-in.
 void open()
          Opens the plugin
 int process(Buffer buffer)
          Processes the data and renders it to a component
 void reset()
          Resets the state of the plug-in.
 Format setInputFormat(Format format)
          Set the data input format.
 void start()
          Renderer implementation
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiagnosticVideoRenderer

public DiagnosticVideoRenderer()
Method Detail

start

public void start()
Renderer implementation

Specified by:
start in interface Renderer

stop

public void stop()
Specified by:
stop in interface Renderer

getSupportedInputFormats

public Format[] getSupportedInputFormats()
Lists the possible input formats supported by this plug-in.

Specified by:
getSupportedInputFormats in interface Renderer

setInputFormat

public Format setInputFormat(Format format)
Set the data input format.

Specified by:
setInputFormat in interface Renderer

process

public int process(Buffer buffer)
Processes the data and renders it to a component

Specified by:
process in interface Renderer

getName

public java.lang.String getName()
Specified by:
getName in interface PlugIn

open

public void open()
          throws ResourceUnavailableException
Opens the plugin

Specified by:
open in interface PlugIn
Throws:
ResourceUnavailableException

reset

public void reset()
Resets the state of the plug-in. Typically at end of media or when media is repositioned.

Specified by:
reset in interface PlugIn

close

public void close()
Specified by:
close in interface PlugIn

getControls

public java.lang.Object[] getControls()
Returns an array of supported controls

Specified by:
getControls in interface Controls

getControl

public java.lang.Object getControl(java.lang.String controlType)
Return the control based on a control type for the PlugIn.

Specified by:
getControl in interface Controls