Package org.freedesktop.gstreamer.gst
Class Pad.Builder<B extends Pad.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building thePad
object.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, setParent
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building thePad
object. 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:
build
in classGstObject.Builder<B extends Pad.Builder<B>>
- Returns:
- a new instance of
Pad
with 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 theoffset
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setTemplate
-
onLinked
Signals that a pad has been linked to the peer pad.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance 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
Builder
instance is returned, to allow method chaining - See Also:
-