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

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

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

mxGraph.addCells介绍

[英]Adds the cells to the default parent. This is a shortcut method.
[中]将单元格添加到默认父级。这是一种快捷方式。

代码示例

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

  1. /**
  2. * Adds the cells to the parent. This is a shortcut method.
  3. *
  4. * @param cells Array of cells to be inserted.
  5. * @param parent Optional cell that represents the new parent. If no parent
  6. * is specified then the default parent is used.
  7. * @return Returns the cells that were added.
  8. */
  9. public Object[] addCells(Object[] cells, Object parent)
  10. {
  11. return addCells(cells, parent, null);
  12. }

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

  1. /**
  2. * Adds the cells to the parent. This is a shortcut method.
  3. *
  4. * @param cells Array of cells to be inserted.
  5. * @param parent Optional cell that represents the new parent. If no parent
  6. * is specified then the default parent is used.
  7. * @return Returns the cells that were added.
  8. */
  9. public Object[] addCells(Object[] cells, Object parent)
  10. {
  11. return addCells(cells, parent, null);
  12. }

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

  1. /**
  2. * Adds the cells to the default parent. This is a shortcut method.
  3. *
  4. * @param cells Array of cells to be inserted.
  5. * @return Returns the cells that were added.
  6. */
  7. public Object[] addCells(Object[] cells)
  8. {
  9. return addCells(cells, null);
  10. }

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

  1. /**
  2. * Adds the cells to the default parent. This is a shortcut method.
  3. *
  4. * @param cells Array of cells to be inserted.
  5. * @return Returns the cells that were added.
  6. */
  7. public Object[] addCells(Object[] cells)
  8. {
  9. return addCells(cells, null);
  10. }

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

  1. /**
  2. * Adds the cells to the parent at the given index. This is a shortcut method.
  3. *
  4. * @param cells Array of cells to be inserted.
  5. * @param parent Optional cell that represents the new parent. If no parent
  6. * is specified then the default parent is used.
  7. * @param index Optional index to insert the cells at. Default is to append.
  8. * @return Returns the cells that were added.
  9. */
  10. public Object[] addCells(Object[] cells, Object parent, Integer index)
  11. {
  12. return addCells(cells, parent, index, null, null);
  13. }

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

  1. /**
  2. * Adds the cells to the parent at the given index. This is a shortcut method.
  3. *
  4. * @param cells Array of cells to be inserted.
  5. * @param parent Optional cell that represents the new parent. If no parent
  6. * is specified then the default parent is used.
  7. * @param index Optional index to insert the cells at. Default is to append.
  8. * @return Returns the cells that were added.
  9. */
  10. public Object[] addCells(Object[] cells, Object parent, Integer index)
  11. {
  12. return addCells(cells, parent, index, null, null);
  13. }

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

  1. /**
  2. * Adds the cell to the parent and connects it to the given source and
  3. * target terminals. This is a shortcut method.
  4. *
  5. * @param cell Cell to be inserted into the given parent.
  6. * @param parent Object that represents the new parent. If no parent is
  7. * given then the default parent is used.
  8. * @param index Optional index to insert the cells at. Default is to append.
  9. * @param source Optional cell that represents the source terminal.
  10. * @param target Optional cell that represents the target terminal.
  11. * @return Returns the cell that was added.
  12. */
  13. public Object addCell(Object cell, Object parent, Integer index,
  14. Object source, Object target)
  15. {
  16. return addCells(new Object[] { cell }, parent, index, source, target)[0];
  17. }

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

  1. /**
  2. * Adds the cell to the parent and connects it to the given source and
  3. * target terminals. This is a shortcut method.
  4. *
  5. * @param cell Cell to be inserted into the given parent.
  6. * @param parent Object that represents the new parent. If no parent is
  7. * given then the default parent is used.
  8. * @param index Optional index to insert the cells at. Default is to append.
  9. * @param source Optional cell that represents the source terminal.
  10. * @param target Optional cell that represents the target terminal.
  11. * @return Returns the cell that was added.
  12. */
  13. public Object addCell(Object cell, Object parent, Integer index,
  14. Object source, Object target)
  15. {
  16. return addCells(new Object[] { cell }, parent, index, source, target)[0];
  17. }

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

  1. graph.addCells(new Object[] { vertex }, dropTarget);

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

  1. graph.addCells(new Object[] { vertex }, dropTarget);

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

  1. graph.addCells(new Object[] { clone }, parent);

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

  1. graph.addCells(new Object[] { clone }, parent);

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

  1. mxGraph graphCopy = new mxGraph(modelCopy);
  2. Object parentCopy = graphCopy.getDefaultParent();
  3. graphCopy.addCells(cells);
  4. mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
  5. aGraphCopy.setGraph(graphCopy);

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

  1. mxGraph graphCopy = new mxGraph(modelCopy);
  2. Object parentCopy = graphCopy.getDefaultParent();
  3. graphCopy.addCells(cells);
  4. mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
  5. aGraphCopy.setGraph(graphCopy);

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

  1. mxGraph graphCopy = new mxGraph(modelCopy);
  2. Object parentCopy = graphCopy.getDefaultParent();
  3. graphCopy.addCells(cells);

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

  1. mxGraph graphCopy = new mxGraph(modelCopy);
  2. Object parentCopy = graphCopy.getDefaultParent();
  3. graphCopy.addCells(cells);

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

  1. mxGraphModel modelCopy = new mxGraphModel();
  2. mxGraph graphCopy = new mxGraph(modelCopy);
  3. graphCopy.addCells(cells);
  4. mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
  5. aGraphCopy.setGraph(graphCopy);

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

  1. mxGraphModel modelCopy = new mxGraphModel();
  2. mxGraph graphCopy = new mxGraph(modelCopy);
  3. graphCopy.addCells(cells);
  4. mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
  5. aGraphCopy.setGraph(graphCopy);

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

  1. mxGraphModel modelCopy = new mxGraphModel();
  2. mxGraph graphCopy = new mxGraph(modelCopy);
  3. graphCopy.addCells(cells);
  4. mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
  5. aGraphCopy.setGraph(graphCopy);

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

  1. mxGraphModel modelCopy = new mxGraphModel();
  2. mxGraph graphCopy = new mxGraph(modelCopy);
  3. graphCopy.addCells(cells);
  4. mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
  5. aGraphCopy.setGraph(graphCopy);

相关文章

mxGraph类方法