Package de.xima.fc.common.workflow.bpmn
Class WorkflowBpmnLabelStyleDefinition.Builder
- java.lang.Object
-
- de.xima.fc.common.workflow.bpmn.WorkflowBpmnLabelStyleDefinition.Builder
-
- Enclosing class:
- WorkflowBpmnLabelStyleDefinition
public static final class WorkflowBpmnLabelStyleDefinition.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowBpmnLabelStyleDefinition.Builder
bold()
Sets the label to be bold.WorkflowBpmnLabelStyleDefinition.Builder
bold(boolean bold)
Whether the label should be bold.WorkflowBpmnLabelStyleDefinition
build()
Builds a newWorkflowBpmnLabelStyleDefinition
instance with the current settings.WorkflowBpmnLabelStyleDefinition.Builder
fontName(String fontName)
Sets the font name for the label style.WorkflowBpmnLabelStyleDefinition.Builder
fontSize(double fontSize)
Sets the font size for the label style.WorkflowBpmnLabelStyleDefinition.Builder
italic()
Sets the label to be italic.WorkflowBpmnLabelStyleDefinition.Builder
italic(boolean italic)
Whether the label should be italic.WorkflowBpmnLabelStyleDefinition.Builder
struckThrough()
Sets the label to be struck through.WorkflowBpmnLabelStyleDefinition.Builder
struckThrough(boolean struckThrough)
Whether the label should be struck through.WorkflowBpmnLabelStyleDefinition.Builder
underlined()
Sets the label to be underlined.WorkflowBpmnLabelStyleDefinition.Builder
underlined(boolean underlined)
Whether the label should be underlined.
-
-
-
Method Detail
-
bold
public WorkflowBpmnLabelStyleDefinition.Builder bold()
Sets the label to be bold.- Returns:
- This builder for chaining method calls.
-
bold
public WorkflowBpmnLabelStyleDefinition.Builder bold(boolean bold)
Whether the label should be bold.- Parameters:
bold
-true
if the label should be bold,false
otherwise.- Returns:
- This builder for chaining method calls.
-
build
public WorkflowBpmnLabelStyleDefinition build()
Builds a newWorkflowBpmnLabelStyleDefinition
instance with the current settings. Subsequent modifications to the builder will not affect the created instance.- Returns:
- A new label style definition instance.
-
fontName
public WorkflowBpmnLabelStyleDefinition.Builder fontName(String 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
public WorkflowBpmnLabelStyleDefinition.Builder fontSize(double 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
public WorkflowBpmnLabelStyleDefinition.Builder italic()
Sets the label to be italic.- Returns:
- This builder for chaining method calls.
-
italic
public WorkflowBpmnLabelStyleDefinition.Builder italic(boolean italic)
Whether the label should be italic.- Parameters:
italic
-true
if the label should be italic,false
otherwise.- Returns:
- This builder for chaining method calls.
-
struckThrough
public WorkflowBpmnLabelStyleDefinition.Builder struckThrough()
Sets the label to be struck through.- Returns:
- This builder for chaining method calls.
-
struckThrough
public WorkflowBpmnLabelStyleDefinition.Builder struckThrough(boolean struckThrough)
Whether the label should be struck through.- Parameters:
struckThrough
-true
if the label should be struck through,false
otherwise.- Returns:
- This builder for chaining method calls.
-
underlined
public WorkflowBpmnLabelStyleDefinition.Builder underlined()
Sets the label to be underlined.- Returns:
- This builder for chaining method calls.
-
underlined
public WorkflowBpmnLabelStyleDefinition.Builder underlined(boolean underlined)
Whether the label should be underlined.- Parameters:
underlined
-true
if the label should be underlined,false
otherwise.- Returns:
- This builder for chaining method calls.
-
-