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

public final class GeneralSettingsViewModel extends ASettingsViewViewModel
View model for general layout settings related to BPMN diagrams.
Since:
8.4.0
See Also:
  • Constructor Details

    • GeneralSettingsViewModel

      public GeneralSettingsViewModel()
  • 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.
    • getCrossFlowDirectionSpacing

      public double getCrossFlowDirectionSpacing()
      Gets the default spacing to apply in the cross flow 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 cross flow 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

      public ECardinalDirection2D getDirection()
      Gets the main direction for orienting the elements in the BPMN diagram.
      Returns:
      The main flow direction.
    • setDirection

      public void setDirection(ECardinalDirection2D direction)
      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 main flow 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 main flow direction. This is e.g. the spacing between two consecutive tasks in a sequence statement.
      Parameters:
      flowDirectionSpacing - The flow direction spacing.
    • getFontSizeUnit

      public EBpmnTextSettingsUnit 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

      public void setFontSizeUnit(EBpmnTextSettingsUnit fontSizeUnit)
      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 a named element and its name.
      Returns:
      The name distance.
    • setNameDistance

      public void setNameDistance(double nameDistance)
      Sets the default distance between the name of a named element 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.