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.Builderbold()Sets the label to be bold.WorkflowBpmnLabelStyleDefinition.Builderbold(boolean bold)Whether the label should be bold.WorkflowBpmnLabelStyleDefinitionbuild()Builds a newWorkflowBpmnLabelStyleDefinitioninstance with the current settings.WorkflowBpmnLabelStyleDefinition.BuilderfontName(String fontName)Sets the font name for the label style.WorkflowBpmnLabelStyleDefinition.BuilderfontSize(double fontSize)Sets the font size for the label style.WorkflowBpmnLabelStyleDefinition.Builderitalic()Sets the label to be italic.WorkflowBpmnLabelStyleDefinition.Builderitalic(boolean italic)Whether the label should be italic.WorkflowBpmnLabelStyleDefinition.BuilderstruckThrough()Sets the label to be struck through.WorkflowBpmnLabelStyleDefinition.BuilderstruckThrough(boolean struckThrough)Whether the label should be struck through.WorkflowBpmnLabelStyleDefinition.Builderunderlined()Sets the label to be underlined.WorkflowBpmnLabelStyleDefinition.Builderunderlined(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-trueif the label should be bold,falseotherwise.- Returns:
- This builder for chaining method calls.
-
build
public WorkflowBpmnLabelStyleDefinition 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
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-trueif the label should be italic,falseotherwise.- 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-trueif the label should be struck through,falseotherwise.- 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-trueif the label should be underlined,falseotherwise.- Returns:
- This builder for chaining method calls.
-
-