Class mxGraphModel.mxChildChange

All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxChildChange extends mxIGraphModel.mxAtomicGraphModelChange
  • Field Details

    • parent

      protected Object parent
    • previous

      protected Object previous
    • child

      protected Object child
    • index

      protected int index
    • previousIndex

      protected int previousIndex
  • Constructor Details

  • Method Details

    • setParent

      public void setParent(Object value)
    • getParent

      public Object getParent()
      Returns:
      the parent
    • setPrevious

      public void setPrevious(Object value)
    • getPrevious

      public Object getPrevious()
      Returns:
      the previous
    • setChild

      public void setChild(Object value)
    • getChild

      public Object getChild()
      Returns:
      the child
    • setIndex

      public void setIndex(int value)
    • getIndex

      public int getIndex()
      Returns:
      the index
    • setPreviousIndex

      public void setPreviousIndex(int value)
    • getPreviousIndex

      public int getPreviousIndex()
      Returns:
      the previousIndex
    • getTerminal

      protected Object getTerminal(Object edge, boolean source)
      Gets the source or target terminal field for the given edge even if the edge is not stored as an incoming or outgoing edge in the respective terminal.
    • setTerminal

      protected void setTerminal(Object edge, Object terminal, boolean source)
      Sets the source or target terminal field for the given edge without inserting an incoming or outgoing edge in the respective terminal.
    • connect

      protected void connect(Object cell, boolean isConnect)
    • getChildIndex

      protected int getChildIndex(Object parent, Object child)
      Returns the index of the given child inside the given parent.
    • execute

      public void execute()
      Changes the root of the model.
      Specified by:
      execute in interface mxUndoableEdit.mxUndoableChange
      Specified by:
      execute in class mxIGraphModel.mxAtomicGraphModelChange