Class SequenceFlowSettingsViewModel
java.lang.Object
de.xima.fc.workflow.designer.bpmn.model.settings.ASettingsViewViewModel
de.xima.fc.workflow.designer.bpmn.model.settings.SequenceFlowSettingsViewModel
- All Implemented Interfaces:
Serializable
View model for layout settings related to
sequence flows in BPMN diagrams.- Since:
- 8.4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyFromSettings(IWorkflowBpmnLayoutSettings settings) Applies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.voidApplies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.voidApplies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.voidApplies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.getColor()Gets the color of the sequence flow.doubleGets the length of the default flow marker (a crossed line) for sequence flows.doubleGets the spacing between the sequence flow label and the sequence flow line.Gets the text settings for sequence flow labels.voidSets the color of the sequence flow.voidsetDefaultFlowMarkerLength(double defaultFlowMarkerLength) Sets the length of the default flow marker (a crossed line) for sequence flows.voidsetLabelSpacing(double labelSpacing) Sets the spacing between the sequence flow label and the sequence flow line.
-
Constructor Details
-
SequenceFlowSettingsViewModel
public SequenceFlowSettingsViewModel()
-
-
Method Details
-
applyFromSettings
Description copied from class:ASettingsViewViewModelApplies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.- Specified by:
applyFromSettingsin classASettingsViewViewModel- Parameters:
settings- The settings to apply.
-
applyFromSettings
Description copied from class:ASettingsViewViewModelApplies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.- Specified by:
applyFromSettingsin classASettingsViewViewModel- Parameters:
settings- The settings to apply.
-
applyToBuilder
Description copied from class:ASettingsViewViewModelApplies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.- Specified by:
applyToBuilderin classASettingsViewViewModel- Parameters:
builder- The builder to apply settings to.
-
applyToBuilder
Description copied from class:ASettingsViewViewModelApplies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.- Specified by:
applyToBuilderin classASettingsViewViewModel- Parameters:
builder- The builder to apply settings to.
-
getColor
Gets the color of the sequence flow.- Returns:
- the color as a CSS color string, e.g. "#FF0000" for red.
-
setColor
Sets the color of the sequence flow.- Parameters:
color- the color as a CSS color string, e.g. "#FF0000" for red.
-
getDefaultFlowMarkerLength
public double getDefaultFlowMarkerLength()Gets the length of the default flow marker (a crossed line) for sequence flows. This is the distance between the start of the sequence flow and the end of the default flow marker.- Returns:
- The length in pixels.
-
setDefaultFlowMarkerLength
public void setDefaultFlowMarkerLength(double defaultFlowMarkerLength) Sets the length of the default flow marker (a crossed line) for sequence flows. This is the distance between the start of the sequence flow and the end of the default flow marker.- Parameters:
defaultFlowMarkerLength- The length in pixels.
-
getLabelSpacing
public double getLabelSpacing()Gets the spacing between the sequence flow label and the sequence flow line.- Returns:
- The spacing in pixels.
-
setLabelSpacing
public void setLabelSpacing(double labelSpacing) Sets the spacing between the sequence flow label and the sequence flow line.- Parameters:
labelSpacing- The spacing in pixels.
-
getTextSettings
Gets the text settings for sequence flow labels.- Returns:
- The text settings view model.
-