javax.media.renderer
Interface VideoRenderer


public interface VideoRenderer
extends Renderer

An interface for renderers that render video to a display or any other such device.

Since:
JMF 2.0

Fields inherited from interface javax.media.PlugIn
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
 
Method Summary
 java.awt.Rectangle getBounds()
          Returns the region in the component where the video will be rendered to.
 java.awt.Component getComponent()
          Returns an AWT component that it will render to.
 void setBounds(java.awt.Rectangle rect)
          Sets the region in the component where the video is to be rendered to.
 boolean setComponent(java.awt.Component comp)
          Requests the renderer to draw into a specified AWT component.
 
Methods inherited from interface javax.media.Renderer
getSupportedInputFormats, process, setInputFormat, start, stop
 
Methods inherited from interface javax.media.PlugIn
close, getName, open, reset
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

Method Detail

getComponent

public java.awt.Component getComponent()
Returns an AWT component that it will render to. Returns null if it is not rendering to an AWT component.
Returns:
the component that will used for rendering.

setComponent

public boolean setComponent(java.awt.Component comp)
Requests the renderer to draw into a specified AWT component.
Parameters:
comp - the component to be used for rendering.
Returns:
false if the renderer cannot draw into the specified component.

setBounds

public void setBounds(java.awt.Rectangle rect)
Sets the region in the component where the video is to be rendered to. Video is to be scaled if necessary. If rect is null, then the video occupies the entire component.
Parameters:
rect - the rect that defines the region to be rendered to.

getBounds

public java.awt.Rectangle getBounds()
Returns the region in the component where the video will be rendered to. Returns null if the entire component is being used.
Returns:
the region where the video will be rendered.


Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.