Lines Matching refs:graph

86 	 * @return Returns the graph for the given action event.
158 mxGraph graph = graphComponent.getGraph();
159 boolean enabled = !graph.isGridEnabled();
161 graph.setGridEnabled(enabled);
261 mxGraph graph = graphComponent.getGraph();
267 codec.decode(doc.getDocumentElement(), graph
269 graph.refresh();
633 mxGraph graph = graphComponent.getGraph();
645 graph, null, graph.getView().getScale(), bg,
657 String xml = mxUtils.getXml(codec.encode(graph.getModel()));
787 mxGraph graph = graphComponent.getGraph();
788 mxIGraphModel model = graph.getModel();
793 Object[] cells = graph.getSelectionCells();
810 int steps = graph.getChildEdges(graph.getDefaultParent()).length;
812 .getShortestPath(graph, source, target,
815 graph.setSelectionCells(path);
850 mxGraph graph = graphComponent.getGraph();
851 mxIGraphModel model = graph.getModel();
853 Object parent = graph.getDefaultParent();
854 Object[] cells = graph.getSelectionCells();
863 Object[] v = graph.getChildVertices(parent);
865 .getMinimumSpanningTree(graph, v,
867 graph.setSelectionCells(mst);
1024 // Repaints the graph component
1142 mxGraph graph = null;
1145 graph = (mxGraph) target;
1147 graph = ((mxGraphComponent) target).getGraph();
1150 graph.refresh();
1310 mxGraph graph = editor.getGraphComponent().getGraph();
1314 graph.getModel().setRoot(root);
1337 mxGraph graph = mxGraphActions.getGraph(e);
1339 if (graph != null && !editor.getConfig().isNew()) {
1362 codec.decode(document.getDocumentElement(), graph.getModel());
1416 mxGraph graph = mxGraphActions.getGraph(e);
1418 if (graph != null) {
1419 graph.toggleCellStyles(key, defaultValue);
1448 mxGraph graph = mxGraphActions.getGraph(e);
1450 if (graph != null && !graph.isSelectionEmpty()) {
1451 graph.getModel().beginUpdate();
1458 graph.setCellStyles(mxConstants.STYLE_LABEL_POSITION,
1460 graph.setCellStyles(mxConstants.STYLE_ALIGN, alignment);
1462 graph.setCellStyles(
1465 graph.setCellStyles(mxConstants.STYLE_VERTICAL_ALIGN,
1469 graph.getModel().endUpdate();
1498 mxGraph graph = mxGraphActions.getGraph(e);
1500 if (graph != null && !graph.isSelectionEmpty()) {
1501 graph.setCellStyle(value);
1538 mxGraph graph = mxGraphActions.getGraph(e);
1540 if (graph != null && !graph.isSelectionEmpty()) {
1541 graph.setCellStyles(key, value);
1571 mxGraph graph = mxGraphActions.getGraph(e);
1573 if (graph != null && !graph.isSelectionEmpty()) {
1584 graph.setCellStyles(key, value);
1614 mxGraph graph = mxGraphActions.getGraph(e);
1616 if (graph != null && !graph.isSelectionEmpty()) {
1617 graph.alignCells(align);
1632 mxGraph graph = mxGraphActions.getGraph(e);
1634 if (graph != null && !graph.isSelectionEmpty()) {
1635 graph.updateCellSize(graph.getSelectionCell());
1667 mxGraph graph = graphComponent.getGraph();
1669 if (!graph.isSelectionEmpty()) {
1674 graph.setCellStyles(key, mxUtils.hexString(newColor));
1780 mxGraph graph = graphComponent.getGraph();
1781 String initial = graph.getModel().getStyle(
1782 graph.getSelectionCell());
1789 graph.setCellStyle(value);