Interface IWorkflowBpmnLayoutSpacingSelectorOptionsBuilder<Self extends IWorkflowBpmnLayoutSpacingSelectorOptionsBuilder<Self>>

Type Parameters:
Self - The type of the builder itself.
All Superinterfaces:
IWorkflowBpmnLayoutSpacingOptionsBuilder<Self>
All Known Subinterfaces:
IWorkflowBpmnLayoutAlignAtAxisBuilder, IWorkflowBpmnLayoutAlignAtPortsBuilder

public interface IWorkflowBpmnLayoutSpacingSelectorOptionsBuilder<Self extends IWorkflowBpmnLayoutSpacingSelectorOptionsBuilder<Self>> extends IWorkflowBpmnLayoutSpacingOptionsBuilder<Self>
Builder for layouts that allow setting the spacing between items via a custom selector function.
Since:
8.4.0
  • Method Details

    • coalesceEmptyItems

      @CanIgnoreReturnValue Self coalesceEmptyItems()
      Removes spacing between empty items in the alignment. This is useful when you do not wish for the final layout to become larger than necessary due to empty items. Defaults to false.
      Returns:
      This builder for chaining.
    • coalesceEmptyItems

      @CanIgnoreReturnValue Self coalesceEmptyItems(boolean coalesceEmptyItems)
      When true, removes spacing between empty items in the alignment. This is useful when you do not wish for the final layout to become larger than necessary due to empty items. Defaults to false.
      Parameters:
      coalesceEmptyItems - When true, empty items are coalesced.
      Returns:
      This builder for chaining.
    • spacing

      @CanIgnoreReturnValue Self spacing(IWorkflowBpmnCardinalAlignmentSpacingSelector spacingSelector)
      Sets a custom selector for the spacing between consecutive aligned items.
      Parameters:
      spacingSelector - The spacing selector to use for determining the spacing between aligned items.
      Returns:
      This builder instance for method chaining.