Interface IWorkflowBpmnLayoutTaskBuilder
- All Superinterfaces:
IWorkflowBpmnLayoutAnnotatedElementBuilder<IWorkflowBpmnLayoutTaskBuilder>, IWorkflowBpmnLayoutNamedBuilder<IWorkflowBpmnLayoutTaskBuilder>, IWorkflowBpmnLayoutPortDirectionOptionsBuilder<IWorkflowBpmnLayoutTaskBuilder>
public interface IWorkflowBpmnLayoutTaskBuilder
extends IWorkflowBpmnLayoutPortDirectionOptionsBuilder<IWorkflowBpmnLayoutTaskBuilder>, IWorkflowBpmnLayoutAnnotatedElementBuilder<IWorkflowBpmnLayoutTaskBuilder>, IWorkflowBpmnLayoutNamedBuilder<IWorkflowBpmnLayoutTaskBuilder>
Builder for the layout of a BPMN
Task.- Since:
- 8.4.0
-
Method Summary
Modifier and TypeMethodDescription<T extends de.xima.bpmn_model.api.element.bpmn.activities.Task<?>>
IAnnotatedNamedBpmnElementLayout<T> build(T task) Creates the layout for the given task, using the current layout settings.height(double height) The height of the task rectangle.inPort()Adds an in port to the task.outPort()Adds an out port to the task.width(double width) The width of the task rectangle.Methods inherited from interface IWorkflowBpmnLayoutAnnotatedElementBuilder
annotation, annotation, annotationDirection, annotationDirection, annotationDirection, annotationSpacing, annotationTextLayoutSettingsMethods inherited from interface IWorkflowBpmnLayoutNamedBuilder
name, name, nameTextLayoutSettingsMethods inherited from interface IWorkflowBpmnLayoutPortDirectionOptionsBuilder
portDirection, portDirection
-
Method Details
-
build
<T extends de.xima.bpmn_model.api.element.bpmn.activities.Task<?>> IAnnotatedNamedBpmnElementLayout<T> build(T task) Creates the layout for the given task, using the current layout settings.- Type Parameters:
T- The type of the task.- Parameters:
task- The task to create the layout for.- Returns:
- The layout for the task.
-
height
The height of the task rectangle. Defaults to the layout settings'default task height.- Parameters:
height- The height of the task rectangle.- Returns:
- This builder for chaining method calls.
-
inPort
IWorkflowBpmnLayoutTaskBuilder inPort()Adds an in port to the task.- Returns:
- This builder for chaining method calls.
-
outPort
IWorkflowBpmnLayoutTaskBuilder outPort()Adds an out port to the task.- Returns:
- This builder for chaining method calls.
-
width
The width of the task rectangle. Defaults to the layout settings'default task width.- Parameters:
width- The width of the task rectangle.- Returns:
- This builder for chaining method calls.
-