Package de.xima.fc.common.workflow.bpmn
Class StyledBpmnLabel
- java.lang.Object
-
- de.xima.fc.common.workflow.bpmn.StyledBpmnLabel
-
- All Implemented Interfaces:
Serializable
public class StyledBpmnLabel extends Object implements Serializable
Represents a styled BPMN label, including the label text and its style definition. This is often used as the value of anIWorkflowBpmnAlignmentItemwhen creating and laying out BPMN diagrams.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StyledBpmnLabel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexplicitBounds()Gets whether the label has explicit bounds.StyledBpmnLabelexplicitBounds(boolean explicitBounds)Sets whether the label has explicit bounds.WorkflowBpmnLabelStyleDefinitionstyle()Gets the style definition of the label.StyledBpmnLabelstyle(WorkflowBpmnLabelStyleDefinition style)Sets the style definition of the label.Stringtext()Gets the text of the label.StyledBpmnLabeltext(String text)Sets the text of the label.
-
-
-
Method Detail
-
explicitBounds
public boolean explicitBounds()
Gets whether the label has explicit bounds. If true, aBoundsinstance should be added to theBpmnLabel.- Returns:
- True if the label has explicit bounds, false otherwise.
-
explicitBounds
public StyledBpmnLabel explicitBounds(boolean explicitBounds)
Sets whether the label has explicit bounds. If true, aBoundsinstance should be added to theBpmnLabel.- Parameters:
explicitBounds- True if the label has explicit bounds, false otherwise.- Returns:
- This instance for method chaining.
-
style
public WorkflowBpmnLabelStyleDefinition style()
Gets the style definition of the label.- Returns:
- The style definition of the label.
-
style
public StyledBpmnLabel style(WorkflowBpmnLabelStyleDefinition style)
Sets the style definition of the label.- Parameters:
style- The style definition of the label.- Returns:
- This instance for method chaining.
-
text
public String text()
Gets the text of the label.- Returns:
- The text of the label.
-
text
public StyledBpmnLabel text(String text)
Sets the text of the label.- Parameters:
text- The text of the label.- Returns:
- This instance for method chaining.
-
-