Class CellAreaBox.Builder<B extends CellAreaBox.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Orientable.Builder<B>, BuilderInterface
Enclosing class:
CellAreaBox

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

      public B setSpacing(int spacing)
      The amount of space to reserve between cells.
      Parameters:
      spacing - the value for the spacing property
      Returns:
      the Builder instance is returned, to allow method chaining