/** * Inner callback to change the root of the model and update the internal * datastructures, such as cells and nextId. Returns the previous root. */ protected Object rootChanged(Object root) { Object oldRoot = this.root; this.root = (mxICell) root; // Resets counters and datastructures nextId = 0; cells = null; cellAdded(root); return oldRoot; }
/** * Inner callback to change the root of the model and update the internal * datastructures, such as cells and nextId. Returns the previous root. */ protected Object rootChanged(Object root) { Object oldRoot = this.root; this.root = (mxICell) root; // Resets counters and datastructures nextId = 0; cells = null; cellAdded(root); return oldRoot; }
cellAdded(mxc.getChildAt(i));
cellAdded(mxc.getChildAt(i));