本文整理了Java中com.mxgraph.view.mxGraph.isAllowLoops()
方法的一些代码示例,展示了mxGraph.isAllowLoops()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.isAllowLoops()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:isAllowLoops
[英]Returns allowLoops.
[中]返回allowLoops。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns true if the given target cell is a valid target for source.
* This is a boolean implementation for not allowing connections between
* certain pairs of vertices and is called by <getEdgeValidationError>.
* This implementation returns true if <isValidSource> returns true for
* the source and <isValidTarget> returns true for the target.
*
* @param source Object that represents the source cell.
* @param target Object that represents the target cell.
* @return Returns true if the the connection between the given terminals
* is valid.
*/
public boolean isValidConnection(Object source, Object target)
{
return isValidSource(source) && isValidTarget(target)
&& (isAllowLoops() || source != target);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns true if the given target cell is a valid target for source.
* This is a boolean implementation for not allowing connections between
* certain pairs of vertices and is called by <getEdgeValidationError>.
* This implementation returns true if <isValidSource> returns true for
* the source and <isValidTarget> returns true for the target.
*
* @param source Object that represents the source cell.
* @param target Object that represents the target cell.
* @return Returns true if the the connection between the given terminals
* is valid.
*/
public boolean isValidConnection(Object source, Object target)
{
return isValidSource(source) && isValidTarget(target)
&& (isAllowLoops() || source != target);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
if (!isAllowLoops() && source == target && source != null)
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
if (!isAllowLoops() && source == target && source != null)
内容来源于网络,如有侵权,请联系作者删除!