Class WorkflowBpmnAlignmentItemBuilder
java.lang.Object
de.xima.fc.common.workflow.bpmn.WorkflowBpmnAlignmentItemBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboundingBox(double width, double height) Sets the bounding box of the item, seeIWorkflowBpmnAlignmentItem.boundingBox().boundingBox(Rectangular2DDouble boundingBox) Sets the bounding box of the item, seeIWorkflowBpmnAlignmentItem.boundingBox().<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.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.<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.<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.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.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.<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.<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.inPort(double inPort) Sets the in port of the item, seeIWorkflowBpmnAlignmentItem.inPort().Sets the in port of the item, seeIWorkflowBpmnAlignmentItem.inPort().outPort(double outPort) Sets the out port of the item, seeIWorkflowBpmnAlignmentItem.outPort().Sets the out port of the item, seeIWorkflowBpmnAlignmentItem.outPort().points(IWorkflowBpmnPointsAccessor points) Sets the special named points of the item, seepoint.portDirection(ECardinalDirection2D portDirection) Sets the direction of the port, seeIWorkflowBpmnAlignmentItem.portDirection().
-
Method Details
-
boundingBox
Sets the bounding box of the item, seeIWorkflowBpmnAlignmentItem.boundingBox().- Parameters:
boundingBox- The bounding box of the item.- Returns:
- The builder for chaining method calls.
-
boundingBox
Sets the bounding box of the item, seeIWorkflowBpmnAlignmentItem.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, buildSecond> (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. Ifnull, 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, buildWithIdValueSecond> (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. Ifnull, 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
Sets the in port of the item, seeIWorkflowBpmnAlignmentItem.inPort().- Parameters:
inPort- The in port of the item.- Returns:
- The builder for chaining method calls.
-
inPort
Sets the in port of the item, seeIWorkflowBpmnAlignmentItem.inPort().- Parameters:
inPort- The in port of the item.- Returns:
- The builder for chaining method calls.
-
outPort
Sets the out port of the item, seeIWorkflowBpmnAlignmentItem.outPort().- Parameters:
outPort- The out port of the item.- Returns:
- The builder for chaining method calls.
-
outPort
Sets the out port of the item, seeIWorkflowBpmnAlignmentItem.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, seepoint. When not set, defaults to a simple accessor that assumes a rectangular shape with the same dimensions as the configuredbounding box.- Parameters:
points- The special named points of the item.- Returns:
- The builder for chaining method calls.
-
portDirection
Sets the direction of the port, seeIWorkflowBpmnAlignmentItem.portDirection().- Parameters:
portDirection- The direction of the port.- Returns:
- The builder for chaining method calls.
-