Lines Matching refs:model

1071 					if (graph.model.isVertex(cell) && graph.model.isEdge(current) &&
1072 (graph.model.getTerminal(current, true) == null ||
1073 graph.model.getTerminal(current, false) == null))
1081 var source = graph.model.getTerminal(current, true) == null;
1093 graph.model.beginUpdate();
1097 graph.model.setTerminal(current, cell, source);
1101 graph.model.endUpdate();
1238 if (cells.length == 0 && graph.model.contains(lastInserted))
1292 if (graph.model.contains(lastInserted))
1329 var childCount = graph.model.getChildCount(parent);
1333 var child = graph.model.getChildAt(parent, i);
1335 if (graph.model.isVertex(child))
1347 var model = graph.getModel();
1348 var index = model.getParent(cell).getIndex(cell);
1349 var childCount = model.getChildCount(model.getParent(cell));
1353 var next = model.getParent(cell).getChildAt(((index == 0) ? childCount : index) - 1);
1371 if (graph.model.isEdge(cell))
1373 var terminal = graph.model.getTerminal(cell, tokens[1].toLowerCase() == 'source');
1388 var childCount = graph.model.getChildCount(parent);
1392 var child = graph.model.getChildAt(parent, i);
1394 if (graph.model.isVertex(child))
1406 var model = graph.getModel();
1407 var index = model.getParent(cell).getIndex(cell);
1408 var childCount = model.getChildCount(model.getParent(cell));
1412 var next = model.getParent(cell).getChildAt(((index == childCount - 1) ? 0 : index + 1));
1499 if (cells.length == 0 && graph.model.contains(lastInserted))
1556 if (cells.length == 0 && graph.model.contains(lastInserted))
1677 if (graph.model.isEdge(graph.getSelectionCell()))
1754 if (graph.model.isVertex(cell))
1967 if (graph.model.isEdge(cell))
1971 else if (graph.model.isVertex(cell))
2169 if (graph.model.isEdge(cell))
2173 else if (graph.model.isVertex(cell))
2218 if (graph.model.isEdge(cell) && graph.model.getTerminal(cell, true) != null &&
2219 graph.model.getTerminal(cell, false) != null)
2221 if (graph.getWordForCell(graph.model.getTerminal(cell, true)) ==
2222 graph.getWordForCell(graph.model.getTerminal(cell, false)))
2228 App.say('{1} connected to {2}', [graph.getWordForCell(graph.model.getTerminal(cell, true)),
2229 graph.getWordForCell(graph.model.getTerminal(cell, false))]);
2232 else if (graph.model.isVertex(cell))