public class Java2dRenderer extends java.lang.Object implements VideoRenderer
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED| Constructor and Description |
|---|
Java2dRenderer()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the plugin.
|
java.awt.Rectangle |
getBounds()
Get the bounds of the component.
|
java.awt.Component |
getComponent()
Get the visual component.
|
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()
Return the name of the plugin
|
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.
|
void |
setBounds(java.awt.Rectangle rect)
Set the bounds of the visual component.
|
boolean |
setComponent(java.awt.Component comp)
Try to set the component to render to.
|
Format |
setInputFormat(Format format)
Set the data input format.
|
void |
start()
Start the renderer.
|
void |
stop()
Stop the renderer.
|
public java.lang.String getName()
public void open()
throws ResourceUnavailableException
open in interface PlugInResourceUnavailableExceptionpublic void reset()
public java.lang.Object[] getControls()
getControls in interface Controlspublic java.lang.Object getControl(java.lang.String controlType)
getControl in interface Controlspublic Format[] getSupportedInputFormats()
getSupportedInputFormats in interface Rendererpublic Format setInputFormat(Format format)
setInputFormat in interface Rendererpublic int process(Buffer buffer)
public boolean setComponent(java.awt.Component comp)
setComponent in interface VideoRendererpublic java.awt.Component getComponent()
getComponent in interface VideoRendererpublic java.awt.Rectangle getBounds()
getBounds in interface VideoRendererpublic void setBounds(java.awt.Rectangle rect)
setBounds in interface VideoRenderer