|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.fmj.media.renderer.video.Java2dRenderer
public class Java2dRenderer
A VideoRenderer that handles packed integer RGB formats. It uses Java2D to render incoming RGB images. TODO: support byte-array based images. See ImageToBuffer.
| 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 | |
|---|---|
Java2dRenderer()
Constructor |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Java2dRenderer()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface PlugIn
public void open()
throws ResourceUnavailableException
open in interface PlugInResourceUnavailableExceptionpublic void reset()
reset in interface PlugInpublic void close()
close in interface PlugInpublic java.lang.Object[] getControls()
getControls in interface Controlspublic java.lang.Object getControl(java.lang.String controlType)
getControl in interface Controlspublic void start()
start in interface Rendererpublic void stop()
stop in interface Rendererpublic Format[] getSupportedInputFormats()
getSupportedInputFormats in interface Rendererpublic Format setInputFormat(Format format)
setInputFormat in interface Rendererpublic int process(Buffer buffer)
process in interface Rendererpublic 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||