Class mxSpaceManager

java.lang.Object
com.mxgraph.util.mxEventSource
com.mxgraph.view.mxSpaceManager

public class mxSpaceManager extends mxEventSource
  • Field Details

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

      protected mxEventSource.mxIEventListener resizeHandler
  • Constructor Details

    • mxSpaceManager

      public mxSpaceManager(mxGraph graph)
  • Method Details

    • isCellIgnored

      public boolean isCellIgnored(Object cell)
    • isCellShiftable

      public boolean isCellShiftable(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(Object[] cells)
    • cellResized

      protected void cellResized(Object cell)
    • shiftCell

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

      protected Object[] getCellsToShift(mxCellState state)
    • destroy

      public void destroy()