Class OrthogonalLayouterOptionsGroup

  • All Implemented Interfaces:
    java.lang.Cloneable

    @OpenApiAll
    public class OrthogonalLayouterOptionsGroup
    extends AbstractDiagramLayouterOptionsGroup
    Organic Layouter options group.
    • Field Detail

      • LAYOUT_STYLE_NORMAL

        public static final java.lang.String LAYOUT_STYLE_NORMAL
        See Also:
        Constant Field Values
      • LAYOUT_STYLE_NORMAL_TREE

        public static final java.lang.String LAYOUT_STYLE_NORMAL_TREE
        See Also:
        Constant Field Values
      • LAYOUT_STYLES

        private static final java.util.List LAYOUT_STYLES
      • LAYOUT_ONLY_TOP_ENABLE_MAP

        private static final java.lang.Object[][] LAYOUT_ONLY_TOP_ENABLE_MAP
      • INVISIBLE

        private static final java.lang.String[] INVISIBLE
    • Constructor Detail

      • OrthogonalLayouterOptionsGroup

        public OrthogonalLayouterOptionsGroup()
    • Method Detail

      • getLayoutStyle

        public java.lang.String getLayoutStyle()
        Get String representation of layout style.
        Returns:
        string.
      • setLayoutStyle

        public void setLayoutStyle​(java.lang.String style)
        Set Layout style
        Parameters:
        style - the given layout style.
      • setLinkLengthReduction

        public void setLinkLengthReduction​(boolean b)
        Set Link Length Reduction Property value. If true the overall path lengths will be reduced. The cost for the reduction is an increased execution time of the layouter.
        Parameters:
        b - boolean
      • getLinkLengthReduction

        public boolean getLinkLengthReduction()
        Get Link Length Reduction Property value. If true the overall path lengths will be reduced. The cost for the reduction is an increased execution time of the layouter.
        Returns:
        boolean
      • setUseExistingDrawingAsSketch

        public void setUseExistingDrawingAsSketch​(boolean b)
        Set Use Existing Drawing As Sketch property value.. The layouter tries to "orthogonalize" the given sketch by interpreting it and without making too many modifications in respect to the original drawing.
        Parameters:
        b - true to use existing drawing as a sketch, false to layout from scratch
      • getUseExistingDrawingAsSketch

        public boolean getUseExistingDrawingAsSketch()
        Get Use Existing Drawing As Sketch property value.. The layouter tries to "orthogonalize" the given sketch by interpreting it and without making too many modifications in respect to the original drawing.
        Returns:
        boolean
      • setCrossingPostprocessing

        public void setCrossingPostprocessing​(boolean b)
        Set Crossing Post precessing property value. If true the overall number of path crossings will be reduced. The cost for the reduction is increased execution time of the layouter.
        Parameters:
        b - boolean
      • getCrossingPostprocessing

        public boolean getCrossingPostprocessing()
        Get Crossing Post precessing property value. If true the overall number of path crossings will be reduced. The cost for the reduction is increased execution time of the layouter.
        Returns:
        true if cross post processing is enabled, false otherwise
      • setUseRandomization

        public void setUseRandomization​(boolean b)
        Set use Randomization property value. If enabled the overall layout quality will increase with high probability. The cost for this layout optimization is increased execution time and non-deterministic behavior of the layouter.
        Parameters:
        b - true to use randomization, false otherwise
      • getUseRandomization

        public boolean getUseRandomization()
        Get use Randomization property value. If enabled the overall layout quality will increase with high probability. The cost for this layout optimization is increased execution time and non-deterministic behavior of the layouter.
        Returns:
        true if use randomization is enabled, false otherwise
      • getGroupLayoutQuality

        public double getGroupLayoutQuality()
        Get the desired layout quality. Higher values result in less connection crossings and smaller layout area, but also increased computation time.
        Returns:
        the value of group layout quality
      • setGroupLayoutQuality

        public void setGroupLayoutQuality​(double d)
        Set the desired layout quality. Higher values result in less connection crossings and smaller layout area, but also increased computation time.
        Parameters:
        d - double.
      • setLayoutOnlyTopLevel

        public void setLayoutOnlyTopLevel​(boolean b)
        Set Layout Only Top Level property value in order to keeps the relative position of symbols inside packages and performs the top level layout.
        Parameters:
        b - boolean.
      • isLayoutOnlyTopLevel

        public boolean isLayoutOnlyTopLevel()
        Check Layout Only Top Level property value. It indicates position of symbols inside packages is on the top level layout.
        Returns:
        boolean
      • getGrid

        public int getGrid()
        Get Grid property value. This property defines the virtual grid spacing used by the layouter. Each shape center point lies on a grid point.
        Returns:
        int
      • setGrid

        public void setGrid​(int d)
        Set Grid property value. This property defines the virtual grid spacing used by the layouter. Each shape center point lies on a grid point.
        Parameters:
        d - int