Class GeneralSettingsViewModel
java.lang.Object
de.xima.fc.workflow.designer.bpmn.model.settings.ASettingsViewViewModel
de.xima.fc.workflow.designer.bpmn.model.settings.GeneralSettingsViewModel
- All Implemented Interfaces:
Serializable
View model for general layout settings related to 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.doubleGets the default spacing to apply in the crossflow direction, i.e. the direction perpendicular to the main flow.Gets the main direction for orienting the elements in the BPMN diagram.doubleGets the default spacing tp apply in the mainflow direction.Gets the unit for the font size in the BPMN diagram.doubleGets the default distance between the name of anamedelement and its name.booleanGets whether the BPMN diagram should be colorized.voidsetColorize(boolean colorize) Sets whether the BPMN diagram should be colorized.voidsetCrossFlowDirectionSpacing(double crossFlowDirectionSpacing) Sets the default spacing to apply in the crossflow direction, i.e. the direction perpendicular to the main flow.voidsetDirection(ECardinalDirection2D direction) Sets the main direction for orienting the elements in the BPMN diagram.voidsetFlowDirectionSpacing(double flowDirectionSpacing) Sets the default spacing to apply in the mainflow direction.voidsetFontSizeUnit(EBpmnTextSettingsUnit fontSizeUnit) Sets the unit for the font size in the BPMN diagram.voidsetNameDistance(double nameDistance) Sets the default distance between the name of anamedelement and its name.
-
Constructor Details
-
GeneralSettingsViewModel
public GeneralSettingsViewModel()
-
-
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.
-
getCrossFlowDirectionSpacing
public double getCrossFlowDirectionSpacing()Gets the default spacing to apply in the crossflow direction, i.e. the direction perpendicular to the main flow. This is e.g. the spacing between the consequent (if) and alternate (else) branch in a selection statement (if-else block).- Returns:
- The cross flow direction spacing.
-
setCrossFlowDirectionSpacing
public void setCrossFlowDirectionSpacing(double crossFlowDirectionSpacing) Sets the default spacing to apply in the crossflow direction, i.e. the direction perpendicular to the main flow. This is e.g. the spacing between the consequent (if) and alternate (else) branch in a selection statement (if-else block).- Parameters:
crossFlowDirectionSpacing- The cross flow direction spacing.
-
getDirection
Gets the main direction for orienting the elements in the BPMN diagram.- Returns:
- The main flow direction.
-
setDirection
Sets the main direction for orienting the elements in the BPMN diagram.- Parameters:
direction- The main flow direction.
-
getFlowDirectionSpacing
public double getFlowDirectionSpacing()Gets the default spacing tp apply in the mainflow direction. This is e.g. the spacing between two consecutive tasks in a sequence statement.- Returns:
- The flow direction spacing.
-
setFlowDirectionSpacing
public void setFlowDirectionSpacing(double flowDirectionSpacing) Sets the default spacing to apply in the mainflow direction. This is e.g. the spacing between two consecutive tasks in a sequence statement.- Parameters:
flowDirectionSpacing- The flow direction spacing.
-
getFontSizeUnit
Gets the unit for the font size in the BPMN diagram. The BPMN standard allows specifying font sizes, but only as unitless numbers. Different tools interpret these numbers differently. This setting allow to specify the implied unit for the font size.- Returns:
- The font size unit.
-
setFontSizeUnit
Sets the unit for the font size in the BPMN diagram. The BPMN standard allows specifying font sizes, but only as unitless numbers. Different tools interpret these numbers differently. This setting allow to specify the implied unit for the font size.- Parameters:
fontSizeUnit- The font size unit.
-
getNameDistance
public double getNameDistance()Gets the default distance between the name of anamedelement and its name.- Returns:
- The name distance.
-
setNameDistance
public void setNameDistance(double nameDistance) Sets the default distance between the name of anamedelement and its name.- Parameters:
nameDistance- The name distance.
-
isColorize
public boolean isColorize()Gets whether the BPMN diagram should be colorized.- Returns:
- True if the BPMN diagram should be colorized, false otherwise.
-
setColorize
public void setColorize(boolean colorize) Sets whether the BPMN diagram should be colorized.- Parameters:
colorize- True if the BPMN diagram should be colorized, false otherwise.
-