Class WorkflowBpmnLabelStyleDefinition.Builder
java.lang.Object
de.xima.fc.common.workflow.bpmn.WorkflowBpmnLabelStyleDefinition.Builder
- Enclosing class:
WorkflowBpmnLabelStyleDefinition
- Since:
- 8.4.0
-
Method Summary
Modifier and TypeMethodDescriptionbold()Sets the label to be bold.bold(boolean bold) Whether the label should be bold.build()Builds a newWorkflowBpmnLabelStyleDefinitioninstance with the current settings.Sets the font name for the label style.fontSize(double fontSize) Sets the font size for the label style.italic()Sets the label to be italic.italic(boolean italic) Whether the label should be italic.Sets the label to be struck through.struckThrough(boolean struckThrough) Whether the label should be struck through.Sets the label to be underlined.underlined(boolean underlined) Whether the label should be underlined.
-
Method Details
-
bold
Sets the label to be bold.- Returns:
- This builder for chaining method calls.
-
bold
Whether the label should be bold.- Parameters:
bold-trueif the label should be bold,falseotherwise.- Returns:
- This builder for chaining method calls.
-
build
Builds a newWorkflowBpmnLabelStyleDefinitioninstance with the current settings. Subsequent modifications to the builder will not affect the created instance.- Returns:
- A new label style definition instance.
-
fontName
Sets the font name for the label style. When not set, BPMN tools use some default font.- Parameters:
fontName- The name of the font to use, e.g. "Arial", "Times New Roman", etc.- Returns:
- This builder for chaining method calls.
-
fontSize
Sets the font size for the label style. The BPMN specification does not define an explicit unit for font size, though most tools use pixels, not points.- Parameters:
fontSize- The font size to use.- Returns:
- This builder for chaining method calls.
-
italic
Sets the label to be italic.- Returns:
- This builder for chaining method calls.
-
italic
Whether the label should be italic.- Parameters:
italic-trueif the label should be italic,falseotherwise.- Returns:
- This builder for chaining method calls.
-
struckThrough
Sets the label to be struck through.- Returns:
- This builder for chaining method calls.
-
struckThrough
Whether the label should be struck through.- Parameters:
struckThrough-trueif the label should be struck through,falseotherwise.- Returns:
- This builder for chaining method calls.
-
underlined
Sets the label to be underlined.- Returns:
- This builder for chaining method calls.
-
underlined
Whether the label should be underlined.- Parameters:
underlined-trueif the label should be underlined,falseotherwise.- Returns:
- This builder for chaining method calls.
-