Package org.gnome.gtksourceview
Class GutterRenderer.Builder<B extends GutterRenderer.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.Widget.Builder<B>
org.gnome.gtksourceview.GutterRenderer.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- Direct Known Subclasses:
GutterRendererPixbuf.Builder,GutterRendererText.Builder
- Enclosing class:
GutterRenderer
public static class GutterRenderer.Builder<B extends GutterRenderer.Builder<B>>
extends Widget.Builder<B>
implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theGutterRendererobject.The signal is emitted when the renderer is activated.The signal is emitted when the renderer can possibly be activated.setAlignmentMode(GutterRendererAlignmentMode alignmentMode) The alignment mode of the renderer.setXalign(float xalign) The horizontal alignment of the renderer.setXpad(int xpad) The left and right padding of the renderer.setYalign(float yalign) The vertical alignment of the renderer.setYpad(int ypad) The top and bottom padding of the renderer.Methods inherited from class org.gnome.gtk.Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theGutterRendererobject. 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 toGutterRenderer.- Overrides:
buildin classWidget.Builder<B extends GutterRenderer.Builder<B>>- Returns:
- a new instance of
GutterRendererwith the properties that were set in the Builder object.
-
setAlignmentMode
The alignment mode of the renderer.This can be used to indicate that in the case a cell spans multiple lines (due to text wrapping) the alignment should work on either the full cell, the first line or the last line.
- Parameters:
alignmentMode- the value for thealignment-modeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setXalign
The horizontal alignment of the renderer.Set to 0 for a left alignment. 1 for a right alignment. And 0.5 for centering the cells. A value lower than 0 doesn't modify the alignment.
- Parameters:
xalign- the value for thexalignproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setXpad
The left and right padding of the renderer.- Parameters:
xpad- the value for thexpadproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setYalign
The vertical alignment of the renderer.Set to 0 for a top alignment. 1 for a bottom alignment. And 0.5 for centering the cells. A value lower than 0 doesn't modify the alignment.
- Parameters:
yalign- the value for theyalignproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setYpad
The top and bottom padding of the renderer.- Parameters:
ypad- the value for theypadproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
onActivate
The signal is emitted when the renderer is activated.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onQueryActivatable
The signal is emitted when the renderer can possibly be activated.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onQueryData
- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-