Lines Matching refs:cells

846 		    var cells = graphHandlerGetCells.apply(this, arguments);
850 for (var i = 0; i < cells.length; i++)
854 this.graph.isTableCell(cells[i]) &&
855 this.graph.isCellSelected(cells[i])) ?
856 this.graph.model.getParent(cells[i]) :
858 this.graph.isTableRow(cells[i]) &&
859 this.graph.isCellSelected(cells[i])) ?
860 cells[i] : this.graph.getCompositeParent(cells[i]));
875 this.graphHandler.start = function(cell, x, y, cells) argument
1104 …var cells = this.getCells(rect.x, rect.y, rect.width, rect.height, null, null, isect, function(sta…
1111 for (var i = 0; i < cells.length; i++)
1113 this.selectCellForEvent(cells[i], evt);
1118 this.selectCellsForEvent(cells, evt);
1121 return cells;
1126 this.graphHandler.shouldRemoveCellsFromParent = function(parent, cells, evt) argument
2188 Graph.prototype.getCommonStyle = function(cells) argument
2192 for (var i = 0; i < cells.length; i++)
2194 var state = this.view.getState(cells[i]);
2317 Graph.prototype.pasteStyle = function(style, cells, keys) argument
2324 for (var i = 0; i < cells.length; i++)
2326 var temp = this.getCurrentCellStyle(cells[i]);
2335 this.setCellStyles(keys[j], value, [cells[i]]);
2494 var cells = this.getSelectionCells();
2500 for (var i = 0; i < cells.length; i++)
2502 if (!ignoreFn(cells[i]))
2504 temp.push(cells[i]);
2508 cells = temp;
2511 return cells;
2623 Graph.prototype.getCellsForGroup = function(cells) argument
2625 cells = graphGetCellsForGroup.apply(this, arguments);
2629 for (var i = 0; i < cells.length; i++)
2631 if (!this.isTableRow(cells[i]) &&
2632 !this.isTableCell(cells[i]))
2634 result.push(cells[i]);
2645 Graph.prototype.getCellsForUngroup = function(cells) argument
2647 cells = graphGetCellsForUngroup.apply(this, arguments);
2651 for (var i = 0; i < cells.length; i++)
2653 if (!this.isTable(cells[i]) &&
2654 !this.isTableRow(cells[i]) &&
2655 !this.isTableCell(cells[i]))
2657 result.push(cells[i]);
3013 Graph.prototype.getDataForCells = function(cells) argument
3017 for (var i = 0; i < cells.length; i++)
3019 var attrs = (cells[i].value != null) ? cells[i].value.attributes : null;
3021 row.id = cells[i].id;
3032 row.label = this.convertValueToString(cells[i]);
3044 Graph.prototype.getNodesForCells = function(cells) argument
3048 for (var i = 0; i < cells.length; i++)
3050 var state = this.view.getState(cells[i]);
3078 Graph.prototype.createWipeAnimations = function(cells, wipeIn) argument
3082 for (var i = 0; i < cells.length; i++)
3084 var state = this.view.getState(cells[i]);
3326 for (var key in this.model.cells)
3328 var cell = this.model.cells[key];
3409 Graph.prototype.isSplitTarget = function(target, cells, evt) argument
3411 return !this.model.isEdge(cells[0]) &&
3631 Graph.prototype.getLayerForCells = function(cells) argument
3635 if (cells.length > 0)
3637 result = cells[0];
3644 for (var i = 1; i < cells.length; i++)
3646 if (!this.model.isAncestor(result, cells[i]))
3817 Graph.prototype.restoreSelection = function(cells) argument
3819 if (cells != null && cells.length > 0)
3823 for (var i = 0; i < cells.length; i++)
3825 var newCell = this.model.getCell(cells[i].id);
3844 Graph.prototype.selectCellsForConnectVertex = function(cells, evt, hoverIcons) argument
3847 if (cells.length == 2 && this.model.isVertex(cells[1]))
3849 this.setSelectionCell(cells[1]);
3850 this.scrollCellToVisible(cells[1]);
3857 hoverIcons.update(hoverIcons.getState(this.view.getState(cells[1])));
3867 this.setSelectionCells(cells);
4164 for (var key in this.model.cells)
4166 var cell = this.model.cells[key];
4350 Graph.prototype.foldCells = function(collapse, recurse, cells, checkFoldable, evt) argument
4354 if (cells == null)
4356 cells = this.getFoldableCells(this.getSelectionCells(), collapse);
4359 if (cells != null)
4370 for (var i = 0; i < cells.length; i++)
4372 var state = this.view.getState(cells[i]);
4373 var geo = this.getCellGeometry(cells[i]);
4382 var parent = this.model.getParent(cells[i]);
4411 this.setSelectionCells(cells);
4424 var cells = this.getCellsBeyond(state.x, state.y, parent, true, true);
4426 for (var i = 0; i < cells.length; i++)
4428 if (cells[i] != state.cell)
4430 var tmp = this.view.getState(cells[i]);
4431 var geo = this.getCellGeometry(cells[i]);
4438 this.model.setGeometry(cells[i], geo);
5842 var cells = this.model.getChildCells(rows[i], true);
5844 for (var j = 0; j < cells.length; j++)
5848 cells[j].value = values[i][j];
6031 var cells = model.getChildCells(row, true);
6032 var index = mxUtils.indexOf(cells, col);
6033 var lastColumn = index == cells.length - 1;
6044 cells = model.getChildCells(row, true);
6045 var cell = cells[index];
6062 if (index < cells.length - 1)
6064 cell = cells[index + 1];
6151 TableLayout.prototype.getSize = function(cells, horizontal) argument
6155 for (var i = 0; i < cells.length; i++)
6157 if (!this.isVertexIgnored(cells[i]))
6159 var geo = this.graph.getCellGeometry(cells[i]);
6178 var cells = this.graph.model.getChildCells(row, true);
6180 var sw = this.getSize(cells, true);
6185 for (var i = 0; i < cells.length; i++)
6187 var cell = this.graph.getCellGeometry(cells[i]);
6209 var cells = model.getChildCells(row, true);
6221 for (var i = 0; i < cells.length; i++)
6223 var cell = this.graph.getCellGeometry(cells[i]);
6238 if (i == cells.length - 1 && i < positions.length - 2)
6248 if (i == cells.length - 1)
6259 model.setGeometry(cells[i], cell);
6286 model.setVisible(cells[i], visible);
6288 var style = this.graph.getCurrentCellStyle(cells[i], true);
6289 var temp = {style: style, cell: cells[i], geo: cell};
7425 Graph.prototype.updateCellStyles = function(key, value, cells) argument
7430 for (var i = 0; i < cells.length; i++)
7432 if (this.model.isVertex(cells[i]) || this.model.isEdge(cells[i]))
7434 this.setCellStyles(key, null, [cells[i]]);
7435 var style = this.getCellStyle(cells[i]);
7440 this.setCellStyles(key, value, [cells[i]]);
7478 Graph.prototype.createCellLookup = function(cells, lookup) argument
7482 for (var i = 0; i < cells.length; i++)
7484 var cell = cells[i];
7532 var cells = []
7558 cells = this.moveCells(children,
7575 cells = cells.concat(children);
7580 if (cells != null)
7584 this.updateCustomLinks(cellMapping, cells);
7594 var bounds = this.getBoundingBoxFromGeometry(cells, true);
7598 this.moveCells(cells, dx - bounds.x, dy - bounds.y);
7609 return cells;
7618 Graph.prototype.encodeCells = function(cells) argument
7621 var clones = this.cloneCells(cells, null, cloneMap);
7626 for (var i = 0; i < cells.length; i++)
7628 dict.put(cells[i], true);
7640 var state = this.view.getState(cells[i]);
7646 if (geo != null && geo.relative && !this.model.isEdge(cells[i]) &&
7647 dict.get(this.model.getParent(cells[i])) == null)
7658 this.createCellLookup(cells)), clones);
7706 Graph.prototype.splitEdge = function(edge, cells, newEdge, dx, dy, x, y, parent) argument
7723 var newEdge = graphSplitEdge.apply(this, [edge, cells, newEdge, dx, dy, x, y, parent]);
7801 var cells = [];
7810 cells.push(temp);
7814 index = cells.length - 1;
7816 else if ((isNext && cell == null && cells.length > 0) ||
7817 (index != null && ((isNext && cells.length > index)) ||
7832 if (cells.length > 0)
7836 index = mxUtils.mod(index + ((isNext) ? 1 : -1), cells.length)
7843 this.setSelectionCell(cells[index]);
7851 Graph.prototype.swapUmlLifelines = function(cells, target) argument
7855 if (target != null && cells.length == 1)
7858 var sourceState = this.view.getState(cells[0]);
7865 var g2 = this.getCellGeometry(cells[0]);
7880 this.model.setGeometry(cells[0], ng2);
7899 Graph.prototype.moveCells = function(cells, dx, dy, clone, target, evt, mapping) argument
7901 if (!clone && this.swapUmlLifelines(cells, target))
7903 return cells;
7913 for (var i = 0; i < cells.length; i++)
7915 if (this.isTable(cells[i]))
7917 newCells = newCells.concat(this.model.getChildCells(cells[i], true).reverse());
7921 newCells.push(cells[i]);
7925 cells = newCells;
7935 for (var i = 0; i < cells.length; i++)
7937 if (target != null && this.isTableRow(cells[i]))
7939 var parent = this.model.getParent(cells[i]);
7940 var row = this.getCellGeometry(cells[i]);
7978 cells[i] = (clone) ? this.cloneCell(cells[i]) : cells[i];
7979 var sourceCols = this.model.getChildCells(cells[i], true);
7993 this.model.add(cells[i], col);
8006 sourceCols = this.model.getChildCells(cells[i], true);
8041 this.createCellLookup(cells)), result);
8056 Graph.prototype.removeCells = function(cells, includeEdges) argument
8064 for (var i = 0; i < cells.length; i++)
8066 if (this.isTableCell(cells[i]))
8068 var row = this.model.getParent(cells[i]);
8075 if (mxUtils.indexOf(cells, table) < 0 &&
8083 this.labelChanged(cells[i], '');
8089 if (this.isTableRow(cells[i]))
8091 var table = this.model.getParent(cells[i]);
8093 if (mxUtils.indexOf(cells, table) < 0 &&
8101 if (mxUtils.indexOf(cells, rows[j]) >= 0)
8114 result.push(cells[i]);
8132 Graph.prototype.updateCustomLinks = function(mapping, cells, graph) argument
8136 for (var i = 0; i < cells.length; i++)
8138 if (cells[i] != null)
8140 graph.updateCustomLinksForCell(mapping, cells[i], graph);
8282 Graph.prototype.isValidDropTarget = function(cell, cells, evt) argument
8288 for (var i = 0; i < cells.length && rows; i++)
8290 tables = tables && this.isTable(cells[i]);
8291 rows = rows && this.isTableRow(cells[i]);
8363 Graph.prototype.turnShapes = function(cells, backwards) argument
8371 for (var i = 0; i < cells.length; i++)
8373 var cell = cells[i];
8600 Graph.prototype.updateLabelElements = function(cells, fn, tagName) argument
8602 cells = (cells != null) ? cells : this.getSelectionCells();
8605 for (var i = 0; i < cells.length; i++)
8608 if (this.isHtmlLabel(cells[i]))
8610 var label = this.convertValueToString(cells[i]);
8624 this.cellLabelChanged(cells[i], div.innerHTML);
8691 Graph.prototype.cellsRemoved = function(cells) argument
8693 if (cells != null)
8697 for (var i = 0; i < cells.length; i++)
8699 dict.put(cells[i], true);
8705 for (var i = 0; i < cells.length; i++)
8707 var parent = this.model.getParent(cells[i]);
8737 cells.push(state.cell);
8749 Graph.prototype.removeCellsAfterUngroup = function(cells) argument
8753 for (var i = 0; i < cells.length; i++)
8755 if (this.isCellDeletable(cells[i]) &&
8757 this.view.getState(cells[i])))
8759 cellsToRemove.push(cells[i]);
8763 cells = cellsToRemove;
8839 Graph.prototype.getDropTarget = function(cells, evt, cell, clone) argument
8850 for (var i = 0; i < cells.length; i++)
8852 var parent = this.model.getParent(cells[i]);
8854 if (this.model.isEdge(parent) && mxUtils.indexOf(cells, parent) < 0)
8865 for (var i = 0; i < cells.length && rows; i++)
8867 rows = rows && this.isTableRow(cells[i]);
9325 Graph.prototype.duplicateCells = function(cells, append) argument
9327 cells = (cells != null) ? cells : this.getSelectionCells();
9331 for (var i = 0; i < cells.length; i++)
9333 if (this.isTableCell(cells[i]))
9335 cells[i] = this.model.getParent(cells[i]);
9339 cells = this.model.getTopmostCells(cells);
9350 var lookup = this.createCellLookup(cells);
9351 var clones = this.cloneCells(cells, false, cloneMap, true);
9353 for (var i = 0; i < cells.length; i++)
9355 var parent = model.getParent(cells[i]);
9369 var index = parent.getIndex(cells[i]);
9538 Graph.prototype.distributeCells = function(horizontal, cells) argument
9540 if (cells == null)
9542 cells = this.getSelectionCells();
9545 if (cells != null && cells.length > 1)
9551 for (var i = 0; i < cells.length; i++)
9553 if (this.getModel().isVertex(cells[i]))
9555 var state = this.view.getState(cells[i]);
9617 return cells;
9681 keepTheme, exportType, cells) argument
9685 if (cells != null)
9689 for (var i = 0; i < cells.length; i++)
9691 lookup.put(cells[i], true);
10154 Graph.prototype.deleteCells = function(cells, includeEdges) argument
10158 if (cells != null && cells.length > 0)
10164 for (var i = 0; i < cells.length; i++)
10166 var parent = this.model.getParent(cells[i]);
10170 var row = this.getCellGeometry(cells[i]);
10182 var parents = (this.selectParentAfterDelete) ? this.model.getParents(cells) : null;
10183 this.removeCells(cells, includeEdges);
10395 var cells = model.getChildCells(row, true);
10404 for (var i = 0; i < cells.length; i++)
10406 var cell = model.cloneCell(cells[i], false);
10473 var cells = model.getChildCells(row, true);
10475 if (cells.length <= 1)
10481 var index = cells.length - 1;
10485 index = mxUtils.indexOf(cells, cell);
10591 var cells = bd.rows[0].cells;
10595 for (var i = 0; i < cells.length; i++)
10597 var colspan = cells[i].getAttribute('colspan');
10608 return row.cells[0];
10645 return bd.rows[0].cells[(index >= 0) ? index : bd.rows[0].cells.length - 1];
10660 if (rows[i].cells.length > index)
11708 var cells = selectionCellsHandlerGetHandledSelectionCells.apply(this, arguments);
11722 for (var i = 0; i < cells.length; i++)
11724 var cell = cells[i];
12632 var cells = this.graph.getCellsBeyond(x0, y0, this.graph.getDefaultParent(), true, true);
12634 for (var i = 0; i < cells.length; i++)
12636 if (this.graph.isCellMovable(cells[i]))
12638 var tmp = this.graph.view.getState(cells[i]);
12639 var geo = this.graph.getCellGeometry(cells[i]);
12645 this.graph.model.setGeometry(cells[i], geo);
12857 mxGraphHandler.prototype.getBoundingBox = function(cells) argument
12859 if (cells != null && cells.length == 1)
12862 var parent = model.getParent(cells[0]);
12863 var geo = this.graph.getCellGeometry(cells[0]);
12867 var state = this.graph.view.getState(cells[0]);