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 totasks
in 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 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.double
getAnnotationDistance()
Gets the distance between a task shape and its text annotation in the BPMN diagram.String
getColor()
Gets the color of the task shapes in the BPMN diagram.double
getHeight()
Gets the height of the task shapes (rectangles) in the BPMN diagram in pixels.CardinalDoublesViewModel
getNonAbstractTaskMinPadding()
Gets the minimum padding for non-abstract tasks in the BPMN diagram.CardinalDoublesViewModel
getPadding()
Gets the padding for task shapes in the BPMN diagram.TextSettingsViewModel
getTextSettings()
Gets the text settings for a task's name in the BPMN diagram.double
getWidth()
Gets the width of the task shapes (rectangles) in the BPMN diagram in pixels.boolean
isCollapseSubProcesses()
Gets whether to set theexpanded
attribute of aBPMN shape
to false forSubProcess
.void
setAnnotationDistance(double annotationDistance)
Sets the distance between a task shape and its text annotation in the BPMN diagram.void
setCollapseSubProcesses(boolean collapseSubProcesses)
Sets whether to set theexpanded
attribute of aBPMN shape
to false forSubProcess
.void
setColor(String color)
Sets the color of the task shapes in the BPMN diagram.void
setHeight(double height)
Sets the height of the task shapes (rectangles) in the BPMN diagram in pixels.void
setWidth(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: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.
-
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 theexpanded
attribute of aBPMN shape
to 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 theexpanded
attribute of aBPMN shape
to false forSubProcess
. May improve compatibility with some tools that prefer collapsed subprocesses.- Parameters:
collapseSubProcesses
- Whether to collapse subprocesses.
-
-