|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.neomedia.control.AbstractControls
net.java.sip.communicator.impl.neomedia.control.ControlsAdapter
net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.AbstractRenderer<javax.media.format.VideoFormat>
net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.video.JAWTRenderer
public class JAWTRenderer
Implements a VideoRenderer which uses JAWT to perform native painting in an AWT or Swing Component.
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.AbstractRenderer |
|---|
inputFormat |
| Fields inherited from class net.java.sip.communicator.impl.neomedia.control.ControlsAdapter |
|---|
EMPTY_CONTROLS |
| 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 | |
|---|---|
JAWTRenderer()
Initializes a new JAWTRenderer instance. |
|
| Method Summary | |
|---|---|
(package private) static void |
addNotifyLightweightComponent(long handle,
Component component,
long parentHandle)
|
void |
close()
Closes this PlugIn and releases the resources it has retained during its execution. |
(package private) static void |
close(long handle,
Component component)
Closes the native counterpart of a JAWTRenderer specified by its handle as returned by open(Component) and rendering into a
specific AWT Component. |
Rectangle |
getBounds()
Gets the region in the component of this VideoRenderer where the video is rendered. |
Component |
getComponent()
Gets the AWT Component into which this VideoRenderer draws. |
(package private) long |
getHandle()
Gets the handle to the native counterpart of this JAWTRenderer. |
(package private) Object |
getHandleLock()
Gets the Object which synchronizes the access to the handle to the native counterpart of this JAWTRenderer. |
String |
getName()
Gets the human-readable name of this PlugIn. |
javax.media.Format[] |
getSupportedInputFormats()
Gets the list of input Formats supported by this Renderer. |
void |
open()
Opens this PlugIn and acquires the resources that it needs to operate. |
(package private) static long |
open(Component component)
Opens a handle to a native counterpart of a JAWTRenderer which is to draw into a specific AWT Component. |
(package private) static boolean |
paint(long handle,
Component component,
Graphics g)
Paints a specific Component which is the AWT Component of a JAWTRenderer specified by the handle to its native counterpart. |
(package private) static boolean |
paintLightweightComponent(long handle,
Component component,
Graphics g)
|
int |
process(javax.media.Buffer buffer)
Processes the data provided in a specific Buffer and renders it to the output device represented by this Renderer. |
(package private) static boolean |
process(long handle,
Component component,
int[] data,
int offset,
int length,
int width,
int height)
Processes the data provided in a specific int array with a specific offset and length and renders it to the output device represented by a JAWTRenderer specified by the handle to it native counterpart. |
(package private) static void |
processLightweightComponentEvent(long handle,
int x,
int y,
int width,
int height)
|
(package private) static void |
removeNotifyLightweightComponent(long handle,
Component component)
|
void |
setBounds(Rectangle bounds)
Sets the region in the component of this VideoRenderer where the video is to be rendered. |
boolean |
setComponent(Component component)
Sets the AWT Component into which this VideoRenderer is to draw. |
javax.media.Format |
setInputFormat(javax.media.Format format)
Sets the Format of the input to be processed by this Renderer. |
void |
start()
Starts the rendering process. |
void |
stop()
Stops the rendering process. |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.jmfext.media.renderer.AbstractRenderer |
|---|
reset |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.control.ControlsAdapter |
|---|
getControls |
| Methods inherited from class net.java.sip.communicator.impl.neomedia.control.AbstractControls |
|---|
getControl, getControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.PlugIn |
|---|
reset |
| Methods inherited from interface javax.media.Controls |
|---|
getControl, getControls |
| Constructor Detail |
|---|
public JAWTRenderer()
| Method Detail |
|---|
static void addNotifyLightweightComponent(long handle,
Component component,
long parentHandle)
public void close()
close in interface javax.media.PlugIn
static void close(long handle,
Component component)
open(Component) and rendering into a
specific AWT Component. Releases the resources which the
specified native counterpart has retained during its execution and its
handle is considered to be invalid afterwards.
handle - the handle to the native counterpart of a
JAWTRenderer as returned by open(Component) which is to
be closedcomponent - the AWT Component into which the
JAWTRenderer and its native counterpart are drawing. The
platform-specific info of component is not guaranteed to be
valid.public Rectangle getBounds()
getBounds in interface javax.media.renderer.VideoRendererpublic Component getComponent()
getComponent in interface javax.media.renderer.VideoRendererlong getHandle()
Object getHandleLock()
public String getName()
getName in interface javax.media.PlugInpublic javax.media.Format[] getSupportedInputFormats()
getSupportedInputFormats in interface javax.media.Renderer
public void open()
throws javax.media.ResourceUnavailableException
open in interface javax.media.PlugInjavax.media.ResourceUnavailableException - if there is a problem during opening
static long open(Component component)
throws javax.media.ResourceUnavailableException
component - the AWT Component into which a
JAWTRenderer and the native counterpart to be opened are to
draw. The platform-specific info of component is not guaranteed
to be valid.
javax.media.ResourceUnavailableException - if there is a problem during opening
static boolean paint(long handle,
Component component,
Graphics g)
handle - the handle to the native counterpart of a
JAWTRenderer which is to draw into the specified AWT
Componentcomponent - the AWT Component into which the
JAWTRenderer and its native counterpart specified by
handle are to draw. The platform-specific info of
component is guaranteed to be valid only during the execution of
paint.g - the Graphics context into which the drawing is to be
performed
static boolean paintLightweightComponent(long handle,
Component component,
Graphics g)
public int process(javax.media.Buffer buffer)
process in interface javax.media.Rendererbuffer - a Buffer containing the data to be processed and
rendered
static boolean process(long handle,
Component component,
int[] data,
int offset,
int length,
int width,
int height)
handle - the handle to the native counterpart of a
JAWTRenderer to process the specified data and render itcomponent - the AWT component into which the specified
JAWTRenderer and its native counterpart drawdata - an int array which contains the data to be processed
and renderedoffset - the index in data at which the data to be
processed and rendered startslength - the number of elements in data starting at
offset which represent the data to be processed and renderedwidth - the width of the video frame in dataheight - the height of the video frame in data
static void processLightweightComponentEvent(long handle,
int x,
int y,
int width,
int height)
static void removeNotifyLightweightComponent(long handle,
Component component)
public void setBounds(Rectangle bounds)
setBounds in interface javax.media.renderer.VideoRendererbounds - the region in the component of this VideoRenderer
where the video is to be rendered; null if the entire component
is to be usedpublic boolean setComponent(Component component)
setComponent in interface javax.media.renderer.VideoRenderercomponent - the AWT Component into which this
VideoRenderer is to draw
public javax.media.Format setInputFormat(javax.media.Format format)
setInputFormat in interface javax.media.RenderersetInputFormat in class AbstractRenderer<javax.media.format.VideoFormat>format - the Format to be set as the Format of the
input to be processed by this Renderer
public void start()
start in interface javax.media.Rendererpublic void stop()
stop in interface javax.media.Renderer
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||