本文整理了Java中com.mxgraph.view.mxGraph.addCells()
方法的一些代码示例,展示了mxGraph.addCells()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.addCells()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:addCells
[英]Adds the cells to the default parent. This is a shortcut method.
[中]将单元格添加到默认父级。这是一种快捷方式。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Adds the cells to the parent. This is a shortcut method.
*
* @param cells Array of cells to be inserted.
* @param parent Optional cell that represents the new parent. If no parent
* is specified then the default parent is used.
* @return Returns the cells that were added.
*/
public Object[] addCells(Object[] cells, Object parent)
{
return addCells(cells, parent, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Adds the cells to the parent. This is a shortcut method.
*
* @param cells Array of cells to be inserted.
* @param parent Optional cell that represents the new parent. If no parent
* is specified then the default parent is used.
* @return Returns the cells that were added.
*/
public Object[] addCells(Object[] cells, Object parent)
{
return addCells(cells, parent, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Adds the cells to the default parent. This is a shortcut method.
*
* @param cells Array of cells to be inserted.
* @return Returns the cells that were added.
*/
public Object[] addCells(Object[] cells)
{
return addCells(cells, null);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Adds the cells to the default parent. This is a shortcut method.
*
* @param cells Array of cells to be inserted.
* @return Returns the cells that were added.
*/
public Object[] addCells(Object[] cells)
{
return addCells(cells, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Adds the cells to the parent at the given index. This is a shortcut method.
*
* @param cells Array of cells to be inserted.
* @param parent Optional cell that represents the new parent. If no parent
* is specified then the default parent is used.
* @param index Optional index to insert the cells at. Default is to append.
* @return Returns the cells that were added.
*/
public Object[] addCells(Object[] cells, Object parent, Integer index)
{
return addCells(cells, parent, index, null, null);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Adds the cells to the parent at the given index. This is a shortcut method.
*
* @param cells Array of cells to be inserted.
* @param parent Optional cell that represents the new parent. If no parent
* is specified then the default parent is used.
* @param index Optional index to insert the cells at. Default is to append.
* @return Returns the cells that were added.
*/
public Object[] addCells(Object[] cells, Object parent, Integer index)
{
return addCells(cells, parent, index, null, null);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Adds the cell to the parent and connects it to the given source and
* target terminals. This is a shortcut method.
*
* @param cell Cell to be inserted into the given parent.
* @param parent Object that represents the new parent. If no parent is
* given then the default parent is used.
* @param index Optional index to insert the cells at. Default is to append.
* @param source Optional cell that represents the source terminal.
* @param target Optional cell that represents the target terminal.
* @return Returns the cell that was added.
*/
public Object addCell(Object cell, Object parent, Integer index,
Object source, Object target)
{
return addCells(new Object[] { cell }, parent, index, source, target)[0];
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Adds the cell to the parent and connects it to the given source and
* target terminals. This is a shortcut method.
*
* @param cell Cell to be inserted into the given parent.
* @param parent Object that represents the new parent. If no parent is
* given then the default parent is used.
* @param index Optional index to insert the cells at. Default is to append.
* @param source Optional cell that represents the source terminal.
* @param target Optional cell that represents the target terminal.
* @return Returns the cell that was added.
*/
public Object addCell(Object cell, Object parent, Integer index,
Object source, Object target)
{
return addCells(new Object[] { cell }, parent, index, source, target)[0];
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
graph.addCells(new Object[] { vertex }, dropTarget);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
graph.addCells(new Object[] { vertex }, dropTarget);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
graph.addCells(new Object[] { clone }, parent);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
graph.addCells(new Object[] { clone }, parent);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxGraph graphCopy = new mxGraph(modelCopy);
Object parentCopy = graphCopy.getDefaultParent();
graphCopy.addCells(cells);
mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
aGraphCopy.setGraph(graphCopy);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxGraph graphCopy = new mxGraph(modelCopy);
Object parentCopy = graphCopy.getDefaultParent();
graphCopy.addCells(cells);
mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
aGraphCopy.setGraph(graphCopy);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxGraph graphCopy = new mxGraph(modelCopy);
Object parentCopy = graphCopy.getDefaultParent();
graphCopy.addCells(cells);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxGraph graphCopy = new mxGraph(modelCopy);
Object parentCopy = graphCopy.getDefaultParent();
graphCopy.addCells(cells);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxGraphModel modelCopy = new mxGraphModel();
mxGraph graphCopy = new mxGraph(modelCopy);
graphCopy.addCells(cells);
mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
aGraphCopy.setGraph(graphCopy);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxGraphModel modelCopy = new mxGraphModel();
mxGraph graphCopy = new mxGraph(modelCopy);
graphCopy.addCells(cells);
mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
aGraphCopy.setGraph(graphCopy);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
mxGraphModel modelCopy = new mxGraphModel();
mxGraph graphCopy = new mxGraph(modelCopy);
graphCopy.addCells(cells);
mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
aGraphCopy.setGraph(graphCopy);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
mxGraphModel modelCopy = new mxGraphModel();
mxGraph graphCopy = new mxGraph(modelCopy);
graphCopy.addCells(cells);
mxAnalysisGraph aGraphCopy = new mxAnalysisGraph();
aGraphCopy.setGraph(graphCopy);
内容来源于网络,如有侵权,请联系作者删除!