本文整理了Java中com.mxgraph.view.mxGraph.getDefaultOverlap()
方法的一些代码示例,展示了mxGraph.getDefaultOverlap()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.getDefaultOverlap()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:getDefaultOverlap
[英]Gets defaultOverlap.
[中]获取默认重叠。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Returns a decimal number representing the amount of the width and height
* of the given cell that is allowed to overlap its parent. A value of 0
* means all children must stay inside the parent, 1 means the child is
* allowed to be placed outside of the parent such that it touches one of
* the parents sides. If <isAllowOverlapParent> returns false for the given
* cell, then this method returns 0.
*
* @param cell
* @return Returns the overlapping value for the given cell inside its
* parent.
*/
public double getOverlap(Object cell)
{
return (isAllowOverlapParent(cell)) ? getDefaultOverlap() : 0;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Returns a decimal number representing the amount of the width and height
* of the given cell that is allowed to overlap its parent. A value of 0
* means all children must stay inside the parent, 1 means the child is
* allowed to be placed outside of the parent such that it touches one of
* the parents sides. If <isAllowOverlapParent> returns false for the given
* cell, then this method returns 0.
*
* @param cell
* @return Returns the overlapping value for the given cell inside its
* parent.
*/
public double getOverlap(Object cell)
{
return (isAllowOverlapParent(cell)) ? getDefaultOverlap() : 0;
}
内容来源于网络,如有侵权,请联系作者删除!