Class WorkflowBpmnLabelStyleDefinition
java.lang.Object
de.xima.fc.common.workflow.bpmn.WorkflowBpmnLabelStyleDefinition
- All Implemented Interfaces:
Serializable
Style definition for a BPMN label. This is used as a key for retrieving an appropriate
BpmnLabelStyle
instance when building a BPMN diagram.- Since:
- 8.4.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanbold()Whether the label should be bold.builder()Creates a new builder for aWorkflowBpmnLabelStyleDefinition.booleanfontName()The name of the font to use for the label, e.g.doublefontSize()The font size to use for the label.inthashCode()booleanitalic()Whether the label should be italic.booleanWhether the label should be struck through.undecorated(String fontName, double fontSize) Creates an undecorated label style definition with the specified font name and size.booleanWhether the label should be underlined.
-
Method Details
-
bold
public boolean bold()Whether the label should be bold.- Returns:
trueif the label should be bold,falseotherwise.
-
equals
-
fontName
The name of the font to use for the label, e.g. "Arial", "Times New Roman", etc. Never null, but may be empty. When empty, indicates that BPMN tools should use some default font.- Returns:
- The font name, or an empty string if no font is specified.
-
fontSize
public double fontSize()The font size to use for the label. The BPMN specification does not define an explicit unit for font size, though most tools use pixels, not points.- Returns:
- The font size, or
Double.NaNif no font size is specified.
-
hashCode
-
italic
public boolean italic()Whether the label should be italic.- Returns:
trueif the label should be italic,falseotherwise.
-
struckThrough
public boolean struckThrough()Whether the label should be struck through.- Returns:
trueif the label should be struck through,falseotherwise.
-
undecorated
Creates an undecorated label style definition with the specified font name and size. The bold, italic, struck-through, and underlined flags are all set to false.- Parameters:
fontName- The name of the font to use for the label, e.g. "Arial", "Times New Roman", etc. May be empty or null to indicate that no specific font is specified, in which case BPMN tools use some default font.fontSize- The font size to use for the label. The BPMN specification does not define an explicit unit for font size, but most tools use pixels, not points. May beDouble.NaNto indicate that no specific font size is specified, in which case BPMN tools use some default font size.- Returns:
- A new
WorkflowBpmnLabelStyleDefinitioninstance with the specified font name and size, and all decorations (bold, italic, struck-through, underlined) set to false.
-
underlined
public boolean underlined()Whether the label should be underlined.- Returns:
trueif the label should be underlined,falseotherwise.
-
builder
Creates a new builder for aWorkflowBpmnLabelStyleDefinition.- Returns:
- A new builder instance.
-