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 anIWorkflowBpmnAlignmentItem
when 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 boolean
explicitBounds()
Gets whether the label has explicit bounds.StyledBpmnLabel
explicitBounds(boolean explicitBounds)
Sets whether the label has explicit bounds.WorkflowBpmnLabelStyleDefinition
style()
Gets the style definition of the label.StyledBpmnLabel
style(WorkflowBpmnLabelStyleDefinition style)
Sets the style definition of the label.String
text()
Gets the text of the label.StyledBpmnLabel
text(String text)
Sets the text of the label.
-
-
-
Method Detail
-
explicitBounds
public boolean explicitBounds()
Gets whether the label has explicit bounds. If true, aBounds
instance 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, aBounds
instance 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.
-
-