Lines Matching refs:cell

29 	function isTreeCell(cell)  argument
33 if (cell != null)
35 graph.traverse(cell, true, function(vertex)
47 ui.menus.createPopupMenu = function(menu, cell, evt) argument
53 var cell = graph.getSelectionCell();
54 var sib = graph.getOutgoingEdges(cell);
64 if (cell.getAttribute('treeRoot') != '1')
76 var cell = graph.getSelectionCell();
77 var sib = graph.getOutgoingEdges(cell);
98 var cell = graph.getSelectionCell();
99 var edges = graph.getIncomingEdges(cell);
125 var cell = graph.getSelectionCell();
126 var edges = graph.getIncomingEdges(cell);
139 var cell = graph.getSelectionCell();
143 graph.traverse(cell, true, function(vertex, edge)
251 return (isTreeCell(state.cell)) ? null : this.graph.view.getState(this.graph.getCellAt(x, y));
263 var cell = temp[i];
264 var state = graph.view.getState(cell);
266 if (state != null && isTreeCell(state.cell))
269 var edges = graph.getIncomingEdges(state.cell);
457 function getTreeDirection(cell) argument
459 var state = graph.view.getState(cell);
463 var edges = graph.getIncomingEdges(state.cell);
500 function addSibling(cell, after) argument
507 var edges = graph.getIncomingEdges(cell);
508 var clones = graph.cloneCells([edges[0], cell]);
511 var dir = getTreeDirection(cell);
515 clones[1].geometry.x += (after) ? cell.geometry.width + spacing :
520 clones[1].geometry.y += (after) ? cell.geometry.height + spacing :
526 clones[1].geometry.x = cell.geometry.x + cell.geometry.width - clones[1].geometry.width;
530 var state = graph.view.getState(cell);
540 bbox.x += ((after) ? cell.geometry.width + spacing :
545 bbox.y += ((after) ? cell.geometry.height + spacing :
565 if (temp != cell && sibling != null)
599 if (temp != cell && sibling != null)
606 graph.traverse(sibling.cell, true, function(vertex, edge)
634 function addParent(cell) argument
639 var dir = getTreeDirection(cell);
640 var edges = graph.getIncomingEdges(cell);
641 var clones = graph.cloneCells([edges[0], cell]);
644 graph.model.setTerminal(clones[0], cell, false);
649 graph.traverse(cell, true, function(vertex, edge)
661 var dx = cell.geometry.width + level;
662 var dy = cell.geometry.height + level;
693 function addChild(cell) argument
698 var edges = graph.getIncomingEdges(cell);
699 var clones = graph.cloneCells([edges[0], cell]);
700 graph.model.setTerminal(clones[0], cell, true);
703 var edges = graph.getOutgoingEdges(cell);
717 var dir = getTreeDirection(cell);
723 clones[1].geometry.x = (bbox == null) ? cell.geometry.x + (cell.geometry.width -
725 clones[1].geometry.y += cell.geometry.height + level;
729 clones[1].geometry.x = (bbox == null) ? cell.geometry.x + (cell.geometry.width -
736 clones[1].geometry.y = (bbox == null) ? cell.geometry.y + (cell.geometry.height -
741 clones[1].geometry.x += cell.geometry.width + level;
742 clones[1].geometry.y = (bbox == null) ? cell.geometry.y + (cell.geometry.height -
754 function getOrderedTargets(cell, horizontal, ref) argument
756 var sib = graph.getOutgoingEdges(cell);
784 function selectCell(cell, direction) argument
786 var dir = getTreeDirection(cell);
796 var sib = graph.getOutgoingEdges(cell);
805 var edges = graph.getIncomingEdges(cell);
809 var targets = getOrderedTargets(graph.model.getTerminal(edges[0], true), h2, cell);
810 var state = graph.view.getState(cell);
822 graph.setSelectionCell(targets[idx].cell);
1114 if (!graph.isCellSelected(state.cell))
1116 graph.setSelectionCell(state.cell);
1119 graph.graphHandler.start(state.cell, mxEvent.getClientX(evt), mxEvent.getClientY(evt));
1121 graph.graphHandler.cells = [state.cell];
1208 (!graph.getModel().isVertex(tmp.cell) || !isTreeCell(me.getCell()))))
1253 var cell = new mxCell('Central Idea', new mxGeometry(0, 20, 100, 40),
1256 graph.setAttributeForCell(cell, 'treeRoot', '1');
1257 cell.vertex = true;
1270 cell.insertEdge(edge, true);
1284 cell.insertEdge(edge2, true);
1287 …content.appendChild(sb.createVertexTemplateFromCells([edge, edge2, cell, cell2, cell3], 240, 66, '…
1292 var cell = new mxCell('Central Idea', new mxGeometry(0, 0, 100, 40),
1295 graph.setAttributeForCell(cell, 'treeRoot', '1');
1296 cell.vertex = true;
1298 content.appendChild(sb.createVertexTemplateFromCells([cell], 100, 40, 'Central Idea'));
1303 var cell = new mxCell('Branch', new mxGeometry(0, 0, 80, 20),
1307 cell.vertex = true;
1315 cell.insertEdge(edge, false);
1317 content.appendChild(sb.createVertexTemplateFromCells([edge, cell], 80, 20, 'Branch'));
1322 var cell = new mxCell('Sub Topic', new mxGeometry(0, 0, 72, 26),
1325 cell.vertex = true;
1333 cell.insertEdge(edge, false);
1335 content.appendChild(sb.createVertexTemplateFromCells([edge, cell], 72, 26, 'Sub Topic'));
1340 var cell = new mxCell('Organization', new mxGeometry(60, 0, 120, 60),
1343 graph.setAttributeForCell(cell, 'treeRoot', '1');
1344 cell.vertex = true;
1356 cell.insertEdge(edge, true);
1369 cell.insertEdge(edge2, true);
1372 …content.appendChild(sb.createVertexTemplateFromCells([edge, edge2, cell, cell2, cell3], 240, 160, …
1377 var cell = new mxCell('Tree Root', new mxGeometry(0, 0, 120, 60),
1380 graph.setAttributeForCell(cell, 'treeRoot', '1');
1381 cell.vertex = true;
1383 content.appendChild(sb.createVertexTemplateFromCells([cell], 120, 60, 'Tree Root'));
1388 var cell = new mxCell('Sub Tree', new mxGeometry(0, 0, 100, 60),
1391 cell.vertex = true;
1399 cell.insertEdge(edge, false);
1401 content.appendChild(sb.createVertexTemplateFromCells([edge, cell], 100, 60, 'Sub Tree'));
1406 var cell = new mxCell('Sub Section', new mxGeometry(0, 0, 100, 60),
1409 cell.vertex = true;
1417 cell.insertEdge(edge, false);
1432 …content.appendChild(sb.createVertexTemplateFromCells([edge, edge2, cell, cell2], 220, 60, 'Sub Sec…