本文整理了Java中com.mxgraph.view.mxGraph.getOpposites()
方法的一些代码示例,展示了mxGraph.getOpposites()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getOpposites()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getOpposites
[英]Returns all distinct visible opposite cells of the terminal on the given edges.
[中]返回给定边上端子的所有明显相反的单元格。
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns all distinct visible opposite cells of the terminal on the given
* edges.
*
* @param edges
* @param terminal
* @return Returns the terminals at the opposite ends of the given edges.
*/
public Object[] getOpposites(Object[] edges, Object terminal)
{
return getOpposites(edges, terminal, true, true);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns all distinct visible opposite cells of the terminal on the given
* edges.
*
* @param edges
* @param terminal
* @return Returns the terminals at the opposite ends of the given edges.
*/
public Object[] getOpposites(Object[] edges, Object terminal)
{
return getOpposites(edges, terminal, true, true);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns all distinct opposite cells for the specified terminal
* on the given edges.
*
* @param edges Edges whose opposite terminals should be returned.
* @param terminal Terminal that specifies the end whose opposite should be
* returned.
* @param sources Specifies if source terminals should be included in the
* result.
* @param targets Specifies if target terminals should be included in the
* result.
* @return Returns the cells at the opposite ends of the given edges.
*/
public Object[] getOpposites(Object[] edges, Object terminal, boolean sources, boolean targets)
{
// TODO needs non-visible graph version
return graph.getOpposites(edges, terminal, sources, targets);
};
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns all distinct opposite cells for the specified terminal
* on the given edges.
*
* @param edges Edges whose opposite terminals should be returned.
* @param terminal Terminal that specifies the end whose opposite should be
* returned.
* @param sources Specifies if source terminals should be included in the
* result.
* @param targets Specifies if target terminals should be included in the
* result.
* @return Returns the cells at the opposite ends of the given edges.
*/
public Object[] getOpposites(Object[] edges, Object terminal, boolean sources, boolean targets)
{
// TODO needs non-visible graph version
return graph.getOpposites(edges, terminal, sources, targets);
};
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
List<Object> outgoingCells = Arrays.asList(graph.getOpposites(
conns, vertices[i]));
internalVertices[i].connectsAsSource = new LinkedHashSet<mxGraphHierarchyEdge>(
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
List<Object> outgoingCells = Arrays.asList(graph.getOpposites(
conns, vertices[i]));
internalVertices[i].connectsAsSource = new LinkedHashSet<mxGraphHierarchyEdge>(
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
Object[] cells = graph.getOpposites(edges, vertexArray[i]);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
Object[] cells = graph.getOpposites(edges, vertexArray[i]);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
Object[] opp = graph.getOpposites(e, u);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
Object[] opp = graph.getOpposites(e, u);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
Object[] opp = graph.getOpposites(new Object[] { e[i] },
obj);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
Object[] opp = graph.getOpposites(new Object[] { e[i] },
obj);
内容来源于网络,如有侵权,请联系作者删除!