Home
last modified time | relevance | path

Searched refs:graph (Results 1 – 25 of 191) sorted by relevance

12345678

/plugin/diagramsnet/lib/js/grapheditor/
H A DActions.js21 var graph = editor.graph;
157 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
253 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
473 graph.setSelectionCells(graph.duplicateCells());
486 graph.turnShapes(graph.getResizableCells(graph.getSelectionCells()),
495 graph.addSelectionCells(graph.getEdges(cell));
712 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
720 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
989 graph.getBoundingBox(graph.getSelectionCells())
1127 graph.setGridEnabled(!graph.isGridEnabled());
[all …]
H A DEditorUi.js15 var graph = this.editor.graph;
1113 var graph = this.editor.graph;
1198 var graph = this.editor.graph;
1432 var graph = this.editor.graph;
1455 var graph = this.editor.graph;
1622 var graph = this.editor.graph;
1677 var graph = this.editor.graph;
1836 var graph = this.editor.graph;
1985 var graph = this.editor.graph;
3370 var graph = this.editor.graph;
[all …]
H A DMenus.js47 var graph = ui.editor.graph;
647 var graph = this.editorUi.editor.graph;
843 var graph = this.editorUi.editor.graph;
883 var graph = this.editorUi.editor.graph;
1088 var graph = this.editorUi.editor.graph;
1163 var graph = this.editorUi.editor.graph;
1307 var graph = ui.editor.graph;
1378 var graph = this.editorUi.editor.graph;
1506 var graph = this.editorUi.editor.graph;
1535 var graph = this.editorUi.editor.graph;
[all …]
H A DEditor.js12 this.graph = graph || this.createGraph(themes, model);
440 this.graph.scrollbars = this.graph.defaultScrollbars;
640 var graph = this.graph;
672 var graph = this.graph;
1173 var graph = editorUi.editor.graph;
1464 var graph = editorUi.editor.graph;
2069 var graph = editorUi.editor.graph;
2381 var graph = this.graph;
2471 var graph = this.graph;
2472 …var color = (graph.background == null || graph.background == mxConstants.NONE) ? graph.defaultPage…
[all …]
H A DSidebar.js2220 var graph = this.editorUi.editor.graph;
2432 var graph = this.editorUi.editor.graph;
2482 var tempTarget = graph.getCellAt((geo.x + dx + graph.view.translate.x) * graph.view.scale,
2601 var graph = this.editorUi.editor.graph;
2787 var graph = ui.editor.graph;
2856 !graph.isCellLocked(graph.getDefaultParent()))
3475 var graph = this.editorUi.editor.graph;
3480 graph.model.isVertex(graph.getSelectionCell()))
3499 graph.scrollCellToVisible(graph.getSelectionCell());
3505 var temp = graph.getEditableCells(graph.getSelectionCells());
[all …]
/plugin/diagramsnet/lib/plugins/
H A Dexplore.js17 var graph = ui.editor.graph;
19 if (graph.model.isVertex(graph.getSelectionCell()))
132 graph.setEnabled(false);
142 load(graph, cell);
172 graph.refresh();
177 load(graph, cell);
207 if (tmp != graph.rootCell && graph.getModel().isVertex(tmp))
218 var geo = graph.getModel().getGeometry(graph.rootCell);
226 graph.getModel().setGeometry(graph.rootCell, geo);
239 if (tmp != graph.rootCell && graph.getModel().isVertex(tmp) &&
[all …]
H A Danimation.js37 graph.executeAnimations(graph.createWipeAnimations(cells, true), null, steps, delay);
77 if (graph.getModel().isVertex(cell) || graph.getModel().isEdge(cell))
139 graph.fadeNodes(graph.getNodesForCells([cell]), false);
160 graph.refresh();
212 graph.setEnabled(false);
213 graph.setPanning(true);
219 graph.centerZoom = true;
277 graph.getModel().setRoot(graph.cloneCells([editorUi.editor.graph.getModel().getRoot()])[0]);
278 graph.maxFitScale = 1;
279 graph.fit(8);
[all …]
H A DedgeConnection.js9 var geo = this.graph.getCellGeometry(source);
13 source = this.graph.getModel().getParent(source);
14 geo = this.graph.getCellGeometry(source);
19 var geo = this.graph.getModel().getGeometry(clone);
23 var point = this.graph.getPointForEvent(evt);
24 geo.x = this.graph.snap(point.x - geo.width / 2) - this.graph.panDx / this.graph.view.scale;
25 geo.y = this.graph.snap(point.y - geo.height / 2) - this.graph.panDy / this.graph.view.scale;
36 if (Math.abs(this.graph.snap(this.first.x) -
37 this.graph.snap(point.x)) <= tol)
41 else if (Math.abs(this.graph.snap(this.first.y) -
[all …]
H A Dnumber.js9 var graph = format.editorUi.editor.graph;
11 return graph.view.redrawNumberShape != null;
12 }, onChange: function(graph, newValue) argument
14 graph.refresh();
17 var graph = ui.editor.graph;
23 graph.view.resetValidationState = function()
73 var scale = graph.getView().getScale();
85 var destroy = graph.cellRenderer.destroy;
86 graph.cellRenderer.destroy = function(state)
109 graph.refresh();
[all …]
H A Dvoice.js937 if (geo.width > graph.tolerance && geo.height > graph.tolerance)
973 if (geo.width > graph.tolerance && geo.height > graph.tolerance)
1071 if (graph.model.isVertex(cell) && graph.model.isEdge(current) &&
1096 graph.moveCells(graph.getSelectionCells(), dx / s, dy / s);
1227 graph.moveCells(graph.getSelectionCells(), dx, dy);
1267 var cells = graph.getAllEdges(graph.getSelectionCells());
1302 var edges = graph.getAllEdges(graph.getSelectionCells());
1677 if (graph.model.isEdge(graph.getSelectionCell()))
1915 var graph = ui.editor.graph;
2221 if (graph.getWordForCell(graph.model.getTerminal(cell, true)) ==
[all …]
H A Dtags.js56 var graph = editorUi.editor.graph;
84 var graph = editorUi.editor.graph;
101 return graph.getTagsForCells(graph.model.getDescendants(
102 graph.model.getRoot()));
157 if (graph.model.isVertex(cells[i]) || graph.model.isEdge(cells[i]))
212 graph.addTagsForCells(graph.getSelectionCells(), [tag])
222 graph.refresh();
230 graph.removeTagsForCells(graph.getSelectionCells(), [tag])
240 graph.refresh();
266 if (graph.isSelectionEmpty())
[all …]
H A Dflow.js17 var graph = ui.editor.graph;
19 if (graph.model.isEdge(graph.getSelectionCell()))
32 if (ui.editor.graph.model.isEdge(cells[i]))
34 var state = ui.editor.graph.view.getState(cells[i]);
69 var cell = ui.editor.graph.getSelectionCell();
71 if (ui.editor.graph.model.isEdge(cell))
73 toggleFlow(ui.editor.graph.getSelectionCells());
80 ui.editor.graph.click = function(me)
82 if (ui.editor.graph.model.isEdge(me.getCell()))
H A Dprops.js15 var graph = ui.editor.graph;
63 var highlight = new mxCellHighlight(graph, '#00ff00', 8);
68 var result = graph.getDataForCells(graph.getSelectionCells());
88 graph.container.focus();
103 highlight.highlight(graph.view.getState(cell));
108 var label = graph.sanitizeHtml(graph.getLabel(cell));
136 var label = graph.convertValueToString(cell);
169 cellClicked(graph.getSelectionCell());
172 graph.model.addListener(mxEvent.CHANGE, function(sender, evt)
174 cellClicked(graph.getSelectionCell());
[all …]
/plugin/diagramsnet/lib/plugins/trees/
H A Dtrees.js20 var graph = ui.editor.graph;
74 if (graph.isEnabled() && graph.getSelectionCount() == 1)
96 if (graph.isEnabled() && graph.getSelectionCount() == 1)
123 if (graph.isEnabled() && graph.getSelectionCount() == 1)
130 graph.setSelectionCell(graph.model.getTerminal(edges[0], true));
137 if (graph.isEnabled() && graph.getSelectionCount() == 1)
842 if (graph.isEnabled() && !graph.isEditing() && graph.getSelectionCount() == 1 &&
877 graph.startEditingAtCell(graph.getSelectionCell());
1074 var graph = state.view.graph;
1122graph.graphHandler.bounds = graph.graphHandler.graph.getView().getBounds(graph.graphHandler.cells);
[all …]
/plugin/diagramsnet/lib/js/diagramly/
H A DTrees.js149 var graph = ui.editor.graph;
247 if (graph.isEnabled() && graph.getSelectionCount() == 1)
269 if (graph.isEnabled() && graph.getSelectionCount() == 1)
296 if (graph.isEnabled() && graph.getSelectionCount() == 1)
303 graph.setSelectionCell(graph.model.getTerminal(edges[0], true));
312 if (graph.isEnabled() && graph.model.isVertex(cell))
316 graph.setSelectionCells(graph.model.getTreeEdges(cell,
1052 graph.setSelectionCell(graph.model.getTerminal(sib[0], false));
1094 if (graph.isEnabled() && !graph.isEditing() &&
1130 graph.startEditingAtCell(graph.getSelectionCell());
[all …]
H A DmxFreehand.js1 function mxFreehand(graph) argument
4 …var svgElement = (graph.view != null && graph.view.canvas != null) ? graph.view.canvas.ownerSVGEle…
6 if (graph.container == null || svgElement == null)
201 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
204 var s = graph.view.scale;
223 graph.setSelectionCells([cell]);
262 graph.addMouseListener(
266 if (graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
316 if (path && graph.isEnabled() && !graph.isCellLocked(graph.getDefaultParent()))
325 var tr = graph.view.translate;
[all …]
H A DGraphViewer.js577 var graph = Graph.createOffscreenGraph(this.graph.getStylesheet());
578 graph.getGlobalVariable = this.graph.getGlobalVariable;
689 if (this.graph != null)
977 …this.graph.view.setTranslate(Math.floor(this.graph.border - bounds.x / this.graph.view.scale) + or…
1008 var graph = this.graph;
1237 var graph = this.graph;
1391 this.graph.view.scaleAndTranslate(this.graph.initialViewState.scale,
1426 this.graph.originalViewState = this.graph.initialViewState;
1714 graph.linkPolicy = this.graphConfig.target || graph.linkPolicy;
1947 var graph = ui.editor.graph;
[all …]
H A DEmbed.js78 function addMathJaxGraph(graph) argument
201 graph.setEnabled(false);
230 graph.cellRenderer.forceControlClickHandler = graph.foldingEnabled;
267 graph.setPanning(true);
276 graph.border = border;
339 graph.addMouseListener(
456 graph.fit(border);
461 addMathJaxGraph(graph);
713 graph.zoomIn();
718 graph.zoomOut();
[all …]
H A DPages.js167 var graph = editor.graph;
419 var graph = this.editor.graph;
546 var graph = this.editor.graph;
1102 var graph = this.editor.graph;
1165 var graph = this.editor.graph;
1212 var graph = this.editor.graph;
1260 var graph = this.editor.graph;
1601 var graph = this.editor.graph;
1648 var graph = this.editor.graph;
1672 if (graph.isEnabled() && !graph.isMouseDown &&
[all …]
/plugin/jdraw/src/com/mxgraph/examples/swing/
H A DValidation.java41 mxGraph graph = new mxGraph(); in Validation() local
42 Object parent = graph.getDefaultParent(); in Validation()
44 graph.getModel().beginUpdate(); in Validation()
55 graph.insertVertex(parent, null, subtargetNode, 200, in Validation()
59 graph.insertEdge(parent, null, "", v1, v2); in Validation()
60 graph.insertEdge(parent, null, "", v1, v3); in Validation()
61 graph.insertEdge(parent, null, "", v6, v4); in Validation()
66 graph.getModel().endUpdate(); in Validation()
87 graph.setMultiplicities(multiplicities); in Validation()
90 graph.setMultigraph(false); in Validation()
[all …]
H A DValidation.java.bak37 mxGraph graph = new mxGraph();
38 Object parent = graph.getDefaultParent();
40 graph.getModel().beginUpdate();
51 graph.insertVertex(parent, null, subtargetNode, 200,
55 graph.insertEdge(parent, null, "", v1, v2);
56 graph.insertEdge(parent, null, "", v1, v3);
57 graph.insertEdge(parent, null, "", v6, v4);
62 graph.getModel().endUpdate();
83 graph.setMultiplicities(multiplicities);
86 graph.setMultigraph(false);
[all …]
H A DClickHandler.java23 final mxGraph graph = new mxGraph(); in ClickHandler() local
24 Object parent = graph.getDefaultParent(); in ClickHandler()
26 graph.getModel().beginUpdate(); in ClickHandler()
29 Object v1 = graph.insertVertex(parent, null, "Hello", 20, 20, 80, in ClickHandler()
31 Object v2 = graph.insertVertex(parent, null, "World!", in ClickHandler()
33 graph.insertEdge(parent, null, "Edge", v1, v2); in ClickHandler()
37 graph.getModel().endUpdate(); in ClickHandler()
40 final mxGraphComponent graphComponent = new mxGraphComponent(graph); in ClickHandler()
52 System.out.println("cell="+graph.getLabel(cell)); in ClickHandler()
H A DHelloWorld.java20 mxGraph graph = new mxGraph(); in HelloWorld() local
21 Object parent = graph.getDefaultParent(); in HelloWorld()
23 graph.getModel().beginUpdate(); in HelloWorld()
26 Object v1 = graph.insertVertex(parent, null, "Hello", 20, 20, 80, in HelloWorld()
28 Object v2 = graph.insertVertex(parent, null, "World!", 240, 150, in HelloWorld()
30 graph.insertEdge(parent, null, "Edge", v1, v2); in HelloWorld()
34 graph.getModel().endUpdate(); in HelloWorld()
37 mxGraphComponent graphComponent = new mxGraphComponent(graph); in HelloWorld()
/plugin/diagramsnet/lib/js/
H A Dembed.dev.js78 function addMathJaxGraph(graph) argument
201 graph.setEnabled(false);
230 graph.cellRenderer.forceControlClickHandler = graph.foldingEnabled;
267 graph.setPanning(true);
276 graph.border = border;
339 graph.addMouseListener(
456 graph.fit(border);
461 addMathJaxGraph(graph);
713 graph.zoomIn();
718 graph.zoomOut();
[all …]
H A Dexport.js26 var graph = new Graph(container);
95 return graph;
370 var view = graph.view;
424 graph.setEnabled(false);
570 graph.pageScale = ps;
618 if (!graph.pdfPageVisible)
701 bounds = (graph.pdfPageVisible) ? graph.view.getBackgroundPageBounds() : graph.getGraphBounds();
707 if (graph.pdfPageVisible)
741 graph.container.parentNode.removeChild(graph.container);
789 graph.addSvgShadow(graph.view.canvas.ownerSVGElement, null, true);
[all …]

12345678