Package org.gnome.rsvg
Class Handle.Builder<B extends Handle.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.rsvg.Handle.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Handle
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theHandleobject.setBaseUri(String baseUri) Base URI, to be used to resolve relative references for resources.setDpiX(double dpiX) Horizontal resolution in dots per inch.setDpiY(double dpiY) Horizontal resolution in dots per inch.setFlags(Set<HandleFlags> flags) Flags fromRsvg.HandleFlags.setFlags(HandleFlags... flags) Flags fromRsvg.HandleFlags.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 theHandleobject. 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 toHandle.- Overrides:
buildin classGObject.Builder<B extends Handle.Builder<B>>- Returns:
- a new instance of
Handlewith the properties that were set in the Builder object.
-
setBaseUri
Base URI, to be used to resolve relative references for resources. See the section "Security and locations of referenced files" for details.- Parameters:
baseUri- the value for thebase-uriproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setDpiX
Horizontal resolution in dots per inch.The default is 90. Note that current CSS assumes a default of 96, so you may want to set it to
96.0before rendering the handle.- Parameters:
dpiX- the value for thedpi-xproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setDpiY
Horizontal resolution in dots per inch.The default is 90. Note that current CSS assumes a default of 96, so you may want to set it to
96.0before rendering the handle.- Parameters:
dpiY- the value for thedpi-yproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFlags
Flags fromRsvg.HandleFlags.- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.36
-
setFlags
Flags fromRsvg.HandleFlags.- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.36
-