Package org.gnome.gtksourceview
Class SpaceDrawer.Builder<B extends SpaceDrawer.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtksourceview.SpaceDrawer.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
SpaceDrawer
public static class SpaceDrawer.Builder<B extends SpaceDrawer.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theSpaceDrawerobject.setEnableMatrix(boolean enableMatrix) Whether theSpaceDrawer:matrixproperty is enabled.The property is aGLib.Variantproperty to specify where and what kind of white spaces to draw.Methods 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 theSpaceDrawerobject. 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 toSpaceDrawer.- Overrides:
buildin classGObject.Builder<B extends SpaceDrawer.Builder<B>>- Returns:
- a new instance of
SpaceDrawerwith the properties that were set in the Builder object.
-
setEnableMatrix
Whether theSpaceDrawer:matrixproperty is enabled.- Parameters:
enableMatrix- the value for theenable-matrixproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMatrix
The property is aGLib.Variantproperty to specify where and what kind of white spaces to draw.The
GLib.Variantis of type"au", an array of unsigned integers. Each integer is a combination ofSpaceTypeFlags. There is one integer for eachSpaceLocationFlags, in the same order as they are defined in the enum (SpaceLocationFlags.NONEandSpaceLocationFlags.ALLare not taken into account).If the array is shorter than the number of locations, then the value for the missing locations will be
SpaceTypeFlags.NONE.By default,
SpaceTypeFlags.ALLis set for all locations.4- Parameters:
matrix- the value for thematrixproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-