Class SubProcessSettingsViewModel

    • Constructor Detail

      • SubProcessSettingsViewModel

        public SubProcessSettingsViewModel()
    • Method Detail

      • getAnnotationDistance

        public double getAnnotationDistance()
        Gets the distance between the sub-process shape and its text annotation.
        Returns:
        The distance in pixels.
      • setAnnotationDistance

        public void setAnnotationDistance​(double annotationDistance)
        Sets the distance between the sub-process shape and its text annotation.
        Parameters:
        annotationDistance - The distance in pixels to set.
      • getHeaderPadding

        public double getHeaderPadding()
        Gets the padding for the header of sub-processes. This is the padding on the side of the sub process where its name is displayed. Different BPMN tools require different amounts of padding, or the diagram looks bad.
        Returns:
        The header padding
      • setHeaderPadding

        public void setHeaderPadding​(double headerPadding)
        Sets the padding for the header of sub-processes. This is the padding on the side of the sub process where its name is displayed. Different BPMN tools require different amounts of padding, or the diagram looks bad.
        Parameters:
        headerPadding - The header padding to set
      • getNameAlignmentOffset

        public double getNameAlignmentOffset()
        Controls the alignment of a sub process's name in the BPMN diagram in the horizontal direction, together with nameAlignmentRatio. Defaults to 0, which corresponds to no offset.

        To determine the position of the name, the name is first positioned according to the ration, the offset by given amount.

        • The ration is a value between 0 and 1, where 0 means the name is aligned to the left edge of the sub process, and 1 means the name is aligned to the right edge of the sub process.
        • The offset is an absolute value in pixels, which is added to the position of the name after it has been aligned. A positive offset moves the name to the right, a negative offset moves it to the left.
        Returns:
        The alignment offset of the sub process name in the BPMN diagram.
      • setNameAlignmentOffset

        public void setNameAlignmentOffset​(double nameAlignmentOffset)
        Controls the alignment of a sub process's name in the BPMN diagram in the horizontal direction, together with nameAlignmentRatio. Defaults to 0, which corresponds to no offset.

        To determine the position of the name, the name is first positioned according to the ration, the offset by given amount.

        • The ration is a value between 0 and 1, where 0 means the name is aligned to the left edge of the sub process, and 1 means the name is aligned to the right edge of the sub process.
        • The offset is an absolute value in pixels, which is added to the position of the name after it has been aligned. A positive offset moves the name to the right, a negative offset moves it to the left.
        Parameters:
        nameAlignmentOffset - The alignment offset of the sub process name in the BPMN diagram.
      • getNameAlignmentRatio

        public double getNameAlignmentRatio()
        Controls the alignment of a sub process's name in the BPMN diagram in the horizontal direction, together with nameAlignmentOffset. Defaults to 0.5, which centers the name.

        To determine the position of the name, the name is first positioned according to the ration, the offset by given amount.

        • The ration is a value between 0 and 1, where 0 means the name is aligned to the left edge of the sub process, and 1 means the name is aligned to the right edge of the sub process.
        • The offset is an absolute value in pixels, which is added to the position of the name after it has been aligned. A positive offset moves the name to the right, a negative offset moves it to the left.
        Returns:
        The alignment ratio of the sub process name in the BPMN diagram.
      • setNameAlignmentRatio

        public void setNameAlignmentRatio​(double nameAlignmentRatio)
        Controls the alignment of a sub process's name in the BPMN diagram in the horizontal direction, together with nameAlignmentOffset. Defaults to 0.5, which centers the name.

        To determine the position of the name, the name is first positioned according to the ration, the offset by given amount.

        • The ration is a value between 0 and 1, where 0 means the name is aligned to the left edge of the sub process, and 1 means the name is aligned to the right edge of the sub process.
        • The offset is an absolute value in pixels, which is added to the position of the name after it has been aligned. A positive offset moves the name to the right, a negative offset moves it to the left.
        Parameters:
        nameAlignmentRatio - The alignment ratio of the sub process name in the BPMN diagram.
      • getTextSettings

        public TextSettingsViewModel getTextSettings()
        Gets the text settings for the name of sub-processes.
        Returns:
        The text settings view model.