Package org.freedesktop.gstreamer.gst
Class Pad.Builder<B extends Pad.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.freedesktop.gstreamer.gst.GstObject.Builder<B>
org.freedesktop.gstreamer.gst.Pad.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
AggregatorPad.Builder,ProxyPad.Builder
- Enclosing class:
Pad
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building thePadobject.onLinked(Pad.LinkedCallback handler) Signals that a pad has been linked to the peer pad.onUnlinked(Pad.UnlinkedCallback handler) Signals that a pad has been unlinked from the peer pad.setDirection(PadDirection direction) setOffset(long offset) The offset that will be applied to the running time of the pad.setTemplate(PadTemplate template) Methods inherited from class org.freedesktop.gstreamer.gst.GstObject.Builder
onDeepNotify, setName, setParentMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building thePadobject. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])to create a new GObject instance, which is then cast toPad.- Overrides:
buildin classGstObject.Builder<B extends Pad.Builder<B>>- Returns:
- a new instance of
Padwith the properties that were set in the Builder object.
-
setDirection
-
setOffset
The offset that will be applied to the running time of the pad.- Parameters:
offset- the value for theoffsetproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.6
-
setTemplate
-
onLinked
Signals that a pad has been linked to the peer pad.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onUnlinked
Signals that a pad has been unlinked from the peer pad.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-