/** * Invoked after a cell has been removed from the model. This recursively * removes the cell from its terminals and removes the mapping from the Id * to the cell. * * @param cell Cell that has been removed. */ protected void cellRemoved(Object cell) { if (cell instanceof mxICell) { mxICell mxc = (mxICell) cell; int childCount = mxc.getChildCount(); for (int i = 0; i < childCount; i++) { cellRemoved(mxc.getChildAt(i)); } if (cells != null && mxc.getId() != null) { cells.remove(mxc.getId()); } } }
/** * Invoked after a cell has been removed from the model. This recursively * removes the cell from its terminals and removes the mapping from the Id * to the cell. * * @param cell Cell that has been removed. */ protected void cellRemoved(Object cell) { if (cell instanceof mxICell) { mxICell mxc = (mxICell) cell; int childCount = mxc.getChildCount(); for (int i = 0; i < childCount; i++) { cellRemoved(mxc.getChildAt(i)); } if (cells != null && mxc.getId() != null) { cells.remove(mxc.getId()); } } }
id = ((mxICell) obj).getId();
id = ((mxICell) obj).getId();
String id = cell.getId(); mxICell target = (mxICell) ((id != null && (!isEdge(cell) || !cloneAllEdges)) ? getCell(id) : null);
String id = cell.getId(); mxICell target = (mxICell) ((id != null && (!isEdge(cell) || !cloneAllEdges)) ? getCell(id) : null);
id = ((mxICell) terminal).getId(); terminal = getTerminalForPort(terminal, source);
id = ((mxICell) terminal).getId(); terminal = getTerminalForPort(terminal, source);