com.mxgraph.view.mxGraph.removeCells()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(203)

本文整理了Java中com.mxgraph.view.mxGraph.removeCells()方法的一些代码示例,展示了mxGraph.removeCells()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.removeCells()方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:removeCells

mxGraph.removeCells介绍

[英]Removes the selection cells from the graph.
[中]从图形中删除选择单元格。

代码示例

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Removes the selection cells from the graph.
  3. *
  4. * @return Returns the cells that have been removed.
  5. */
  6. public Object[] removeCells()
  7. {
  8. return removeCells(null);
  9. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. * Removes the given cells from the graph.
  3. *
  4. * @param cells Array of cells to remove.
  5. * @return Returns the cells that have been removed.
  6. */
  7. public Object[] removeCells(Object[] cells)
  8. {
  9. return removeCells(cells, true);
  10. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Removes the given cells from the graph.
  3. *
  4. * @param cells Array of cells to remove.
  5. * @return Returns the cells that have been removed.
  6. */
  7. public Object[] removeCells(Object[] cells)
  8. {
  9. return removeCells(cells, true);
  10. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. * Removes the selection cells from the graph.
  3. *
  4. * @return Returns the cells that have been removed.
  5. */
  6. public Object[] removeCells()
  7. {
  8. return removeCells(null);
  9. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. *
  3. */
  4. public void actionPerformed(ActionEvent e)
  5. {
  6. mxGraph graph = getGraph(e);
  7. if (graph != null)
  8. {
  9. graph.removeCells();
  10. }
  11. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. *
  3. */
  4. public void actionPerformed(ActionEvent e)
  5. {
  6. mxGraph graph = getGraph(e);
  7. if (graph != null)
  8. {
  9. graph.removeCells();
  10. }
  11. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. /**
  2. *
  3. */
  4. protected void removeCells(mxGraphComponent graphComponent, Object[] cells)
  5. {
  6. graphComponent.getGraph().removeCells(cells);
  7. }

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. /**
  2. *
  3. */
  4. protected void removeCells(mxGraphComponent graphComponent, Object[] cells)
  5. {
  6. graphComponent.getGraph().removeCells(cells);
  7. }

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. graph.removeCells(new Object[] { currEdge });
  2. graph.removeCells(duplEdges);
  3. };

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. graph.removeCells(new Object[] { currEdge });
  2. graph.removeCells(duplEdges);
  3. };

代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn

  1. graph.removeCells(edges.toArray());

代码示例来源:origin: stackoverflow.com

  1. graph.removeCells(new Object[]{v1});
  2. } finally {
  3. graph.getModel().endUpdate();

代码示例来源:origin: org.activecomponents.jadex/jadex-editor-bpmn

  1. graph.removeCells(edges.toArray());

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. graphCopy.removeCells(leaf);

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. graphCopy.removeCells(leaf);

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. graphCopy.removeCells(leaf);

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. graphCopy.removeCells(leaf);

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. (int) aGraph.getGenerator().getCostFunction().getCost(new mxCellState(graph.getView(), vertex, null)));
  2. graphCopy.removeCells(new Object[] { newVertex }, true);
  3. Object[][] oldComponents = getGraphComponents(aGraph);
  4. Object[][] newComponents = getGraphComponents(aGraphCopy);

代码示例来源:origin: org.tinyjee.jgraphx/jgraphx

  1. (int) aGraph.getGenerator().getCostFunction().getCost(new mxCellState(graph.getView(), vertex, null)));
  2. graphCopy.removeCells(new Object[] { newVertex }, true);
  3. Object[][] oldComponents = getGraphComponents(aGraph);
  4. Object[][] newComponents = getGraphComponents(aGraphCopy);

代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx

  1. graphCopy.removeCells(new Object[] { currEdge }, true);
  2. Object[][] oldComponents = getGraphComponents(aGraph);
  3. Object[][] newComponents = getGraphComponents(aGraphCopy);

相关文章

mxGraph类方法