Class GeneralSettingsViewModel

    • Constructor Detail

      • GeneralSettingsViewModel

        public GeneralSettingsViewModel()
    • Method Detail

      • 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.