Class WorkflowBpmnAlignmentItemBuilder


  • public final class WorkflowBpmnAlignmentItemBuilder
    extends Object
    • Method Detail

      • build

        public <Value,​Children extends IWorkflowBpmnAlignmentItem<?,​?>> IWorkflowBpmnAlignmentItem<Value,​Children> build​(Value value,
                                                                                                                                           List<Positioned<? extends Children,​Point2DDouble>> children)
        Builds an alignment item with the current settings and the given value and children.
        Type Parameters:
        Value - The type of the item's value.
        Children - The type of the children.
        Parameters:
        value - The value of the item.
        children - The children of the item.
        Returns:
        A new alignment item with current settings and the given value and children.
      • build

        @SafeVarargs
        public final <Value,​Children extends IWorkflowBpmnAlignmentItem<?,​?>> IWorkflowBpmnAlignmentItem<Value,​Children> build​(Value value,
                                                                                                                                                 Positioned<? extends Children,​Point2DDouble>... children)
        Builds an alignment item with the current settings and the given value and children.
        Type Parameters:
        Value - The type of the item's value.
        Children - The type of the children.
        Parameters:
        value - The value of the item.
        children - The children of the item.
        Returns:
        A new alignment item with current settings and the given value and children.
      • build

        public <Value,​First extends IWorkflowBpmnAlignmentItem<?,​?>,​Second extends IWorkflowBpmnAlignmentItem<?,​?>> IWorkflowBpmnTwoChildAlignmentItem<Value,​First,​Second> build​(Value value,
                                                                                                                                                                                                                     Positioned<? extends First,​Point2DDouble> firstChild,
                                                                                                                                                                                                                     Positioned<? extends Second,​Point2DDouble> secondChild)
        Builds an alignment item with the current settings and the given value and children.
        Type Parameters:
        Value - The type of the item's value.
        First - The type of the first child alignment item.
        Second - The type of the second child alignment item.
        Parameters:
        value - The value of the item.
        firstChild - The first child of the item.
        secondChild - The second child of the item.
        Returns:
        A new alignment item with current settings and the given value and children.
      • build

        public <Value,​Children extends IWorkflowBpmnAlignmentItem<?,​?>> IWorkflowBpmnAlignmentItem<Value,​Children> build​(Value value)
        Builds an alignment item with the current settings and the given value and no children.
        Type Parameters:
        Value - The type of the item's value.
        Children - The type of the children.
        Parameters:
        value - The value of the item.
        Returns:
        A new alignment item with current settings and the given value and children.
      • buildWithIdValue

        public <Children extends IWorkflowBpmnAlignmentItem<?,​?>> IWorkflowBpmnAlignmentItem<String,​Children> buildWithIdValue​(String idValue,
                                                                                                                                           List<Positioned<? extends Children,​Point2DDouble>> children)
        Builds an alignment item with the current settings and the given ID value and children. Generates a new ID when no ID is given.
        Type Parameters:
        Children - The type of the children.
        Parameters:
        children - The children of the item.
        Returns:
        A new alignment item with current settings and the given value and children.
      • buildWithIdValue

        @SafeVarargs
        public final <Children extends IWorkflowBpmnAlignmentItem<?,​?>> IWorkflowBpmnAlignmentItem<String,​Children> buildWithIdValue​(String idValue,
                                                                                                                                                 Positioned<? extends Children,​Point2DDouble>... children)
        Builds an alignment item with the current settings and the given ID value and children. Generates a new ID when no ID is given.
        Type Parameters:
        Children - The type of the children.
        Parameters:
        idValue - The ID value of the item. If null, a new UUID will be generated.
        children - The children of the item.
        Returns:
        A new alignment item with current settings and the given value and children.
      • buildWithIdValue

        public <First extends IWorkflowBpmnAlignmentItem<?,​?>,​Second extends IWorkflowBpmnAlignmentItem<?,​?>> IWorkflowBpmnTwoChildAlignmentItem<String,​First,​Second> buildWithIdValue​(String idValue,
                                                                                                                                                                                                                     Positioned<? extends First,​Point2DDouble> firstChild,
                                                                                                                                                                                                                     Positioned<? extends Second,​Point2DDouble> secondChild)
        Builds an alignment item with the current settings and the given value and children.
        Type Parameters:
        First - The type of the first child alignment item.
        Second - The type of the second child alignment item.
        Parameters:
        idValue - The ID value of the item. If null, a new UUID will be generated.
        firstChild - The first child of the item.
        secondChild - The second child of the item.
        Returns:
        A new alignment item with current settings and the given value and children.
      • buildWithIdValue

        public final <Children extends IWorkflowBpmnAlignmentItem<?,​?>> IWorkflowBpmnAlignmentItem<String,​Children> buildWithIdValue​(String idValue)
        Builds an alignment item with the current settings and the given ID value and no children. Generates a new ID when no ID is given.
        Type Parameters:
        Children - The type of the children.
        Returns:
        A new alignment item with current settings and the given value and children.
      • points

        public WorkflowBpmnAlignmentItemBuilder points​(IWorkflowBpmnPointsAccessor points)
        Sets the special named points of the item, see point. When not set, defaults to a simple accessor that assumes a rectangular shape with the same dimensions as the configured bounding box.
        Parameters:
        points - The special named points of the item.
        Returns:
        The builder for chaining method calls.