|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 PlugIn
ResourceUnavailableException
public void reset()
reset
in interface PlugIn
public void close()
close
in interface PlugIn
public java.lang.Object[] getControls()
getControls
in interface Controls
public java.lang.Object getControl(java.lang.String controlType)
getControl
in interface Controls
public void start()
start
in interface Renderer
public void stop()
stop
in interface Renderer
public Format[] getSupportedInputFormats()
getSupportedInputFormats
in interface Renderer
public Format setInputFormat(Format format)
setInputFormat
in interface Renderer
public int process(Buffer buffer)
process
in interface Renderer
public boolean setComponent(java.awt.Component comp)
setComponent
in interface VideoRenderer
public java.awt.Component getComponent()
getComponent
in interface VideoRenderer
public java.awt.Rectangle getBounds()
getBounds
in interface VideoRenderer
public 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 |