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
public final class TaskExportSettingsViewModel extends ASettingsViewViewModel
View model for layout settings related totasksin BPMN diagrams.- Since:
- 8.4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskExportSettingsViewModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyFromSettings(IWorkflowBpmnLayoutSettings settings)Applies the settings from the givenIWorkflowBpmnLayoutSettingsinstance to this view model.voidapplyFromSettings(FlowchartToBpmnConverterSettings settings)Applies the settings from the givenFlowchartToBpmnConverterSettingsinstance to this view model.voidapplyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)Applies the settings from this view model to the givenWorkflowBpmnLayoutSettings.Builderinstance.voidapplyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)Applies the settings from this view model to the givenFlowchartToBpmnConverterSettings.Builderinstance.doublegetAnnotationDistance()Gets the distance between a task shape and its text annotation in the BPMN diagram.StringgetColor()Gets the color of the task shapes in the BPMN diagram.doublegetHeight()Gets the height of the task shapes (rectangles) in the BPMN diagram in pixels.CardinalDoublesViewModelgetNonAbstractTaskMinPadding()Gets the minimum padding for non-abstract tasks in the BPMN diagram.CardinalDoublesViewModelgetPadding()Gets the padding for task shapes in the BPMN diagram.TextSettingsViewModelgetTextSettings()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.booleanisCollapseSubProcesses()Gets 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.voidsetColor(String color)Sets 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.
-
-
-
Method Detail
-
applyFromSettings
public void applyFromSettings(IWorkflowBpmnLayoutSettings settings)
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
public void applyFromSettings(FlowchartToBpmnConverterSettings settings)
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
public void applyToBuilder(WorkflowBpmnLayoutSettings.Builder builder)
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
public void applyToBuilder(FlowchartToBpmnConverterSettings.Builder builder)
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
public String getColor()
Gets the color of the task shapes in the BPMN diagram.- Returns:
- The color of the task shapes.
-
setColor
public void setColor(String color)
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
public CardinalDoublesViewModel 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
public CardinalDoublesViewModel getPadding()
Gets the padding for task shapes in the BPMN diagram.- Returns:
- The padding for task shapes.
-
getTextSettings
public TextSettingsViewModel 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.
-
-