Class WorkflowBpmnAlignmentItemBuilder

java.lang.Object
de.xima.fc.common.workflow.bpmn.WorkflowBpmnAlignmentItemBuilder

public final class WorkflowBpmnAlignmentItemBuilder extends Object
  • Method Details

    • boundingBox

      public WorkflowBpmnAlignmentItemBuilder boundingBox(Rectangular2DDouble boundingBox)
      Sets the bounding box of the item, see IWorkflowBpmnAlignmentItem.boundingBox().
      Parameters:
      boundingBox - The bounding box of the item.
      Returns:
      The builder for chaining method calls.
    • boundingBox

      public WorkflowBpmnAlignmentItemBuilder boundingBox(double width, double height)
      Sets the bounding box of the item, see IWorkflowBpmnAlignmentItem.boundingBox().
      Parameters:
      width - The width of the bounding box.
      height - The height of the bounding box.
      Returns:
      The builder for chaining method calls.
    • 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.
    • inPort

      public WorkflowBpmnAlignmentItemBuilder inPort(Double inPort)
      Sets the in port of the item, see IWorkflowBpmnAlignmentItem.inPort().
      Parameters:
      inPort - The in port of the item.
      Returns:
      The builder for chaining method calls.
    • inPort

      public WorkflowBpmnAlignmentItemBuilder inPort(double inPort)
      Sets the in port of the item, see IWorkflowBpmnAlignmentItem.inPort().
      Parameters:
      inPort - The in port of the item.
      Returns:
      The builder for chaining method calls.
    • outPort

      public WorkflowBpmnAlignmentItemBuilder outPort(Double outPort)
      Sets the out port of the item, see IWorkflowBpmnAlignmentItem.outPort().
      Parameters:
      outPort - The out port of the item.
      Returns:
      The builder for chaining method calls.
    • outPort

      public WorkflowBpmnAlignmentItemBuilder outPort(double outPort)
      Sets the out port of the item, see IWorkflowBpmnAlignmentItem.outPort().
      Parameters:
      outPort - The out port of the item.
      Returns:
      The builder for chaining method calls.
    • 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.
    • portDirection

      public WorkflowBpmnAlignmentItemBuilder portDirection(ECardinalDirection2D portDirection)
      Sets the direction of the port, see IWorkflowBpmnAlignmentItem.portDirection().
      Parameters:
      portDirection - The direction of the port.
      Returns:
      The builder for chaining method calls.