Class GutterRenderer.Builder<B extends 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 Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public GutterRenderer build()
      Finish building the GutterRenderer object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to GutterRenderer.
      Overrides:
      build in class Widget.Builder<B extends GutterRenderer.Builder<B>>
      Returns:
      a new instance of GutterRenderer with the properties that were set in the Builder object.
    • setAlignmentMode

      public B setAlignmentMode(GutterRendererAlignmentMode alignmentMode)

      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 the alignment-mode property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setXalign

      public B setXalign(float xalign)

      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 the xalign property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setXpad

      public B setXpad(int xpad)
      The left and right padding of the renderer.
      Parameters:
      xpad - the value for the xpad property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setYalign

      public B setYalign(float yalign)

      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 the yalign property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setYpad

      public B setYpad(int ypad)
      The top and bottom padding of the renderer.
      Parameters:
      ypad - the value for the ypad property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onActivate

      public B onActivate(GutterRenderer.ActivateCallback handler)
      The signal is emitted when the renderer is activated.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onQueryActivatable

      public B onQueryActivatable(GutterRenderer.QueryActivatableCallback handler)
      The signal is emitted when the renderer can possibly be activated.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also:
    • onQueryData

      public B onQueryData(GutterRenderer.QueryDataCallback handler)
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: