Class Mark.Builder<B extends Mark.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
Mark

public static class Mark.Builder<B extends Mark.Builder<B>> extends TextMark.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 Mark build()
      Finish building the Mark object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to Mark.
      Overrides:
      build in class TextMark.Builder<B extends Mark.Builder<B>>
      Returns:
      a new instance of Mark with the properties that were set in the Builder object.
    • setCategory

      public B setCategory(String category)
      The category of the GtkSourceMark, classifies the mark and controls which pixbuf is used and with which priority it is drawn.
      Parameters:
      category - the value for the category property
      Returns:
      the Builder instance is returned, to allow method chaining