本文整理了Java中com.mxgraph.view.mxGraph.getAllEdges()
方法的一些代码示例,展示了mxGraph.getAllEdges()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getAllEdges()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getAllEdges
[英]Returns all edges connected to the given cells or their descendants.
[中]返回连接到给定单元格或其子体的所有边。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns an array with the given cells and all edges that are connected
* to a cell or one of its descendants.
*/
public Object[] addAllEdges(Object[] cells)
{
List<Object> allCells = new ArrayList<Object>(cells.length);
allCells.addAll(Arrays.asList(cells));
allCells.addAll(Arrays.asList(getAllEdges(cells)));
return allCells.toArray();
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns an array with the given cells and all edges that are connected
* to a cell or one of its descendants.
*/
public Object[] addAllEdges(Object[] cells)
{
List<Object> allCells = new ArrayList<Object>(cells.length);
allCells.addAll(Arrays.asList(cells));
allCells.addAll(Arrays.asList(getAllEdges(cells)));
return allCells.toArray();
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns all edges connected to the given cells or their descendants.
*/
public Object[] getAllEdges(Object[] cells)
{
List<Object> edges = new ArrayList<Object>();
if (cells != null)
{
for (int i = 0; i < cells.length; i++)
{
int edgeCount = model.getEdgeCount(cells[i]);
for (int j = 0; j < edgeCount; j++)
{
edges.add(model.getEdgeAt(cells[i], j));
}
// Recurses
Object[] children = mxGraphModel.getChildren(model, cells[i]);
edges.addAll(Arrays.asList(getAllEdges(children)));
}
}
return edges.toArray();
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns all edges connected to the given cells or their descendants.
*/
public Object[] getAllEdges(Object[] cells)
{
List<Object> edges = new ArrayList<Object>();
if (cells != null)
{
for (int i = 0; i < cells.length; i++)
{
int edgeCount = model.getEdgeCount(cells[i]);
for (int j = 0; j < edgeCount; j++)
{
edges.add(model.getEdgeAt(cells[i], j));
}
// Recurses
Object[] children = mxGraphModel.getChildren(model, cells[i]);
edges.addAll(Arrays.asList(getAllEdges(children)));
}
}
return edges.toArray();
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
Object[] edges = graph.getAllEdges(new Object[] { cell });
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
Object[] edges = graph.getAllEdges(new Object[] { cell });
内容来源于网络,如有侵权,请联系作者删除!