本文整理了Java中com.mxgraph.view.mxGraph.isValidSource()
方法的一些代码示例,展示了mxGraph.isValidSource()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.isValidSource()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:isValidSource
[英]Returns true if the given cell is a valid source for new connections. This implementation returns true for all non-null values and is called by is called by .
[中]如果给定单元格是新连接的有效源,则返回true。对于所有非空值,此实现返回true,并由调用。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns isValidSource for the given cell. This is called by
* isValidConnection.
*
* @param cell Object that represents a possible target or null.
* @return Returns true if the given cell is a valid target.
*/
public boolean isValidTarget(Object cell)
{
return isValidSource(cell);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns isValidSource for the given cell. This is called by
* isValidConnection.
*
* @param cell Object that represents a possible target or null.
* @return Returns true if the given cell is a valid target.
*/
public boolean isValidTarget(Object cell)
{
return isValidSource(cell);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
*
*/
public boolean isValidSource(Object cell)
{
return graphComponent.getGraph().isValidSource(cell);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
*
*/
public boolean isValidSource(Object cell)
{
return graphComponent.getGraph().isValidSource(cell);
}
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!