Lines Matching refs:cell

2339 							var cell = model.getCell(node.getAttribute('id'));
2341 if (cell != null)
2356 model.setValue(cell, valueNode);
2364 graph.setAttributeForCell(cell, attrs[j].nodeName,
2375 console.log('Error in value for ' + cell.id + ': ' + e);
2386 graph.model.setStyle(cell, style);
2393 console.log('Error in style for ' + cell.id + ': ' + e);
2408 graph.removeCellOverlays(cell);
2413 graph.addCellOverlay(cell, createOverlay(desc));
2421 console.log('Error in icon for ' + cell.id + ': ' + e);
2433 var curr = graph.getCellGeometry(cell);
2466 graph.model.setGeometry(cell, curr);
2474 console.log('Error in icon for ' + cell.id + ': ' + e);
7097 EditorUi.prototype.updatePageLinksForCell = function(mapping, cell) argument
7101 var href = graph.getLinkForCell(cell);
7105 graph.setLinkForCell(cell, this.updatePageLink(mapping, href));
7108 if (graph.isHtmlLabel(cell))
7110 temp.innerHTML = graph.sanitizeHtml(graph.getLabel(cell));
7127 graph.labelChanged(cell, temp.innerHTML);
7131 for (var i = 0; i < graph.model.getChildCount(cell); i++)
7133 this.updatePageLinksForCell(mapping, graph.model.getChildAt(cell, i));
7792 var cell = null;
7797 cell = graph.insertVertex(null, null, '<pre>' + text + '</pre>',
7799 graph.updateCellSize(cell, true);
7806 return cell;
7917 var cell = null;
7923 cell = graph.insertVertex(graph.getDefaultParent(), null, text,
7925 graph.updateCellSize(cell);
7926 graph.fireEvent(new mxEventObject('textInserted', 'cells', [cell]));
7933 graph.setSelectionCell(cell);
7963 var cell = null;
7970 cell = graph.insertVertex(graph.getDefaultParent(), null, '',
7972 graph.fireEvent(new mxEventObject('textInserted', 'cells', [cell]));
7989 cell.value = text;
7990 graph.updateCellSize(cell);
7993 if (this.maxTextWidth > 0 && cell.geometry.width > this.maxTextWidth)
7995 var size = graph.getPreferredSizeForCell(cell, this.maxTextWidth);
7996 cell.geometry.width = size.width;
7997 cell.geometry.height = size.height;
8001 if (Graph.isLink(cell.value))
8003 graph.setLinkForCell(cell, cell.value);
8007 cell.geometry.width += graph.gridSize;
8008 cell.geometry.height += graph.gridSize;
8015 return [cell];
9709 var cell = this.editor.graph.getSelectionCell();
9710 var style = this.editor.graph.getModel().getStyle(cell);
10684 var cell = graph.getStartEditingCell(graph.getSelectionCell(), evt);
10687 graph.getCurrentCellStyle(cell)[mxConstants.STYLE_SHAPE] == 'image')
10689 graph.setCellStyles(mxConstants.STYLE_IMAGE, xml, [cell]);
10696 graph.labelChanged(cell, xml);
10700 graph.setLinkForCell(cell, xml);
10709 graph.setSelectionCell(cell);
11446 EditorUi.prototype.addBasenamesForCell = function(cell, basenames) argument
11468 var style = graph.getCellStyle(cell);
11473 if (graph.model.isEdge(cell))
11479 var childCount = graph.model.getChildCount(cell);
11483 this.addBasenamesForCell(graph.model.getChildAt(cell, i), basenames);
11588 var cell = cells[id];
11590 if (cell != null && cell.style != null)
11592cell.style += ';sketch=1;' + (cell.style.indexOf('fontFamily=') == -1 || cell.style.indexOf('fontF…
13128 var cell = null;
13133 cell = graph.model.getCell(id);
13136 var exists = cell != null;
13172 graph.model.setValue(cell, newCell.value);
13173 graph.model.setStyle(cell, newCell.style);
13175 if (mxUtils.indexOf(cells, cell) < 0)
13177 cells.push(cell);
13180 graph.fireEvent(new mxEventObject('cellsInserted', 'cells', [cell]));
13187 cell = newCell;
13193 lookups[edges[e].to][cell.getAttribute(edges[e].to)] = cell;
13199 graph.setLinkForCell(cell, cell.getAttribute(link));
13202 graph.setAttributeForCell(cell, link, null);
13206 var size = this.editor.graph.getPreferredSizeForCell(cell);
13210 if (cell.vertex)
13215 if (left != null && cell.getAttribute(left) != null)
13217 cell.geometry.x = originX + parseFloat(cell.getAttribute(left));
13220 if (top != null && cell.getAttribute(top) != null)
13222 cell.geometry.y = originY + parseFloat(cell.getAttribute(top));
13225 var widthValue = (width.charAt(0) == '@') ? cell.getAttribute(width.substring(1)) : null;
13229 cell.geometry.width = parseFloat(cell.getAttribute(width.substring(1)));
13233 cell.geometry.width = (width == 'auto' || widthValue == 'auto') ?
13237 var heightValue = (height.charAt(0) == '@') ? cell.getAttribute(height.substring(1)) : null;
13241 cell.geometry.height = parseFloat(heightValue);
13245 cell.geometry.height = (height == 'auto' || heightValue == 'auto') ?
13249 y += cell.geometry.height + nodespacing;
13254 allCells.push(cell);
13259 graph.addCell(cell, parent);
13264 cells.push(graph.addCell(cell));
13274 dups[id].push(cell);
13300 var cell = allCells[i];
13393 insertEdge(cell, cell, edge);
13396 if (dups[cell.id] != null)
13398 for (var j = 0; j < dups[cell.id].length; j++)
13400 insertEdge(cell, dups[cell.id][j], edge);
13411 var cell = allCells[i];
13415 graph.setAttributeForCell(cell, mxUtils.trim(ignore[j]), null);