Class TaskExportSettingsViewModel
java.lang.Object
de.xima.fc.workflow.designer.bpmn.model.settings.ASettingsViewViewModel
de.xima.fc.workflow.designer.bpmn.model.settings.TaskExportSettingsViewModel
- All Implemented Interfaces:
Serializable
View model for layout settings related to
tasks 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.doubleGets the distance between a task shape and its text annotation in the BPMN diagram.getColor()Gets the color of the task shapes in the BPMN diagram.doubleGets the height of the task shapes (rectangles) in the BPMN diagram in pixels.Gets the minimum padding for non-abstract tasks in the BPMN diagram.Gets the padding for task shapes in the BPMN diagram.Gets the text settings for a task's name in the BPMN diagram.doublegetWidth()Gets the width of the task shapes (rectangles) in the BPMN diagram in pixels.booleanGets whether to set theexpandedattribute of aBPMN shapeto false forSubProcess.voidsetAnnotationDistance(double annotationDistance) Sets the distance between a task shape and its text annotation in the BPMN diagram.voidsetCollapseSubProcesses(boolean collapseSubProcesses) Sets whether to set theexpandedattribute of aBPMN shapeto false forSubProcess.voidSets the color of the task shapes in the BPMN diagram.voidsetHeight(double height) Sets the height of the task shapes (rectangles) in the BPMN diagram in pixels.voidsetWidth(double width) Sets the width of the task shapes (rectangles) in the BPMN diagram in pixels.
-
Constructor Details
-
TaskExportSettingsViewModel
public TaskExportSettingsViewModel()
-
-
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.
-
getAnnotationDistance
public double getAnnotationDistance()Gets the distance between a task shape and its text annotation in the BPMN diagram.- Returns:
- The distance in pixels.
-
setAnnotationDistance
public void setAnnotationDistance(double annotationDistance) Sets the distance between a task shape and its text annotation in the BPMN diagram.- Parameters:
annotationDistance- The distance to set, in pixels.
-
getColor
Gets the color of the task shapes in the BPMN diagram.- Returns:
- The color of the task shapes.
-
setColor
Sets the color of the task shapes in the BPMN diagram.- Parameters:
color- The color to set, in CSS color format (e.g., "#RRGGBB").
-
getHeight
public double getHeight()Gets the height of the task shapes (rectangles) in the BPMN diagram in pixels.- Returns:
- The height of the task shapes.
-
setHeight
public void setHeight(double height) Sets the height of the task shapes (rectangles) in the BPMN diagram in pixels.- Parameters:
height- The height to set for the task shapes.
-
getNonAbstractTaskMinPadding
Gets the minimum padding for non-abstract tasks in the BPMN diagram. This padding can be used to ensure that there is sufficient space for the task type icon.- Returns:
- The minimum padding for non-abstract tasks.
-
getPadding
Gets the padding for task shapes in the BPMN diagram.- Returns:
- The padding for task shapes.
-
getTextSettings
Gets the text settings for a task's name in the BPMN diagram.- Returns:
- The text settings for the name of a task.
-
getWidth
public double getWidth()Gets the width of the task shapes (rectangles) in the BPMN diagram in pixels.- Returns:
- The width of the task shapes.
-
setWidth
public void setWidth(double width) Sets the width of the task shapes (rectangles) in the BPMN diagram in pixels.- Parameters:
width- The width to set for the task shapes.
-
isCollapseSubProcesses
public boolean isCollapseSubProcesses()Gets whether to set theexpandedattribute of aBPMN shapeto false forSubProcess. May improve compatibility with some tools that prefer collapsed subprocesses.- Returns:
- Whether to collapse subprocesses.
-
setCollapseSubProcesses
public void setCollapseSubProcesses(boolean collapseSubProcesses) Sets whether to set theexpandedattribute of aBPMN shapeto false forSubProcess. May improve compatibility with some tools that prefer collapsed subprocesses.- Parameters:
collapseSubProcesses- Whether to collapse subprocesses.
-