Lines Matching refs:cell

57 	Graph.prototype.foldTreeCell = function(collapse, cell)  argument
64 this.traverse(cell, true, mxUtils.bind(this, function(vertex, edge)
73 if (vertex != cell && (edge == null || treeEdge))
80 (vertex == cell || !this.model.isCollapsed(vertex));
83 this.model.setCollapsed(cell, collapse);
99 Graph.prototype.isTreeEdge = function(cell) argument
101 return !this.isEdgeIgnored(cell);
107 Graph.prototype.getTreeEdges = function(cell, parent, incoming, outgoing, includeLoops, recurse) argument
109 …odel.filterCells(this.getEdges(cell, parent, incoming, outgoing, includeLoops, recurse), mxUtils.b… argument
111 return this.isTreeEdge(cell);
118 Graph.prototype.getIncomingTreeEdges = function(cell, parent) argument
120 return this.getTreeEdges(cell, parent, true, false, false);
126 Graph.prototype.getOutgoingTreeEdges = function(cell, parent) argument
128 return this.getTreeEdges(cell, parent, false, true, false);
154 function isTreeVertex(cell) argument
156 return model.isVertex(cell) && hasTreeParent(cell);
159 function isTreeMoving(cell) argument
163 if (cell != null)
165 var style = graph.getCurrentCellStyle(cell);
173 function hasTreeParent(cell) argument
177 if (cell != null)
179 var parent = model.getParent(cell);
189 function hasLayoutParent(cell) argument
193 if (cell != null)
195 var parent = model.getParent(cell);
208 ui.menus.createPopupMenu = function(menu, cell, evt) argument
214 var cell = graph.getSelectionCell();
215 var sib = graph.getOutgoingTreeEdges(cell);
232 if (graph.getIncomingTreeEdges(cell).length > 0)
237 else if (graph.model.getEdgeCount(cell) > 0)
249 var cell = graph.getSelectionCell();
250 var sib = graph.getOutgoingTreeEdges(cell);
271 var cell = graph.getSelectionCell();
272 var edges = graph.getIncomingTreeEdges(cell);
298 var cell = graph.getSelectionCell();
299 var edges = graph.getIncomingTreeEdges(cell);
310 var cell = graph.getSelectionCell();
312 if (graph.isEnabled() && graph.model.isVertex(cell))
316 graph.setSelectionCells(graph.model.getTreeEdges(cell,
324 graph.traverse(cell, true, function(vertex, edge)
422 return (isTreeVertex(state.cell)) ? null : this.graph.view.getState(this.graph.getCellAt(x, y));
434 var cell = temp[i];
435 var state = graph.view.getState(cell);
437 if (state != null && isTreeVertex(state.cell))
440 var edges = graph.getIncomingTreeEdges(state.cell);
635 function getTreeDirection(cell) argument
637 var state = graph.view.getState(cell);
641 var edges = graph.getIncomingTreeEdges(state.cell);
678 function addSibling(cell, after) argument
685 var parent = graph.model.getParent(cell);
686 var edges = graph.getIncomingTreeEdges(cell);
687 var clones = graph.cloneCells([edges[0], cell]);
689 var dir = getTreeDirection(cell);
694 clones[1].geometry.x += (after) ? cell.geometry.width + spacing :
699 clones[1].geometry.y += (after) ? cell.geometry.height + spacing :
710 var state = graph.view.getState(cell);
720 bbox.x += ((after) ? cell.geometry.width + spacing :
725 bbox.y += ((after) ? cell.geometry.height + spacing :
745 if (temp != cell && sibling != null)
779 if (temp != cell && sibling != null)
786 graph.traverse(sibling.cell, true, function(vertex, edge)
819 function addParent(cell) argument
824 var dir = getTreeDirection(cell);
825 var edges = graph.getIncomingTreeEdges(cell);
826 var clones = graph.cloneCells([edges[0], cell]);
829 graph.model.setTerminal(clones[0], cell, false);
832 var parent = graph.model.getParent(cell);
842 graph.traverse(cell, true, function(vertex, edge)
859 var dx = cell.geometry.width + level;
860 var dy = cell.geometry.height + level;
891 function addChild(cell, direction) argument
896 var parent = graph.model.getParent(cell);
897 var edges = graph.getIncomingTreeEdges(cell);
898 var dir = getTreeDirection(cell);
908 var clones = graph.cloneCells([edges[0], cell]);
909 graph.model.setTerminal(clones[0], cell, true);
945 var edges = graph.getOutgoingTreeEdges(cell);
971 clones[1].geometry.x = (bbox == null) ? cell.geometry.x + (cell.geometry.width -
978 clones[1].geometry.x = (bbox == null) ? cell.geometry.x + (cell.geometry.width -
986 clones[1].geometry.y = (bbox == null) ? cell.geometry.y + (cell.geometry.height -
993 clones[1].geometry.y = (bbox == null) ? cell.geometry.y + (cell.geometry.height -
1006 function getOrderedTargets(cell, horizontal, ref) argument
1008 var sib = graph.getOutgoingTreeEdges(cell);
1036 function selectCell(cell, direction) argument
1038 var dir = getTreeDirection(cell);
1048 var sib = graph.getOutgoingTreeEdges(cell);
1057 var edges = graph.getIncomingTreeEdges(cell);
1061 var targets = getOrderedTargets(graph.model.getTerminal(edges[0], true), h2, cell);
1062 var state = graph.view.getState(cell);
1074 graph.setSelectionCell(targets[idx].cell);
1251 if (((isTreeMoving(this.state.cell) || isTreeVertex(this.state.cell)) &&
1252 !hasLayoutParent(this.state.cell)) && this.graph.getOutgoingTreeEdges(
1253 this.state.cell).length > 0)
1265 this.graph.graphHandler.start(this.state.cell,
1267 this.graph.getSubtree(this.state.cell));
1336 var cell = new mxCell('Tree Container', new mxGeometry(0, 0, 400, 320),
1338 cell.vertex = true;
1357 cell.insert(edge);
1358 cell.insert(cell2);
1359 cell.insert(cell3);
1361 return sb.createVertexTemplateFromCells([cell], cell.geometry.width,
1362 cell.geometry.height, cell.value);
1370 var cell = new mxCell('Central Idea', new mxGeometry(160, 60, 100, 40),
1373 cell.vertex = true;
1385 cell.insertEdge(edge, true);
1399 cell.insertEdge(edge2, true);
1412 cell.insertEdge(edge3, true);
1426 cell.insertEdge(edge4, true);
1433 mindmap.insert(cell);
1444 var cell = new mxCell('Central Idea', new mxGeometry(0, 0, 100, 40),
1447 cell.vertex = true;
1449 return sb.createVertexTemplateFromCells([cell], cell.geometry.width,
1450 cell.geometry.height, cell.value);
1454 var cell = new mxCell('Branch', new mxGeometry(0, 0, 80, 20),
1458 cell.vertex = true;
1466 cell.insertEdge(edge, false);
1468 return sb.createVertexTemplateFromCells([cell, edge], cell.geometry.width,
1469 cell.geometry.height, cell.value);
1473 var cell = new mxCell('Sub Topic', new mxGeometry(0, 0, 72, 26),
1476 cell.vertex = true;
1484 cell.insertEdge(edge, false);
1486 return sb.createVertexTemplateFromCells([cell, edge], cell.geometry.width,
1487 cell.geometry.height, cell.value);
1495 var cell = new mxCell('Organization', new mxGeometry(80, 40, 120, 60),
1497 graph.setAttributeForCell(cell, 'treeRoot', '1');
1498 cell.vertex = true;
1510 cell.insertEdge(edge, true);
1523 cell.insertEdge(edge2, true);
1528 orgchart.insert(cell);
1537 var cell = new mxCell('Organization', new mxGeometry(0, 0, 120, 60),
1539 graph.setAttributeForCell(cell, 'treeRoot', '1');
1540 cell.vertex = true;
1542 return sb.createVertexTemplateFromCells([cell], cell.geometry.width,
1543 cell.geometry.height, cell.value);
1547 var cell = new mxCell('Division', new mxGeometry(20, 40, 100, 60),
1549 cell.vertex = true;
1558 cell.insertEdge(edge, false);
1560 return sb.createVertexTemplateFromCells([cell, edge], cell.geometry.width,
1561 cell.geometry.height, cell.value);
1565 var cell = new mxCell('Sub Section', new mxGeometry(0, 0, 100, 60),
1567 cell.vertex = true;
1575 cell.insertEdge(edge, false);
1589 … return sb.createVertexTemplateFromCells([edge, edge2, cell, cell2], 220, 60, 'Sub Sections');