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 to tasks in BPMN diagrams.
Since:
8.4.0
See Also:
  • Constructor Details

    • TaskExportSettingsViewModel

      public TaskExportSettingsViewModel()
  • Method Details

    • applyFromSettings

      public void applyFromSettings(IWorkflowBpmnLayoutSettings settings)
      Description copied from class: ASettingsViewViewModel
      Applies the settings from the given IWorkflowBpmnLayoutSettings instance to this view model.
      Specified by:
      applyFromSettings in class ASettingsViewViewModel
      Parameters:
      settings - The settings to apply.
    • applyFromSettings

      public void applyFromSettings(FlowchartToBpmnConverterSettings settings)
      Description copied from class: ASettingsViewViewModel
      Applies the settings from the given FlowchartToBpmnConverterSettings instance to this view model.
      Specified by:
      applyFromSettings in class ASettingsViewViewModel
      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 given WorkflowBpmnLayoutSettings.Builder instance.
      Specified by:
      applyToBuilder in class ASettingsViewViewModel
      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 given FlowchartToBpmnConverterSettings.Builder instance.
      Specified by:
      applyToBuilder in class ASettingsViewViewModel
      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 the expanded attribute of a BPMN shape to false for SubProcess. 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 the expanded attribute of a BPMN shape to false for SubProcess. May improve compatibility with some tools that prefer collapsed subprocesses.
      Parameters:
      collapseSubProcesses - Whether to collapse subprocesses.