Class mxCircleLayout

    • Field Detail

      • radius

        protected double radius
        Integer specifying the size of the radius. Default is 100.
      • moveCircle

        protected boolean moveCircle
        Boolean specifying if the circle should be moved to the top, left corner specified by x0 and y0. Default is false.
      • x0

        protected double x0
        Integer specifying the left coordinate of the circle. Default is 0.
      • y0

        protected double y0
        Integer specifying the top coordinate of the circle. Default is 0.
      • resetEdges

        protected boolean resetEdges
        Specifies if all edge points of traversed edges should be removed. Default is true.
      • disableEdgeStyle

        protected boolean disableEdgeStyle
        Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result. Default is true.
    • Constructor Detail

      • mxCircleLayout

        public mxCircleLayout​(mxGraph graph)
        Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
      • mxCircleLayout

        public mxCircleLayout​(mxGraph graph,
                              double radius)
        Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
    • Method Detail

      • getRadius

        public double getRadius()
        Returns:
        the radius
      • setRadius

        public void setRadius​(double radius)
        Parameters:
        radius - the radius to set
      • isMoveCircle

        public boolean isMoveCircle()
        Returns:
        the moveCircle
      • setMoveCircle

        public void setMoveCircle​(boolean moveCircle)
        Parameters:
        moveCircle - the moveCircle to set
      • getX0

        public double getX0()
        Returns:
        the x0
      • setX0

        public void setX0​(double x0)
        Parameters:
        x0 - the x0 to set
      • getY0

        public double getY0()
        Returns:
        the y0
      • setY0

        public void setY0​(double y0)
        Parameters:
        y0 - the y0 to set
      • isResetEdges

        public boolean isResetEdges()
        Returns:
        the resetEdges
      • setResetEdges

        public void setResetEdges​(boolean resetEdges)
        Parameters:
        resetEdges - the resetEdges to set
      • isDisableEdgeStyle

        public boolean isDisableEdgeStyle()
        Returns:
        the disableEdgeStyle
      • setDisableEdgeStyle

        public void setDisableEdgeStyle​(boolean disableEdgeStyle)
        Parameters:
        disableEdgeStyle - the disableEdgeStyle to set
      • execute

        public void execute​(java.lang.Object parent)
        Description copied from interface: mxIGraphLayout
        Executes the layout for the children of the specified parent.
        Specified by:
        execute in interface mxIGraphLayout
        Overrides:
        execute in class mxGraphLayout
        Parameters:
        parent - Parent cell that contains the children to be layed out.
      • circle

        public void circle​(java.lang.Object[] vertices,
                           double r,
                           double left,
                           double top)
        Executes the circular layout for the specified array of vertices and the given radius.