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
public final class SequenceFlowSettingsViewModel extends ASettingsViewViewModel
View model for layout settings related tosequence flows
in BPMN diagrams.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SequenceFlowSettingsViewModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyFromSettings(IWorkflowBpmnLayoutSettings settings)
Applies the settings from the givenIWorkflowBpmnLayoutSettings
instance to this view model.void
applyFromSettings(FlowchartToBpmnConverterSettings settings)
Applies the settings from the givenFlowchartToBpmnConverterSettings
instance to this view model.void
applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builder
instance.void
applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builder
instance.String
getColor()
Gets the color of the sequence flow.double
getDefaultFlowMarkerLength()
Gets the length of the default flow marker (a crossed line) for sequence flows.double
getLabelSpacing()
Gets the spacing between the sequence flow label and the sequence flow line.TextSettingsViewModel
getTextSettings()
Gets the text settings for sequence flow labels.void
setColor(String color)
Sets the color of the sequence flow.void
setDefaultFlowMarkerLength(double defaultFlowMarkerLength)
Sets the length of the default flow marker (a crossed line) for sequence flows.void
setLabelSpacing(double labelSpacing)
Sets the spacing between the sequence flow label and the sequence flow line.
-
-
-
Method Detail
-
applyFromSettings
public void applyFromSettings(IWorkflowBpmnLayoutSettings settings)
Description copied from class:ASettingsViewViewModel
Applies the settings from the givenIWorkflowBpmnLayoutSettings
instance to this view model.- Specified by:
applyFromSettings
in classASettingsViewViewModel
- Parameters:
settings
- The settings to apply.
-
applyFromSettings
public void applyFromSettings(FlowchartToBpmnConverterSettings settings)
Description copied from class:ASettingsViewViewModel
Applies the settings from the givenFlowchartToBpmnConverterSettings
instance to this view model.- Specified by:
applyFromSettings
in classASettingsViewViewModel
- Parameters:
settings
- The settings to apply.
-
applyToBuilder
public void applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
Description copied from class:ASettingsViewViewModel
Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builder
instance.- Specified by:
applyToBuilder
in classASettingsViewViewModel
- Parameters:
builder
- The builder to apply settings to.
-
applyToBuilder
public void applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
Description copied from class:ASettingsViewViewModel
Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builder
instance.- Specified by:
applyToBuilder
in classASettingsViewViewModel
- Parameters:
builder
- The builder to apply settings to.
-
getColor
public String getColor()
Gets the color of the sequence flow.- Returns:
- the color as a CSS color string, e.g. "#FF0000" for red.
-
setColor
public void setColor(String color)
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
public TextSettingsViewModel getTextSettings()
Gets the text settings for sequence flow labels.- Returns:
- The text settings view model.
-
-