Class mxSpaceManager

    • Field Detail

      • graph

        protected mxGraph graph
        Defines the type of the source or target terminal. The type is a string passed to mxCell.is to check if the rule applies to a cell.
      • enabled

        protected boolean enabled
        Optional string that specifies the value of the attribute to be passed to mxCell.is to check if the rule applies to a cell.
      • shiftRightwards

        protected boolean shiftRightwards
        Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
      • shiftDownwards

        protected boolean shiftDownwards
        Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
      • extendParents

        protected boolean extendParents
        Optional string that specifies the attributename to be passed to mxCell.is to check if the rule applies to a cell.
    • Constructor Detail

      • mxSpaceManager

        public mxSpaceManager​(mxGraph graph)
    • Method Detail

      • isCellIgnored

        public boolean isCellIgnored​(java.lang.Object cell)
      • isCellShiftable

        public boolean isCellShiftable​(java.lang.Object cell)
      • isEnabled

        public boolean isEnabled()
        Returns:
        the enabled
      • setEnabled

        public void setEnabled​(boolean value)
        Parameters:
        value - the enabled to set
      • isShiftRightwards

        public boolean isShiftRightwards()
        Returns:
        the shiftRightwards
      • setShiftRightwards

        public void setShiftRightwards​(boolean shiftRightwards)
        Parameters:
        shiftRightwards - the shiftRightwards to set
      • isShiftDownwards

        public boolean isShiftDownwards()
        Returns:
        the shiftDownwards
      • setShiftDownwards

        public void setShiftDownwards​(boolean shiftDownwards)
        Parameters:
        shiftDownwards - the shiftDownwards to set
      • isExtendParents

        public boolean isExtendParents()
        Returns:
        the extendParents
      • setExtendParents

        public void setExtendParents​(boolean extendParents)
        Parameters:
        extendParents - the extendParents to set
      • getGraph

        public mxGraph getGraph()
        Returns:
        the graph
      • setGraph

        public void setGraph​(mxGraph graph)
        Parameters:
        graph - the graph to set
      • cellsResized

        protected void cellsResized​(java.lang.Object[] cells)
      • cellResized

        protected void cellResized​(java.lang.Object cell)
      • shiftCell

        protected void shiftCell​(java.lang.Object cell,
                                 double dx,
                                 double dy,
                                 double x0,
                                 double y0,
                                 double right,
                                 double bottom,
                                 double fx,
                                 double fy,
                                 boolean extendParent)
      • getCellsToShift

        protected java.lang.Object[] getCellsToShift​(mxCellState state)
      • destroy

        public void destroy()