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
Since:
8.4.0
  • Method Details

    • 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

      Builds a new WorkflowBpmnLabelStyleDefinition instance 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

      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

      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

      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

      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.