org.gstreamer.interfaces
Class XOverlay

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.interfaces.GstInterface
          extended by org.gstreamer.interfaces.XOverlay

public class XOverlay
extends GstInterface

Interface for elements providing tuner operations


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.interfaces.GstInterface
GstInterface.ListElementCreator<E>
 
Field Summary
 
Fields inherited from class org.gstreamer.interfaces.GstInterface
element, handle
 
Constructor Summary
protected XOverlay(Element element)
          Creates a new XOverlay instance
 
Method Summary
 void expose()
          Tell an overlay that it has been exposed.
 void handleEvent(boolean handle_events)
          Tell an overlay that it should handle events from the window system.
 void setWindowHandle(java.awt.Component window)
          Sets the native window for the Element to use to display video.
 void setWindowHandle(long handle)
          Sets the native window for the Element to use to display video.
 void setWindowID(java.awt.Component window)
          Deprecated. use setWindowHandle(java.awt.Component) instead
 void setWindowID(long handle)
          Deprecated. use setWindowHandle(long) instead
static XOverlay wrap(Element element)
          Wraps the Element in a XOverlay interface
 
Methods inherited from class org.gstreamer.interfaces.GstInterface
getElement, nativeValue, objectList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XOverlay

protected XOverlay(Element element)
Creates a new XOverlay instance

Parameters:
element - the element that implements the tuner interface
Method Detail

wrap

public static XOverlay wrap(Element element)
Wraps the Element in a XOverlay interface

Parameters:
element - the element to use as a XOverlay
Returns:
a XOverlay for the element

setWindowHandle

public void setWindowHandle(long handle)
Sets the native window for the Element to use to display video.

Parameters:
handle - A native handle to use to display video.

setWindowID

@Deprecated
public void setWindowID(long handle)
Deprecated. use setWindowHandle(long) instead

Sets the native window for the Element to use to display video.

Parameters:
handle - A native handle to use to display video.

setWindowHandle

public void setWindowHandle(java.awt.Component window)
Sets the native window for the Element to use to display video.

Parameters:
window - A native window to use to display video, or null to stop using the previously set window.

setWindowID

@Deprecated
public void setWindowID(java.awt.Component window)
Deprecated. use setWindowHandle(java.awt.Component) instead

Sets the native window for the Element to use to display video.

Parameters:
window - A native window to use to display video, or null to stop using the previously set window.

expose

public void expose()
Tell an overlay that it has been exposed. This will redraw the current frame in the drawable even if the pipeline is PAUSED.


handleEvent

public void handleEvent(boolean handle_events)
Tell an overlay that it should handle events from the window system. These events are forwared upstream as navigation events. In some window system, events are not propagated in the window hierarchy if a client is listening for them. This method allows you to disable events handling completely from the XOverlay.